Interface HDSigner

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

Hierarchy

  • HDSignerBase
    • HDSigner

Properties

fingerprint: Uint8Array

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

publicKey: Uint8Array

DER format compressed publicKey buffer

Methods

  • The path string must match /^m(/\d+'?)+$/ ex. m/44'/0'/0'/1/23 levels with ' must be hard derivations

    Parameters

    • path: string

    Returns HDSigner

  • Input hash (the "message digest") for the signature algorithm Return a 64 byte signature (32 byte r and 32 byte s in that order)

    Parameters

    • hash: Uint8Array

    Returns Uint8Array