diff options
author | Dmitry Petukhov <dp@simplexum.com> | 2019-11-04 19:15:12 +0500 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2020-01-19 14:47:33 -0800 |
commit | d87c5c8801932d5363d5cfc02d7f9f65c5e48f1a (patch) | |
tree | 84a9f98e37e8adb26175cf4fa8e3489ede6e773d | |
parent | 7c00346cf2bff0c203d82c739cca915c87ad22de (diff) | |
download | bips-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
-rw-r--r-- | bip-taproot.mediawiki | 2 |
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) |