Skip to main content

WITNESS_COMMITMENT_HASH_LENGTH

Constant WITNESS_COMMITMENT_HASH_LENGTH 

Source
pub const WITNESS_COMMITMENT_HASH_LENGTH: usize = 32; // 32usize
Expand description

Witness commitment hash length (BIP141)

The witness commitment in the coinbase transaction contains:

  • OP_RETURN (0x6a): 1 byte
  • Push opcode (0x24): 1 byte
  • Commitment hash: 32 bytes Total: 34 bytes

Reference: BIP141 - Witness commitment format