Skip to content

Commit 12d8d5b

Browse files
authored
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
1 parent e174022 commit 12d8d5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bip-taproot.mediawiki

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def taproot_output_script(internal_pubkey, script_tree):
224224
- a list of two elements, each with the same structure as script_tree itself"""
225225
- None
226226
if script_tree is None:
227-
h = b''
227+
h = bytes()
228228
else:
229229
_, h = taproot_tree_helper(script_tree)
230230
output_pubkey, _ = taproot_tweak_pubkey(internal_pubkey, h)

0 commit comments

Comments
 (0)