ripple-keypairs
Version:
Cryptographic key pairs for the XRP Ledger
17 lines • 621 B
TypeScript
export type HexString = string;
export type Algorithm = 'ecdsa-secp256k1' | 'ed25519';
export type KeyType = 'private' | 'public';
export interface KeyPair {
privateKey: HexString;
publicKey: HexString;
}
export interface DeriveKeyPairOptions {
validator?: boolean;
accountIndex?: number;
}
export interface SigningScheme {
deriveKeypair: (entropy: Uint8Array, options?: DeriveKeyPairOptions) => KeyPair;
sign: (message: Uint8Array, privateKey: HexString) => HexString;
verify: (message: Uint8Array, signature: HexString, publicKey: HexString) => boolean;
}
//# sourceMappingURL=types.d.ts.map