summaryrefslogtreecommitdiff
path: root/bip-taproot.mediawiki
diff options
context:
space:
mode:
authorDmitry Petukhov <dp@simplexum.com>2019-11-04 19:15:12 +0500
committerPieter Wuille <pieter.wuille@gmail.com>2020-01-19 14:47:33 -0800
commitd87c5c8801932d5363d5cfc02d7f9f65c5e48f1a (patch)
tree84a9f98e37e8adb26175cf4fa8e3489ede6e773d /bip-taproot.mediawiki
parent7c00346cf2bff0c203d82c739cca915c87ad22de (diff)
downloadbips-d87c5c8801932d5363d5cfc02d7f9f65c5e48f1a.tar.xz
use bytes() instead of b'' - avoid markdown issue
Currently github markdown renders `b''` inside `<source>` tags incorrectly. This makes `h = b''` show as `h = b` and creates some confusion. The issue can be avoided by using bytes() to create empty byte array
Diffstat (limited to 'bip-taproot.mediawiki')
-rw-r--r--bip-taproot.mediawiki2
1 files changed, 1 insertions, 1 deletions
diff --git a/bip-taproot.mediawiki b/bip-taproot.mediawiki
index 1b8ed0c..460ce12 100644
--- a/bip-taproot.mediawiki
+++ b/bip-taproot.mediawiki
@@ -224,7 +224,7 @@ def taproot_output_script(internal_pubkey, script_tree):
- a list of two elements, each with the same structure as script_tree itself"""
- None
if script_tree is None:
- h = b''
+ h = bytes()
else:
_, h = taproot_tree_helper(script_tree)
output_pubkey, _ = taproot_tweak_pubkey(internal_pubkey, h)