Expand description
Transaction sighash / txid helpers from consensus.
Structs§
- Bip143
Precomputed Hashes - Precomputed hash components for BIP143 sighash. These are computed once per transaction and reused for all inputs.
- Sighash
Cache Key - Per-block sighash cache: (prevout, code_hash, sighash_byte) -> hash. Core-style. Uses hash of scriptCode instead of owned Vec to avoid allocation on insert.
- Sighash
Type - SIGHASH types for transaction signature verification
Functions§
- batch_
compute_ bip143_ sighashes - Spec-locked to Orange Paper Section 11.1.9: BatchComputeBip143Sighashes
- batch_
compute_ legacy_ sighashes - Spec-locked to Orange Paper Section 5.1.1: BatchComputeLegacySighashes
- batch_
compute_ sighashes - Spec-locked to Orange Paper Section 5.1.1: BatchComputeSighashes
- calculate_
bip143_ sighash - Spec-locked to Orange Paper Section 11.1.9: CalculateBip143Sighash
- calculate_
transaction_ sighash - Spec-locked to Orange Paper Section 5.1: CalculateTransactionSighash
- calculate_
transaction_ sighash_ single_ input - Spec-locked to Orange Paper Section 5.1: CalculateTransactionSighashSingleInput
- calculate_
transaction_ sighash_ with_ script_ code - Spec-locked to Orange Paper Section 5.1: CalculateTransactionSighashWithScriptCode
- clear_
sighash_ templates - Clear sighash cache. Useful for benchmarking to ensure consistent results. Clears the thread-local SIGHASH_CACHE on the current thread.
- compute_
legacy_ sighash_ buffered - Spec-locked to Orange Paper Section 5.1.1: ComputeLegacySighashBuffered
- compute_
legacy_ sighash_ nocache - Spec-locked to Orange Paper Section 5.1.1: ComputeLegacySighashNocache
- compute_
sighashes_ batch - Spec-locked to Orange Paper Section 5.1.1: ComputeSighashesBatch