Last active
April 25, 2022 22:49
-
-
Save geoboom/918f4edf12afb8d382bdeca5d9668e7a to your computer and use it in GitHub Desktop.
Revisions
-
geoboom revised this gist
Apr 25, 2022 . 1 changed file with 7 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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. -
geoboom renamed this gist
Apr 25, 2022 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
geoboom created this gist
Apr 25, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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.