Ejemplo n.º 1
0
    def create_wallet(self):
        wallet = Wallet()

        address = wallet.get_address()

        self.wallets[address] = wallet
        return address
Ejemplo n.º 2
0
def get_address(n):
    wallet = Wallet()

    return [wallet.get_address() for i in range(n)]
Ejemplo n.º 3
0
#!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
This Document is Created by  At 2018/7/8
"""
from core.wallet.wallet import Wallet

if __name__ == "__main__":
    w = Wallet()

    # todo need to test
    # there is something error in th test,
    # sometime the assert is ok, but others not.
    # so,maybe something need to do to find the bug.
    # Mark .
    address = w.get_address()
    valid = w.validate_addr(address)

    print(address)
    assert valid is True