@@ -200,6 +200,8 @@ class BIP32Node(NamedTuple):
|
||||
return isinstance(self.eckey, ecc.ECPrivkey)
|
||||
|
||||
def subkey_at_private_derivation(self, path: Union[str, Iterable[int]]) -> 'BIP32Node':
|
||||
if path is None:
|
||||
raise Exception("derivation path must not be None")
|
||||
if isinstance(path, str):
|
||||
path = convert_bip32_path_to_list_of_uint32(path)
|
||||
if not self.is_private():
|
||||
@@ -224,6 +226,8 @@ class BIP32Node(NamedTuple):
|
||||
child_number=child_number)
|
||||
|
||||
def subkey_at_public_derivation(self, path: Union[str, Iterable[int]]) -> 'BIP32Node':
|
||||
if path is None:
|
||||
raise Exception("derivation path must not be None")
|
||||
if isinstance(path, str):
|
||||
path = convert_bip32_path_to_list_of_uint32(path)
|
||||
if not path:
|
||||
|
||||
Reference in New Issue
Block a user