mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-29 16:31:29 +00:00
fix #1399
This commit is contained in:
parent
ede7423bf2
commit
438bc94dce
1 changed files with 3 additions and 3 deletions
|
@ -211,9 +211,9 @@ class OldAccount(Account):
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_pubkey_from_mpk(self, mpk, for_change, n):
|
def get_pubkey_from_mpk(self, mpk, for_change, n):
|
||||||
z = self.get_sequence(mpk, for_change, n)
|
z = self.get_sequence(mpk, for_change, n)
|
||||||
master_public_key = ecdsa.VerifyingKey.from_string( mpk, curve = SECP256k1 )
|
master_public_key = ecdsa.VerifyingKey.from_string(mpk, curve = SECP256k1)
|
||||||
pubkey_point = master_public_key.pubkey.point + z*curve.generator
|
pubkey_point = master_public_key.pubkey.point + z*SECP256k1.generator
|
||||||
public_key2 = ecdsa.VerifyingKey.from_public_point( pubkey_point, curve = SECP256k1 )
|
public_key2 = ecdsa.VerifyingKey.from_public_point(pubkey_point, curve = SECP256k1)
|
||||||
return '04' + public_key2.to_string().encode('hex')
|
return '04' + public_key2.to_string().encode('hex')
|
||||||
|
|
||||||
def derive_pubkeys(self, for_change, n):
|
def derive_pubkeys(self, for_change, n):
|
||||||
|
|
Loading…
Add table
Reference in a new issue