Function simfony_as_rust::jet::signature_hash_modes::sig_all_hash
source ยท pub fn sig_all_hash() -> u256Expand description
Return a SHA256 hash of the following:
- The result of
genesis_block_hash(32 bytes). - The result of
genesis_block_hashagain (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.