gamemoney-frorff
Version:
GameMoney API wrapper for Node.js
12 lines (11 loc) • 504 B
TypeScript
/// <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 {};