UNPKG

okx-api

Version:

Complete & robust Node.js SDK for OKX's REST APIs and WebSockets, with TypeScript & end-to-end tests

7 lines (6 loc) 254 B
export type SignEncodeMethod = 'hex' | 'base64'; export type SignAlgorithm = 'SHA-256' | 'SHA-512'; /** * Sign a message, with a secret, using the Web Crypto API */ export declare function signMessage(message: string, secret: string): Promise<string>;