From 8dc59c39bfc3b5866efba174f04599413d99d0e1 Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Tue, 3 Nov 2026 10:16:02 +0000 Subject: [PATCH] tool: support `addr2pubhex` for XMR Output is concatenated psk + pvk (64 bytes) --- mmgen/addr.py | 2 +- test/tooltest2_d/xmr.py | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/mmgen/addr.py b/mmgen/addr.py index 12a06d52..0ef5cb12 100644 --- a/mmgen/addr.py +++ b/mmgen/addr.py @@ -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'), diff --git a/test/tooltest2_d/xmr.py b/test/tooltest2_d/xmr.py index 33089312..2eabaf29 100644 --- a/test/tooltest2_d/xmr.py +++ b/test/tooltest2_d/xmr.py @@ -43,6 +43,11 @@ tests = { ([pubhex1], addr1), ], }, + 'addr2pubhex': { + 'xmr_mainnet': [ + ([addr1], pubhex1), + ], + }, 'wif2addr': { 'xmr_mainnet': [ ([privhex1], addr1),