Markle – Earlybirds Invest https://earlybirdsinvest.com Latest Crypto News Wed, 26 Feb 2025 09:59:10 +0000 en-US hourly 1 https://wordpress.org/?v=6.9.11 https://i0.wp.com/earlybirdsinvest.com/wp-content/uploads/2024/12/cropped-New-Project-2024-12-17T235703.455.png?fit=32%2C32&ssl=1 Markle – Earlybirds Invest https://earlybirdsinvest.com 32 32 240146708 Coinbasetx ID Markle Tree on Witness Commitment https://earlybirdsinvest.com/coinbasetx-id-markle-tree-on-witness-commitment/ https://earlybirdsinvest.com/coinbasetx-id-markle-tree-on-witness-commitment/#respond Wed, 26 Feb 2025 09:59:10 +0000 https://earlybirdsinvest.com/coinbasetx-id-markle-tree-on-witness-commitment/

The witness’s commitments in one output of a Coinbase transaction include:
OP_RETURN commitment_prefix|witness_commitment

where commitment_prefix=0xaa21a9ed and
witness_commitment=sha256(sha256(witness_merkle_root|witness_reserved_value)).

witness_merkle_root The root of the Merkle tree, which includes all transactions, takes witness data into account. For Coinbase transactions, you cannot use the actual hash of the transaction due to recursive dependencies. To resolve using all 0:

                             sha256(sha256(E | F))
                                        │
                     ┌──────────────────┴───────────────────┐
                     │                                      │
        E = sha256(sha256(A | B))               F = sha256(sha256(C | D))
     ┌───────────────┴───────────────┐      ┌───────────────┴───────────────┐
     │                               │      │                               │
     A (CoinbaseTx)                  B      C                               D
  000...                         txid_2  txid_3                         txid_4

Why use a TX ID set for all 0s rather than ignoring Coinbase transactions and creating a Merkle route?

]]>
https://earlybirdsinvest.com/coinbasetx-id-markle-tree-on-witness-commitment/feed/ 0 21959