mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-09-20 08:05:33 +03:00
Fix signing with path m
key (#10009)
This commit is contained in:
parent
b8ada1ceb7
commit
fa2cdd6492
@ -135,7 +135,7 @@ def derive_sk_from_hd_path(master_sk: PrivateKey, hd_path_root: str) -> Tuple[Pr
|
||||
|
||||
path = path[1:] # Skip "m"
|
||||
|
||||
if path[-1] == "": # remove trailing slash
|
||||
if len(path) > 0 and path[-1] == "": # remove trailing slash
|
||||
path = path[:-1]
|
||||
|
||||
index_and_derivation_types: List[Tuple[int, DerivationType]] = []
|
||||
|
Loading…
Reference in New Issue
Block a user