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

It is basically impossible to get a LeafHash from a Tr descriptor to sign it #739

Open
apoelstra opened this issue Sep 2, 2024 · 0 comments

Comments

@apoelstra
Copy link
Member

Unless I am crazy you need to iterate through the TapTree, convert the miniscripts to Script with Miniscript::encode, then call Script::taproot_leaf_hash on that.

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

No branches or pull requests

1 participant