Skip to content

Commit a1045bc

Browse files
committed
descriptor.py: fix PubkeyProvider.get_pubkey_bytes for ranged desc
1 parent 5f300d3 commit a1045bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hwilib/descriptor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def get_pubkey_bytes(self, pos: int) -> bytes:
166166
if self.deriv_path is not None:
167167
path_str = self.deriv_path[1:]
168168
if path_str[-1] == "*":
169-
path_str = path_str[-1] + str(pos)
169+
path_str = path_str[:-1] + str(pos)
170170
path = parse_path(path_str)
171171
child_key = self.extkey.derive_pub_path(path)
172172
return child_key.pubkey

0 commit comments

Comments
 (0)