ed25519-hd-key
Version:
BIP-0032 like derivation for ed25519 curve
13 lines (12 loc) • 503 B
TypeScript
type Hex = string;
type Path = string;
type Keys = {
key: Uint8Array;
chainCode: Uint8Array;
};
export declare const getMasterKeyFromSeed: (seed: Hex) => Keys;
export declare const CKDPriv: ({ key, chainCode }: Keys, index: number) => Keys;
export declare const getPublicKey: (privateKey: Uint8Array, withZeroByte?: boolean) => Uint8Array;
export declare const isValidPath: (path: string) => boolean;
export declare const derivePath: (path: Path, seed: Hex, offset?: number) => Keys;
export {};