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

Feat/taproot verify #289

Merged

Conversation

Jeanmichel7
Copy link
Contributor

@Jeanmichel7 Jeanmichel7 commented Dec 2, 2024

  • resolves ImplTaprootSigVerifier with hashcache
  • resolves Impl calc_taproot_signature_hash()
  • follows contribution guide
  • resolves TxSigHashes handles segwite and taproot (SigHashMidstateTrait) but needs cache to complete functions
    calc_hash_inputs_amount and calc_hash_input_scripts in SigHashMidstateTrait::new(tx) for taproot
  • code change includes tests

I think it's essential to set up the cache in order to be able to retrieve the utxos of the inputs processed in the calcHashInputAmounts and calcHashInputScript functions.
https://github.com/btcsuite/btcd/blob/master/txscript/hashcache.go#L157
Before going any further, I'd like your opinion

Copy link

vercel bot commented Dec 2, 2024

@Jeanmichel7 is attempting to deploy a commit to the keep-starknet-strange Team on Vercel.

A member of the Team first needs to authorize it.

@b-j-roberts
Copy link
Contributor

It's probably best to go ahead and set up the caches, yeah, nice work so far! Let me know when you're ready, and I can do a deeper review. Thanks!

@lana-shanghai
Copy link

Hey @Jeanmichel7 how is the progress on the PR? I would like to merge it soon, because it would be used in the Bitcoin inscriptions contracts.

lana-shanghai pushed a commit that referenced this pull request Jan 16, 2025
<!-- enter the gh issue after hash -->

- [X] follows contribution
[guide](https://github.com/keep-starknet-strange/shinigami/blob/main/CONTRIBUTING.md)
- [X] code change includes tests

Adding Schnorr signatures verification.
Works alongside with #289

---------

Co-authored-by: j1mbo64 <[email protected]>
@Jeanmichel7 Jeanmichel7 marked this pull request as ready for review January 16, 2025 23:56
@Jeanmichel7
Copy link
Contributor Author

Jeanmichel7 commented Jan 17, 2025

@lana-shanghai There are still a few TODOs for SigVerify, but as you seem to be in a hurry, there's already enough for a review.

Copy link

vercel bot commented Jan 24, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
shinigami ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 24, 2025 10:35am

Copy link

@lana-shanghai lana-shanghai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, please handle the hashcache for the rest of the functionality

@lana-shanghai lana-shanghai merged commit 7e8c05d into keep-starknet-strange:main Jan 24, 2025
5 checks passed
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

Successfully merging this pull request may close these issues.

3 participants