-
Notifications
You must be signed in to change notification settings - Fork 57
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 P2SH tests / logic #243
Comments
@varun-doshi Here is the issue, please comment here |
Yup, I can take this up |
Hey @varun-doshi , any updates on this issue? |
In progress |
<!-- enter the gh issue after hash --> - [x] issue #243 - [x] follows contribution [guide](https://github.com/keep-starknet-strange/shinigami/blob/main/CONTRIBUTING.md) - [x] code change includes tests <!-- PR description below --> Run the tests using the following command: ``` scarb test -vv -p shinigami_tests -f test_p2sh_transaction_1 ``` for 1...5 Test 4 fails to deserialize. Figuring this out --------- Co-authored-by: Brandon Roberts <[email protected]>
If we can get this last test passing, this issue will be complete ! |
I'll get on that |
Bitcoin has many different transaction types, one of the more popular being P2SH.
In order to support these, we will need to make sure all edge cases and some mainnet P2SH transactions can successfully be validated by Shinigami.
Since Shinigami's design is heavily inspired by btcd, I recommend looking through all pay-to-script hash logic there and replicating it inside Shinigami's engine. Also, the learnmeabitcoin link can be super helpful in understanding Bitcoin P2SH transactions in depth.
Then, using the learnmeabitcoin P2SH examples and existing Shinigami transaction tests, create a set of tests to ensure all P2SH transactions run properly.
Resources
The text was updated successfully, but these errors were encountered: