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).
the Uint8Array to hash
Returns the sha256 hash of the provided input.
To incrementally construct a sha256 hash (e.g. for streaming), use init, update, and final.
init
update
final
a Uint8Array to be hashed using sha256
Generated using TypeDoc
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).