tool: support addr2pubhex for XMR

Output is concatenated psk + pvk (64 bytes)
This commit is contained in:
The MMGen Project 2026-11-03 10:16:02 +00:00
commit 8dc59c39bf
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
2 changed files with 6 additions and 1 deletions

View file

@ -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'),

View file

@ -43,6 +43,11 @@ tests = {
([pubhex1], addr1),
],
},
'addr2pubhex': {
'xmr_mainnet': [
([addr1], pubhex1),
],
},
'wif2addr': {
'xmr_mainnet': [
([privhex1], addr1),