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: