tool: support addr2pubhex for XMR
Output is concatenated psk + pvk (64 bytes)
This commit is contained in:
parent
e2c5d154f6
commit
8dc59c39bf
2 changed files with 6 additions and 1 deletions
|
|
@ -43,7 +43,7 @@ class MMGenAddrType(HiliteStr, InitErrors, MMGenObject):
|
|||
desc = ImmutableAttr(str)
|
||||
|
||||
pubhash_fmts = ('p2pkh', 'bech32', 'ethereum')
|
||||
pubkey_fmts = ('bech32pk')
|
||||
pubkey_fmts = ('bech32pk', 'monero')
|
||||
mmtypes = {
|
||||
'L': ati('legacy', 'std', False,'p2pkh', 'p2pkh', 'wif', (), 'Legacy uncompressed address'),
|
||||
'C': ati('compressed','std', True, 'p2pkh', 'p2pkh', 'wif', (), 'Compressed P2PKH address'),
|
||||
|
|
|
|||
|
|
@ -43,6 +43,11 @@ tests = {
|
|||
([pubhex1], addr1),
|
||||
],
|
||||
},
|
||||
'addr2pubhex': {
|
||||
'xmr_mainnet': [
|
||||
([addr1], pubhex1),
|
||||
],
|
||||
},
|
||||
'wif2addr': {
|
||||
'xmr_mainnet': [
|
||||
([privhex1], addr1),
|
||||
|
|
|
|||
Loading…
Reference in a new issue