the encoded transaction
an implementation of sha256
Returns the sha256 hash of the provided input.
To incrementally construct a sha256 hash (e.g. for streaming), use init
,
update
, and final
.
a Uint8Array to be hashed using sha256
Generated using TypeDoc
Compute a transaction hash (A.K.A. "transaction ID" or "TXID") from an encoded transaction in P2P network message order. This is the byte order produced by most sha256 libraries and used by encoded P2P network messages. It is also the byte order produced by
OP_SHA256
andOP_HASH256
in the virtual machine.Returns
the transaction hash in P2P network message byte order