-
Notifications
You must be signed in to change notification settings - Fork 2.2k
TransactionBuilder P2SH Multisig order of signatures #373
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
Conversation
eb5469c to
f12de10
Compare
|
hey @dcousens if you use the 'Files Changed' tab of the PR and do comments there instead of going commit for commit than it's a bit easier imo to reply to the stuff than going to the commits. also because you went commit for commit, you basicly commented a lot of a commit I actually took the code out for in a later commit ;-) also after a rebase you're comments are sort of lost :( afaik if you comment from 'Files Changed' tab then it will list it in the PR as 'comment on outdated comment' so they're not completely lost anyway to sum up the stuff from your comments in the commits;
|
d495d5b to
a46e63c
Compare
|
@rubensayshi no worries, not sure why I commented on the commits. My bad. |
|
Will review tonight. |
a46e63c to
1e752d9
Compare
|
Sorry, was a bit delayed on reviewing this. If you could please rebase on master :). Will begin review anyway. |
…n txb.sign when it's not already prefilled with OP_0s
redid P2SH multisig tests to use fixtures
1e752d9 to
745eace
Compare
|
rebased |
TransactionBuilder P2SH Multisig order of signatures
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My only qualm was that I don't think this is necessary. However I know it is necessary given the current solution of pre-emptively always putting in the OP_0's. I might change that and submit a PR.
|
Awesome work @rubensayshi . Thanks so much for this. Sorry it took me a while to get around to it. |
this PR is based off https://github.com/bitcoinjs/bitcoinjs-lib/tree/op0fix (#372) and I also merged in #370 because both of those are needed for me to continue upon in this PR.
OP_0s (orforceFixMultisigSigOrderis specified when the user knows they're getting a messed up TX).Like I said in #369 when doing
txb = new TransactionBuilder(); txb.addInput(); txb.sign()thesignis the first time we actually learn about the redeemScript so it's not possible to do this stuff infromTransactionbut it has to go intosign.