UNPKG

808 BTypeScriptView Raw
1import { decodeSeed } from 'ripple-address-codec';
2import type { Algorithm, HexString, KeyPair } from './types';
3declare function generateSeed(options?: {
4 entropy?: Uint8Array;
5 algorithm?: Algorithm;
6}): string;
7declare function deriveKeypair(seed: string, options?: {
8 algorithm?: Algorithm;
9 validator?: boolean;
10 accountIndex?: number;
11}): KeyPair;
12declare function sign(messageHex: HexString, privateKey: HexString): HexString;
13declare function verify(messageHex: HexString, signature: HexString, publicKey: HexString): boolean;
14declare function deriveAddress(publicKey: string): string;
15declare function deriveNodeAddress(publicKey: string): string;
16export { generateSeed, deriveKeypair, sign, verify, deriveAddress, deriveNodeAddress, decodeSeed, };
17//# sourceMappingURL=index.d.ts.map
\No newline at end of file