index.d.ts 912 B

123456789101112131415161718192021222324
  1. import * as addressCodec from 'ripple-address-codec';
  2. declare function generateSeed(options?: {
  3. entropy?: Uint8Array;
  4. algorithm?: 'ed25519' | 'ecdsa-secp256k1';
  5. }): string;
  6. declare function deriveKeypair(seed: string, options?: object): {
  7. publicKey: string;
  8. privateKey: string;
  9. };
  10. declare function sign(messageHex: any, privateKey: any): string;
  11. declare function verify(messageHex: any, signature: any, publicKey: any): boolean;
  12. declare function deriveAddress(publicKey: any): string;
  13. declare function deriveNodeAddress(publicKey: any): string;
  14. declare const _default: {
  15. generateSeed: typeof generateSeed;
  16. deriveKeypair: typeof deriveKeypair;
  17. sign: typeof sign;
  18. verify: typeof verify;
  19. deriveAddress: typeof deriveAddress;
  20. deriveNodeAddress: typeof deriveNodeAddress;
  21. decodeSeed: typeof addressCodec.decodeSeed;
  22. };
  23. export = _default;
  24. //# sourceMappingURL=index.d.ts.map