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
Update bip-0341.mediawiki #1348
Conversation
Not sure what your point is exactly but the commit doesn't make sense. |
@jonasnick Yeah I wasn't looking too closely and put I guess the main thing I was trying to get at is why |
I'll assume Could an explicit case be added to return empty bytes like in https://github.com/bitcoin/bitcoin/blob/bada9636d7f2efbc620fd89107baa2bf3e64a6b8/test/functional/test_framework/script.py#L822? |
@@ -199,6 +199,8 @@ The following function, <code>taproot_output_script</code>, returns a byte array | |||
|
|||
<source lang="python"> | |||
def taproot_tree_helper(script_tree): | |||
if len(scripts) == 0: |
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.
scripts
is undefined
Thanks, I see what you're saying now. Here's my attempt at a fix: #1350. Feel free to mention there whether this addresses the issue you brought up. |
@jonasnick
The addition of There isn't a place to file issues for this repo and since this is a pretty small thing I thought I might just add the comment here |
Yes that makes sense. Good catch. |
"If the spending conditions do not require a script path, the output key should commit to an unspendable script path instead of having no script path. This can be achieved by computing the output key point as Q = P + int(hash_TapTweak(bytes(P)))G"
Calling 'taproot_tree_helper' calls 'hash_TapLeaf' instead of 'hash_TapTweak'.