Module signature_hash_modes

Source
Expand description

§Elements signature hash modes

This module defines jets for computing signature hashes of Elements transactions.

Functions§

annex_hash
Continue a SHA256 hash with an optional hash by appending the following:
asset_amount_hash
Continue a SHA256 hash with the serialization of a confidential asset followed by the serialization of a amount.
build_tapbranch
Return the SHA256 hash of the following:
build_tapleaf_simplicity
Return the SHA256 hash of the following:
build_taptweak
Implementation of taproot_tweak_pubkey from BIP-0341.
input_amounts_hash
Return the SHA256 hash of the serialization of each input UTXO’s asset and amount fields.
input_annexes_hash
Return the SHA256 hash of the concatenation of the following for every input:
input_hash
Return the SHA256 hash of the following:
input_outpoints_hash
Return the SHA256 hash of the concatenation of the following for every input:
input_script_sigs_hash
Return the SHA256 hash of the concatenation of the SHA256 hash of each input’s scriptSig.
input_scripts_hash
Return the SHA256 hash of the concatenation of the SHA256 hash of each input UTXO’s scriptPubKey.
input_sequences_hash
Return the SHA256 hash of the concatenation of the following for every input:
input_utxo_hash
Return the SHA256 hash of the following:
input_utxos_hash
Return the SHA256 hash of the following:
inputs_hash
Return the SHA256 hash of the following:
issuance_asset_amounts_hash
Return the SHA256 hash of the concatenation of the following for every input:
issuance_blinding_entropy_hash
Return the SHA256 hash of the concatenation of the following for every input:
issuance_hash
Return the SHA256 hash of the following:
issuance_range_proofs_hash
Return the SHA256 hash of the concatenation of the following for every input:
issuance_token_amounts_hash
Return the SHA256 hash of the concatenation of the following for every input:
issuances_hash
Return the SHA256 hash of the following:
nonce_hash
Continue the SHA256 hash with the serialization of an optional nonce.
outpoint_hash
Continue the SHA256 hash with an optional pegin and an outpoint by appending the following:
output_amounts_hash
Return the SHA256 hash of the serialization of each output’s asset and amount fields.
output_hash
Return the SHA256 hash of the following:
output_nonces_hash
Return the SHA256 hash of the serialization of each output’s nonce field.
output_range_proofs_hash
Return the SHA256 hash of the concatenation of the SHA256 hash of each output’s range proof.
output_scripts_hash
Return the SHA256 hash of the concatenation of the SHA256 hash of each output’s scriptPubKey.
output_surjection_proofs_hash
Return the SHA256 hash of the concatenation of the SHA256 hash of each output’s surjection proof.
outputs_hash
Return the SHA256 hash of the following:
sig_all_hash
Return the SHA256 hash of the following:
tap_env_hash
Return the SHA256 hash of the following:
tapleaf_hash
Return the SHA256 hash of the following:
tappath_hash
Return a hash of the current input’s control block excluding the leaf version and the taproot internal key.
tx_hash
Return the SHA256 hash of the following: