本文整理汇总了Python中electrum.wallet.BIP32_Wallet.make_seed方法的典型用法代码示例。如果您正苦于以下问题:Python BIP32_Wallet.make_seed方法的具体用法?Python BIP32_Wallet.make_seed怎么用?Python BIP32_Wallet.make_seed使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类electrum.wallet.BIP32_Wallet
的用法示例。
在下文中一共展示了BIP32_Wallet.make_seed方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: create
# 需要导入模块: from electrum.wallet import BIP32_Wallet [as 别名]
# 或者: from electrum.wallet.BIP32_Wallet import make_seed [as 别名]
def create(self):
from electrum.wallet import BIP32_Wallet
seed = BIP32_Wallet.make_seed()
msg = _("If you forget your PIN or lose your device, your seed phrase will be the "
"only way to recover your funds.")
def on_ok(_dlg, _btn):
_dlg.close()
if _btn == _dlg.ids.confirm:
self.run('confirm_seed', (seed,))
else:
self.run('new')
ShowSeedDialog(message=msg, seed_text=seed, on_release=on_ok).open()
示例2: create_seed
# 需要导入模块: from electrum.wallet import BIP32_Wallet [as 别名]
# 或者: from electrum.wallet.BIP32_Wallet import make_seed [as 别名]
def create_seed(self):
from electrum.wallet import BIP32_Wallet
seed = BIP32_Wallet.make_seed()
self.show_seed_dialog(run_next=self.confirm_seed, seed_text=seed)
示例3: create_seed
# 需要导入模块: from electrum.wallet import BIP32_Wallet [as 别名]
# 或者: from electrum.wallet.BIP32_Wallet import make_seed [as 别名]
def create_seed(self):
from electrum.wallet import BIP32_Wallet
seed = BIP32_Wallet.make_seed()
msg = _("If you forget your PIN or lose your device, your seed phrase will be the "
"only way to recover your funds.")
self.show_seed_dialog(run_prev=self.new, run_next=self.confirm_seed, message=msg, seed_text=seed)