mirror of
https://github.com/bitcoin/bips.git
synced 2025-02-25 16:04:13 +01:00
fix docstring in taproot_output_script
the final "-None" line in the docstring of `taproot_output_script` example function was actually outside of the docstring
This commit is contained in:
parent
fda77055c7
commit
db8d6d426f
1 changed files with 2 additions and 1 deletions
|
@ -221,8 +221,9 @@ def taproot_output_script(internal_pubkey, script_tree):
|
||||||
"""Given a internal public key and a tree of scripts, compute the output script.
|
"""Given a internal public key and a tree of scripts, compute the output script.
|
||||||
script_tree is either:
|
script_tree is either:
|
||||||
- a (leaf_version, script) tuple (leaf_version is 0xc0 for bip-tapscript scripts)
|
- a (leaf_version, script) tuple (leaf_version is 0xc0 for bip-tapscript scripts)
|
||||||
- a list of two elements, each with the same structure as script_tree itself"""
|
- a list of two elements, each with the same structure as script_tree itself
|
||||||
- None
|
- None
|
||||||
|
"""
|
||||||
if script_tree is None:
|
if script_tree is None:
|
||||||
h = bytes()
|
h = bytes()
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Reference in a new issue