aboutsummaryrefslogtreecommitdiff
path: root/src/qt/forms/debugwindow.ui
diff options
context:
space:
mode:
authorSebastian Falbesoner <sebastian.falbesoner@gmail.com>2024-03-22 10:28:53 +0100
committerSebastian Falbesoner <sebastian.falbesoner@gmail.com>2024-03-28 11:22:23 +0100
commitc6d1b8de89d87fe4fd171dc85557299e429e6564 (patch)
tree631f71ffbad5d366ff37350439a0febb809788aa /src/qt/forms/debugwindow.ui
parentbf1b6383dbbfdd0c96a161d4693a48bf3a6b6150 (diff)
gui: change example address from legacy (P2PKH) to bech32m (P2TR)
The dummy addresses have been computed with the following Python script (executed under ./test/functional): -------------------------------------------------------------------------------------------------------- from test_framework.segwit_addr import CHARSET, decode_segwit_address, encode_segwit_address from test_framework.messages import sha256 output_key = sha256(b'bitcoin dummy taproot output key') for network, hrp in [('mainnet', 'bc'), ('signet', 'tb'), ('testnet', 'tb'), ('regtest', 'bcrt')]: dummy_address = encode_segwit_address(hrp, 1, output_key) while decode_segwit_address(hrp, dummy_address) != (None, None): last_char = CHARSET[(CHARSET.index(dummy_address[-1]) + 1) % 32] dummy_address = dummy_address[:-1] + last_char print(f'{network:7} example address: {dummy_address}') -------------------------------------------------------------------------------------------------------- Co-authored-by: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>
Diffstat (limited to 'src/qt/forms/debugwindow.ui')
0 files changed, 0 insertions, 0 deletions