UNPKG

@znode/sign

Version:
21 lines (20 loc) 413 B
export interface IData { /** * query or body */ params?: object; /** * ms */ timestamp: number; /** * api key */ apiKey: string; } export declare function sign(data: IData, secret: string): string; export declare function signWs(timestamp: number, secret: string): string; declare const _sign: typeof sign & { ws?: typeof signWs; }; export default _sign;