UNPKG

gamemoney-frorff

Version:
12 lines (11 loc) 504 B
/// <reference types="node" /> import { SignPrivateKeyInput } from 'crypto'; interface IBody { signature: string; } export declare function paramsToString(body: IBody): string; export declare function verifyRsaSignature(body: IBody): boolean; export declare function generateRsaSignature(body: IBody, privateKey: SignPrivateKeyInput): string; export declare function generateHmacSignature(body: IBody, key: string): string; export declare function getRandomString(length: number): string; export {};