@roochnetwork/rooch-sdk
Version:
15 lines (14 loc) • 559 B
TypeScript
import { Bytes } from '../../types/index.js';
type Hex = string;
type Path = string;
type Keys = {
key: Bytes;
chainCode: Bytes;
};
export declare const pathRegex: RegExp;
export declare const replaceDerive: (val: string) => string;
export declare const getMasterKeyFromSeed: (seed: Hex) => 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 {};