Skip to content

Instantly share code, notes, and snippets.

@geoboom
Last active April 25, 2022 22:49
Show Gist options
  • Select an option

  • Save geoboom/918f4edf12afb8d382bdeca5d9668e7a to your computer and use it in GitHub Desktop.

Select an option

Save geoboom/918f4edf12afb8d382bdeca5d9668e7a to your computer and use it in GitHub Desktop.

Revisions

  1. geoboom revised this gist Apr 25, 2022. 1 changed file with 7 additions and 5 deletions.
    12 changes: 7 additions & 5 deletions week2.md
    Original file line number Diff line number Diff line change
    @@ -2,8 +2,10 @@

    ## Question: How do blocks commit to witness data?

    Witness in Bitcoin transaction refers to contents of signature scripts which prove the authenticity of a transaction.
    Blocks commit to witness data via putting the witness commitment into an output of the coinbase transaction.
    Witness commitment = combined hash of witness root hash and witness reserved value.
    Witness root hash = merkle root of witness txids (wtxids) of all transactions in the block.
    wtxid = hash of transaction including the witness if exists.
    Witness in Bitcoin transaction refers to contents of signature scripts which prove the authenticity of a transaction. Blocks commit to witness data via putting the witness commitment into an output of the coinbase transaction.

    * Witness commitment = combined hash of witness root hash and witness reserved value.

    * Witness root hash = merkle root of witness txids (wtxids) of all transactions in the block.

    * wtxid = hash of transaction including the witness if exists.
  2. geoboom renamed this gist Apr 25, 2022. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. geoboom created this gist Apr 25, 2022.
    9 changes: 9 additions & 0 deletions week2
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    # Bitcoin Week 2

    ## Question: How do blocks commit to witness data?

    Witness in Bitcoin transaction refers to contents of signature scripts which prove the authenticity of a transaction.
    Blocks commit to witness data via putting the witness commitment into an output of the coinbase transaction.
    Witness commitment = combined hash of witness root hash and witness reserved value.
    Witness root hash = merkle root of witness txids (wtxids) of all transactions in the block.
    wtxid = hash of transaction including the witness if exists.