stellar-hd-wallet
Version:
Key derivation for Stellar (SEP-0005)
15 lines (14 loc) • 532 B
TypeScript
/**
* This key derivation code was copied and adapted from:
* https://github.com/alepop/ed25519-hd-key/blob/master/src/index.ts
* in order to remove js-nacl dependency which caused browser errors with
* content-security-policy - see #12 for details. This modified implementation
* is a pure JS implementation.
*
* The original ed25519-hd-key module is licensed under "GPL-3".
*/
export interface KeyData {
key: Buffer;
chainCode: Buffer;
}
export declare const derivePath: (path: string, seed: string) => KeyData;