Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ch. 8 CHECKMULTISIG validation #46

Closed
jl2012 opened this issue Nov 1, 2018 · 0 comments
Closed

Ch. 8 CHECKMULTISIG validation #46

jl2012 opened this issue Nov 1, 2018 · 0 comments

Comments

@jl2012
Copy link

jl2012 commented Nov 1, 2018

In a 5-of-7, the 5th signature can be for any of the 7 public keys. The signatures do not have to be put in any particular order.

Not really. The order of signatures MUST be same as the order of keys. This is consensus critical, and it makes sure that m-of-n multisig will perform at most n ECDSA operations.

So in a 5-of-7, the 5th signature MUST NOT be for the first 4 public keys

see: https://github.com/bitcoin/bitcoin/blob/master/src/script/interpreter.cpp#L1025

@jl2012 jl2012 closed this as completed Nov 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant