UNPKG

bitmart-api

Version:

Complete & robust Node.js SDK for BitMart's REST APIs and WebSockets, with TypeScript declarations.

10 lines (9 loc) 505 B
export type SignEncodeMethod = 'hex' | 'base64'; export type SignAlgorithm = 'SHA-256' | 'SHA-512'; export type SignKeyType = 'HMAC' | 'RSASSA-PKCS1-v1_5' | 'Ed25519'; export declare function getSignKeyType(secret: string): SignKeyType; /** * Sign a message, with a secret, using the Web Crypto API */ export declare function signMessage(message: string, secret: string, method?: SignEncodeMethod, algorithm?: SignAlgorithm): Promise<string>; export declare function checkWebCryptoAPISupported(): void;