Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

create_signature_hash

Create a signature hash for transaction signing using ByteArray

Arguments

  • transaction_data - The transaction data to be signed
  • sighash_type - The type of signature hash (SIGHASH_ALL, etc.)

Returns

  • u256 - The hash to be signed

Fully qualified path: alexandria_btc::legacy_signature::create_signature_hash

pub fn create_signature_hash(transaction_data: Span<u8>, sighash_type: u8) -> u256