1
0
mirror of https://github.com/bitcoin/bips.git synced 2024-11-20 10:11:46 +01:00

Merge pull request #120 from dgpv/patch-2

bip-taproot: fix docstring in taproot_output_script
This commit is contained in:
Pieter Wuille 2019-11-04 13:28:36 -08:00 committed by GitHub
commit eacf0c6533
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: