Instantiate the address returned by Seed

This commit is contained in:
Michał Sałaban 2018-06-04 12:53:45 +02:00
parent d12f2f66c0
commit b14770ea5a
2 changed files with 6 additions and 2 deletions

View file

@ -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):