From 12d8d5baa88f63aaf10c8b4a938aa9e0abf11b21 Mon Sep 17 00:00:00 2001 From: Dmitry Petukhov Date: Mon, 4 Nov 2019 19:15:12 +0500 Subject: [PATCH] use bytes() instead of b'' - avoid markdown issue Currently github markdown renders `b''` inside `` 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 --- bip-taproot.mediawiki | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bip-taproot.mediawiki b/bip-taproot.mediawiki index 1b8ed0cf..460ce12e 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)