@bitcoinerlab/descriptors-core - v3.1.4
    Preparing search index...

    Interface BIP32InterfaceLike

    Structural HD node interface accepted by this library.

    In practice, pass a node from bip32 (bitcoinjs stack).

    Example (bitcoinjs stack):

    import * as ecc from '@bitcoinerlab/secp256k1';
    import { BIP32Factory } from 'bip32';

    const BIP32 = BIP32Factory(ecc);
    const node = BIP32.fromSeed(seedBytes);
    interface BIP32InterfaceLike {
        publicKey: Uint8Array;
        privateKey?: Uint8Array<ArrayBufferLike>;
        fingerprint: Uint8Array;
        derive(index: number): BIP32InterfaceLike;
        derivePath(path: string): BIP32InterfaceLike;
        neutered(): BIP32InterfaceLike;
        toBase58(): string;
        sign(hash: Uint8Array): Uint8Array;
        tweak(t: Uint8Array): Omit<ECPairInterfaceLike, "tweak" | "privateKey">;
    }
    Index

    Properties

    publicKey: Uint8Array
    privateKey?: Uint8Array<ArrayBufferLike>
    fingerprint: Uint8Array

    Methods

    • Parameters

      • hash: Uint8Array

      Returns Uint8Array