summaryrefslogtreecommitdiff
path: root/bip-taproot.mediawiki
diff options
context:
space:
mode:
authorDmitry Petukhov <dp@simplexum.com>2019-11-04 17:46:00 +0500
committerPieter Wuille <pieter.wuille@gmail.com>2020-01-19 14:47:33 -0800
commit0f9ab0cec993b3fde587c3eda20c7a18327ede92 (patch)
tree1b170b819763186ea3d92e883890ca0f9c98ab91 /bip-taproot.mediawiki
parentd87c5c8801932d5363d5cfc02d7f9f65c5e48f1a (diff)
downloadbips-0f9ab0cec993b3fde587c3eda20c7a18327ede92.tar.xz
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
Diffstat (limited to 'bip-taproot.mediawiki')
-rw-r--r--bip-taproot.mediawiki3
1 files changed, 2 insertions, 1 deletions
diff --git a/bip-taproot.mediawiki b/bip-taproot.mediawiki
index 460ce12..fd25b77 100644
--- a/bip-taproot.mediawiki
+++ b/bip-taproot.mediawiki
@@ -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.
script_tree is either:
- 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
+ """
if script_tree is None:
h = bytes()
else: