本文整理汇总了Python中pycoin.key.BIP32Node.BIP32Node.make_subclass方法的典型用法代码示例。如果您正苦于以下问题:Python BIP32Node.make_subclass方法的具体用法?Python BIP32Node.make_subclass怎么用?Python BIP32Node.make_subclass使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pycoin.key.BIP32Node.BIP32Node
的用法示例。
在下文中一共展示了BIP32Node.make_subclass方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from pycoin.key.BIP32Node import BIP32Node [as 别名]
# 或者: from pycoin.key.BIP32Node.BIP32Node import make_subclass [as 别名]
def __init__(self, puzzle_scripts, generator, bip32_prv_prefix=None, bip32_pub_prefix=None,
wif_prefix=None, sec_prefix=None, address_prefix=None, pay_to_script_prefix=None, bech32_hrp=None):
self._script_info = puzzle_scripts
self._key_class = Key.make_subclass(ui_context=self, generator=generator)
self._electrum_class = ElectrumWallet.make_subclass(ui_context=self, generator=generator)
self._bip32node_class = BIP32Node.make_subclass(ui_context=self, generator=generator)
self._parsers = [
WIFParser(generator, wif_prefix, address_prefix, self._key_class),
ElectrumParser(generator, self._electrum_class),
BIP32Parser(generator, bip32_prv_prefix, bip32_pub_prefix, self._bip32node_class),
Hash160Parser(address_prefix, self._key_class),
SECParser(generator, sec_prefix, self._key_class),
AddressParser(puzzle_scripts, address_prefix, pay_to_script_prefix, bech32_hrp)
]
self._bip32_prv_prefix = bip32_prv_prefix
self._bip32_pub_prefix = bip32_pub_prefix
self._wif_prefix = wif_prefix
self._sec_prefix = sec_prefix
self._address_prefix = address_prefix
self._pay_to_script_prefix = pay_to_script_prefix
self._bech32_hrp = bech32_hrp