mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-27 07:23:25 +00:00
follow-up previous commit (backward compatibility)
This commit is contained in:
parent
55e0e1a72e
commit
6e5abc049b
1 changed files with 1 additions and 1 deletions
|
@ -792,7 +792,7 @@ class LnKeyFamily(IntEnum):
|
||||||
|
|
||||||
|
|
||||||
def generate_keypair(node: BIP32Node, key_family: LnKeyFamily) -> Keypair:
|
def generate_keypair(node: BIP32Node, key_family: LnKeyFamily) -> Keypair:
|
||||||
node2 = node.subkey_at_private_derivation([key_family])
|
node2 = node.subkey_at_private_derivation([key_family, 0, 0])
|
||||||
k = node2.eckey.get_secret_bytes()
|
k = node2.eckey.get_secret_bytes()
|
||||||
cK = ecc.ECPrivkey(k).get_public_key_bytes()
|
cK = ecc.ECPrivkey(k).get_public_key_bytes()
|
||||||
return Keypair(cK, k)
|
return Keypair(cK, k)
|
||||||
|
|
Loading…
Add table
Reference in a new issue