diff options
author | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2024-03-22 10:28:53 +0100 |
---|---|---|
committer | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2024-03-28 11:22:23 +0100 |
commit | c6d1b8de89d87fe4fd171dc85557299e429e6564 (patch) | |
tree | 631f71ffbad5d366ff37350439a0febb809788aa /src/qt/qvaluecombobox.h | |
parent | bf1b6383dbbfdd0c96a161d4693a48bf3a6b6150 (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/qvaluecombobox.h')
0 files changed, 0 insertions, 0 deletions