Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Behaviour of OP_CHECKMULTISIG in bitcoind docs not match docs #622
Comments
|
@gsalgado nice catch! Thanks! I just read the function, and it seems to match your description, so I'll update the docs. (Although I'm pasting annotated Bitcoin Core code below in case somebody knows I'm misreading it.)
|
harding
added a commit
to harding/bitcoin.org
that referenced
this issue
Oct 29, 2014
harding
referenced this issue
Oct 29, 2014
Merged
Dev Docs Correction: Checkmultisg Requires Sigs In Same Order As PubKeys #623
gsalgado
commented
Oct 29, 2014
|
Thanks for taking care of that, @harding ! |
harding
closed this
in
#623
Oct 29, 2014
jmaurice
added a commit
to jmaurice/bitcoin.jp
that referenced
this issue
Nov 19, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
gsalgado commentedOct 28, 2014
Location: https://bitcoin.org/en/developer-reference#term-op-checkmultisig
The dev guide says that OP_CHECKMULTISIG "[...] compares each of public keys against each of the signatures looking for ECDSA matches", but bitcoind doesn't seem to do that. Instead, for every signature it starts looking for a matching pubkey from the pubkey that last matched a signature.
If my reading of the code is correct, a redeem script of the form "sig2 sig1 2 pubkey1 pubkey2 pubkey3 3 OP_CHECKMULTISIG" would evaluate to false in bitcoind but the docs suggest that would work.