Function hash160

  • Hash the given payload with sha256, then hash the 32-byte result with ripemd160, returning a 20-byte hash.

    This hash is used in both AddressType.p2pkh and AddressType.p2sh20 addresses.

    Parameters

    • payload: Uint8Array

      the Uint8Array to hash

    • crypto: {
          ripemd160: {
              hash: ((input) => Uint8Array) & ((input) => Uint8Array);
          };
          sha256: {
              hash: ((input) => Uint8Array) & ((input) => Uint8Array);
          };
      } = ...
      • 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