@btc-vision/ecpair - v4.0.2
    Preparing search index...

    Interface HDSigner

    Synchronous hierarchical-deterministic signer.

    Suitable for BIP-32 key pairs that can derive children and produce raw ECDSA signatures (no low-R grinding, no branded return type).

    interface HDSigner {
        fingerprint: Uint8Array;
        publicKey: PublicKey;
        derivePath(path: string): HDSigner;
        sign(hash: MessageHash): Uint8Array;
    }
    Index

    Properties

    fingerprint: Uint8Array

    The first 4 bytes of the sha256-ripemd160 of the publicKey.

    publicKey: PublicKey

    SEC1-encoded public key (33 or 65 bytes).

    Methods

    • Derives a child signer from a BIP-32 path.

      Parameters

      • path: string

        BIP-32 derivation path (e.g. m/44'/0'/0'/1/23).

      Returns HDSigner

    • Produces a 64-byte compact ECDSA signature over hash.

      Parameters

      Returns Uint8Array