chainlib-eth

Ethereum implementation of the chainlib interface
Info | Log | Files | Refs | README | LICENSE

wallet.py (629B)


      1 # external imports
      2 from funga.eth.signer import EIP155Signer
      3 from funga.eth.keystore.dict import DictKeystore
      4 from chainlib.cli import Wallet as BaseWallet
      5 
      6 # local imports
      7 from chainlib.eth.address import AddressChecksum
      8 
      9 
     10 class Wallet(BaseWallet):
     11     """Convenience constructor to set Ethereum defaults for chainlib cli Wallet object
     12 
     13     :param checksummer: Address checksummer object
     14     :type checksummer: Implementation of chainlib.eth.address.AddressChecksum
     15     """
     16     def __init__(self, checksummer=AddressChecksum):
     17         super(Wallet, self).__init__(EIP155Signer, checksummer=checksummer, keystore=DictKeystore())