|
|
|
@ -24,12 +24,14 @@ class GetAddress(p.MessageType):
|
|
|
|
|
show_display: bool = None,
|
|
|
|
|
multisig: MultisigRedeemScriptType = None,
|
|
|
|
|
script_type: EnumTypeInputScriptType = 0,
|
|
|
|
|
ignore_xpub_magic: bool = None,
|
|
|
|
|
) -> None:
|
|
|
|
|
self.address_n = address_n if address_n is not None else []
|
|
|
|
|
self.coin_name = coin_name
|
|
|
|
|
self.show_display = show_display
|
|
|
|
|
self.multisig = multisig
|
|
|
|
|
self.script_type = script_type
|
|
|
|
|
self.ignore_xpub_magic = ignore_xpub_magic
|
|
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
|
def get_fields(cls) -> Dict:
|
|
|
|
@ -39,4 +41,5 @@ class GetAddress(p.MessageType):
|
|
|
|
|
3: ('show_display', p.BoolType, None),
|
|
|
|
|
4: ('multisig', MultisigRedeemScriptType, None),
|
|
|
|
|
5: ('script_type', p.EnumType("InputScriptType", (0, 1, 2, 3, 4)), 0), # default=SPENDADDRESS
|
|
|
|
|
6: ('ignore_xpub_magic', p.BoolType, None),
|
|
|
|
|
}
|
|
|
|
|