mirror of
https://git.wownero.com/lza_menace/wownero-python.git
synced 2024-08-15 03:25:25 +00:00
Instantiate the address returned by Seed
This commit is contained in:
parent
d12f2f66c0
commit
b14770ea5a
2 changed files with 6 additions and 2 deletions
|
@ -35,10 +35,10 @@
|
|||
# + simplified interface, changed exceptions (assertions -> explicit raise)
|
||||
# + optimization
|
||||
|
||||
from monero import address
|
||||
from monero import wordlists
|
||||
from monero import ed25519
|
||||
from monero import base58
|
||||
from monero.address import address
|
||||
from binascii import hexlify, unhexlify
|
||||
from os import urandom
|
||||
from sha3 import keccak_256
|
||||
|
@ -161,7 +161,7 @@ class Seed(object):
|
|||
h = keccak_256()
|
||||
h.update(unhexlify(data))
|
||||
checksum = h.hexdigest()
|
||||
return base58.encode(data + checksum[0:8])
|
||||
return address(base58.encode(data + checksum[0:8]))
|
||||
|
||||
|
||||
def generate_hex(n_bytes=32):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue