BitcoinerLab Descriptors API - v3.1.5
    Preparing search index...

    Interface ScureHDKeyLike

    Structural subset of @scure/bip32 HDKey.

    Use this when signing with the scure stack.

    Example (scure stack):

    import { HDKey } from '@scure/bip32';

    const masterNode = HDKey.fromMasterSeed(seedBytes);
    interface ScureHDKeyLike {
        publicKey: Uint8Array<ArrayBufferLike> | null;
        privateKey: Uint8Array<ArrayBufferLike> | null;
        fingerprint: number;
        versions?: { public: number; private: number };
        derive(path: string): ScureHDKeyLike;
        deriveChild(index: number): ScureHDKeyLike;
        sign(hash: Uint8Array): Uint8Array;
        publicExtendedKey: string;
        privateExtendedKey: string;
    }
    Index

    Properties

    publicKey: Uint8Array<ArrayBufferLike> | null
    privateKey: Uint8Array<ArrayBufferLike> | null
    fingerprint: number
    versions?: { public: number; private: number }
    publicExtendedKey: string
    privateExtendedKey: string

    Methods

    • Parameters

      • hash: Uint8Array

      Returns Uint8Array