bip39.py 645 B

1234567891011121314151617181920212223242526
  1. #!/usr/bin/env python3
  2. #
  3. # MMGen Wallet, a terminal-based cryptocurrency wallet
  4. # Copyright (C)2013-2025 The MMGen Project <mmgen@tuta.io>
  5. # Licensed under the GNU General Public License, Version 3:
  6. # https://www.gnu.org/licenses
  7. # Public project repositories:
  8. # https://github.com/mmgen/mmgen-wallet
  9. # https://gitlab.com/mmgen/mmgen-wallet
  10. """
  11. wallet.bip39: BIP39 mnemonic wallet class
  12. """
  13. from .mnemonic import wallet
  14. class wallet(wallet):
  15. desc = 'BIP39 mnemonic data'
  16. mn_type = 'BIP39'
  17. wl_id = 'bip39'
  18. def __init__(self, *args, **kwargs):
  19. from ..bip39 import bip39
  20. self.conv_cls = bip39
  21. super().__init__(*args, **kwargs)