Function hash256

  • Hash the given payload with sha256, then hash the 32-byte result with one final round of sha256, returning a 32-byte hash.

    This type of hash is used to generate identifiers for transactions and blocks (and therefore in block mining).

    Parameters

    • payload: Uint8Array

      the Uint8Array to hash

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

    Returns Uint8Array

Generated using TypeDoc