Function deriveHdPublicNodeIdentifier

  • Derive the public identifier for a given HdPublicNode. This is used to uniquely identify HD nodes in software. The first 4 bytes of this identifier are considered its fingerprint.

    Parameters

    • node: HdPublicNode

      the HdPublicNode from which to derive the identifier

    • crypto: {
          ripemd160: {
              hash: ((input) => Uint8Array) & ((input) => Uint8Array);
          };
          sha256: {
              hash: ((input) => Uint8Array) & ((input) => Uint8Array);
          };
      } = ...

      an optional object containing implementations of sha256 and ripemd160 to use

      • ripemd160: {
            hash: ((input) => Uint8Array) & ((input) => Uint8Array);
        }
        • hash: ((input) => Uint8Array) & ((input) => Uint8Array)
      • sha256: {
            hash: ((input) => Uint8Array) & ((input) => Uint8Array);
        }
        • hash: ((input) => Uint8Array) & ((input) => Uint8Array)

    Returns Uint8Array

Generated using TypeDoc