tradecraftio / tradecraft

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

Add Merkle-Branch-Verify opcode for segwit script #54

Closed maaku closed 4 years ago

maaku commented 4 years ago

This pull request adds the MERKLEBRANCHVERIFY opcode, nearly as specified in BIP116. Unlike BIP116, this implementation of MPV drops its first 3 arguments. This is only compatible with use in a new script version, and is targeted for inclusion into segwit script.

This code got a pretty solid review when it was proposed for bitcoin, and hasn't changed significantly since then.

maaku commented 4 years ago

Rebased to conform with latest changes to the repo.