@@ -96,7 +96,7 @@ def serialize_dict_bytes_bytes(
9696
9797
9898def encode_leaf_scripts (
99- dict_ : Mapping [bytes , tuple [bytes , int ]]
99+ dict_ : Mapping [bytes , tuple [bytes , int ]],
100100) -> dict [str , tuple [str , int ]]:
101101 """Return the json representation of a tap_leaf_script.
102102
@@ -107,7 +107,7 @@ def encode_leaf_scripts(
107107
108108
109109def decode_leaf_scripts (
110- map_ : Mapping [Octets , tuple [Octets , int ]] | None
110+ map_ : Mapping [Octets , tuple [Octets , int ]] | None ,
111111) -> dict [bytes , tuple [bytes , int ]]:
112112 """Return a tap_leaf_script from its json representation."""
113113 if map_ is None :
@@ -136,7 +136,7 @@ def parse_leaf_script(v: bytes) -> tuple[bytes, int]:
136136
137137
138138def encode_taproot_tree (
139- list_ : list [tuple [int , int , bytes ]]
139+ list_ : list [tuple [int , int , bytes ]],
140140) -> list [tuple [int , int , str ]]:
141141 """Return the json representation of a tap_tree.
142142
@@ -146,7 +146,7 @@ def encode_taproot_tree(
146146
147147
148148def decode_taproot_tree (
149- list_ : Sequence [tuple [int , int , Octets ]] | None
149+ list_ : Sequence [tuple [int , int , Octets ]] | None ,
150150) -> list [tuple [int , int , bytes ]]:
151151 """Return a tap_tree from its json representation."""
152152 if list_ is None :
@@ -184,7 +184,7 @@ def parse_taproot_tree(v: bytes) -> list[tuple[int, int, bytes]]:
184184
185185
186186def taproot_bip32_to_dict (
187- taproot_hd_key_paths : dict [bytes , tuple [list [bytes ], BIP32KeyOrigin ]]
187+ taproot_hd_key_paths : dict [bytes , tuple [list [bytes ], BIP32KeyOrigin ]],
188188) -> list [dict [str , Any ]]:
189189 """Return the json representation of a tap_bip32_derivation.
190190
@@ -203,7 +203,7 @@ def taproot_bip32_to_dict(
203203
204204
205205def taproot_bip32_from_dict (
206- taproot_hd_key_paths : list [dict [str , str ]]
206+ taproot_hd_key_paths : list [dict [str , str ]],
207207) -> dict [bytes , tuple [list [bytes ], BIP32KeyOrigin ]]:
208208 """Return a tap_bip32_derivation from its json representation."""
209209 return {
@@ -219,7 +219,7 @@ def taproot_bip32_from_dict(
219219
220220
221221def decode_taproot_bip32 (
222- dict_ : Mapping [Octets , tuple [Sequence [Octets ], BIP32KeyOrigin ]] | None
222+ dict_ : Mapping [Octets , tuple [Sequence [Octets ], BIP32KeyOrigin ]] | None ,
223223) -> dict [bytes , tuple [list [bytes ], BIP32KeyOrigin ]]:
224224 """Parse correctly the tap_bip32_derivation init arguments."""
225225 if dict_ is None :
@@ -315,7 +315,7 @@ def assert_valid_taproot_tree(tree: list[tuple[int, int, bytes]]) -> None:
315315
316316
317317def assert_valid_taproot_bip32_derivation (
318- derivations : dict [bytes , tuple [list [bytes ], BIP32KeyOrigin ]]
318+ derivations : dict [bytes , tuple [list [bytes ], BIP32KeyOrigin ]],
319319) -> None :
320320 """Fails when the public keys have not the correct length."""
321321 for pubkey in derivations :
0 commit comments