pub fn sig_all_hash() -> u256
Expand description
Return the SHA256 hash of the following:
- The result of
genesis_block_hash
(32 bytes). - The result of
genesis_block_hash
again (32 bytes). - The result of
tx_hash
(32 bytes). - The result of
tap_env_hash
(32 bytes). - The result of
current_index
(Note: this is in big endian format) (4 bytes).
Note: the two copies of the genesis_block_hash
values effectively makes this result a BIP-340 style tagged hash.
ยงCost
133 mWU (milli weight units)