-
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
[feat] Implement P2WSH tests/logic #250
Labels
Comments
hello @b-j-roberts i would love to work on this issue :) |
Hello @b-j-roberts I'm a front-end and a blockchain developer. I will love to work on this |
Hi @b-j-roberts, can I work on this? |
Hello, I have experience contributing to Kakarot zkEVM and I would love to spend time on this issue |
Hi @b-j-roberts can I work on this ? |
b-j-roberts
added a commit
that referenced
this issue
Oct 20, 2024
<!-- enter the gh issue after hash --> - [x] issue #250 - [x] follows contribution [guide](https://github.com/keep-starknet-strange/shinigami/blob/main/CONTRIBUTING.md) - [x] code change includes tests <!-- PR description below --> Add tests for P2WSH: - transaction validation is OK - script execution failed - wrong hash for witness script --------- Co-authored-by: Brandon Roberts <[email protected]>
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bitcoin has many different transaction types, one of them being P2WSH.
In order to support these, we will need to make sure all edge cases and some mainnet P2WSH transactions can successfully be validated by Shinigami.
Since Shinigami's design is heavily inspired by btcd, I recommend looking through all the witness transaction logic there and replicating it inside Shinigami's engine, where needed. Many witness features are implemented, but notably witness signature calculation is not done in OP_CHECKSIG/OP_CHECKMULTISIG/...
The learnmeabitcoin link can be super helpful in understanding Bitcoin P2WSH transactions in depth.
Then, using the learnmeabitcoin P2WSH examples and existing Shinigami transaction tests, create a set of tests to ensure all P2WSH transactions run properly.
Resources
learnmeabitcoin P2WSH
Existing P2PK & P2PKH tests in Shinigami
witness sig btcd
The text was updated successfully, but these errors were encountered: