tradecraftio / tradecraft

Tradecraft integration/staging tree https://tradecraft.io/download
Other
13 stars 9 forks source link

Segwit commitment update #50

Closed maaku closed 5 years ago

maaku commented 5 years ago

This PR does quite a bit more than the title says. It also changes the structure and location of the commitment to allow efficient midstate compression, and switches to fast Merkle trees for the witness.

Unrelated to the commitment, it also fixes the witness serialization format in the same way we did for extended undo structures (dummy value of 0xff instead of 0x00), puts the coinbase under the witness Merkle tree, and removes counting of witness signature operations.