BlockchainCommons / Learning-Bitcoin-from-the-Command-Line

A complete course for learning Bitcoin programming and usage from the command
3.11k stars 754 forks source link

Error in 10_4_Scripting_a_Multisig.md: need $pubkey1 instead of $address1 #606

Open Gilbog opened 1 year ago

Gilbog commented 1 year ago

In 10_4_Scripting_a_Multisig.md, the multisig scriptPubkey is described as containing $address1, $address2

I think that's a mistake: The scriptPubKey contains $pubkey1, $pubkey2

OP_CHECKMULTISIG cannot check $signature1 against $address1, but needs $pubkey1

See also https://en.bitcoin.it/wiki/OP_CHECKMULTISIG or https://bitcoin.stackexchange.com/questions/40669/checkmultisig-a-worked-out-example