-
Notifications
You must be signed in to change notification settings - Fork 62
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
fix: fix opchecksig bug #223
fix: fix opchecksig bug #223
Conversation
dlaciport
commented
Sep 18, 2024
•
edited
Loading
edited
- fixes [bug] [bitcoin-core test] ScriptSig: '0x27 0x3024021077777777777777777777777777777777020a7777777777777777777777777777777701' -- ScriptPubKey: '0 CHECKSIG NOT' #211
- fixes [bug] [bitcoin-core test] ScriptSig: '0x27 0x302402107777777777777777777777777777777702108777777777777777777777777777777701' -- ScriptPubKey: '0 CHECKSIG NOT' #212
- follows contribution guide
- code change includes tests
@bloomingpeach is attempting to deploy a commit to the keep-starknet-strange Team on Vercel. A member of the Team first needs to authorize it. |
Hey, were you able to track down which line was giving the index out-of-bounds error? I'm curious where it was failing |
it fails here: https://github.com/keep-starknet-strange/shinigami/blob/main/packages/engine/src/signature/signature.cairo#L298 By the way I think it is not supposed to go that far with an empty pubkey, https://github.com/keep-starknet-strange/shinigami/blob/main/packages/engine/src/signature/signature.cairo#L252 I think we should at least have a check for empty pubkey before or inside this function. |
I see, thanks for the info! I think how you did it is a good solution. However, I think we should also add a check here for if the Would need to make |
Would you like me to include the check in this PR or should it be in another PR? @b-j-roberts |
In this PR if you can, thanks |
@b-j-roberts please review sir |
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.
Sorry for taking forever to get to this, thank you! And great work as always.