-
Notifications
You must be signed in to change notification settings - Fork 124
bech32 (SegWit) long address #56
Copy link
Copy link
Open
Description
Hi,
address like:
bc1qa5wkgaew2dkv56kfvj49j0av5nml45x9ek9hz6 is working. But longer (valid) address like:
bc1qvpgyac88vqtslewxu7yu9dqwp8rd83zch55zpm3xgn3mgg72w3kqv0s8qa throws error:
"Invalid size input for address: expected 21 bytes but got 33 bytes instead."
./bitcoin-tool \
--network bitcoin \
--input-type address \
--input-format bech32 \
--input "bc1qgdjqv0av3q56jvd82tkdjpy7gdp9ut8tlqmgrpmv24sq90ecnvqqjwvw97" \
--ignore-input-errors \
--output-type public-key-rmd \
--output-format hex
Invalid size input for address: expected 21 bytes but got 33 bytes instead.
---
./bitcoin-tool \
--network bitcoin \
--input-type address \
--input-format bech32 \
--input "bc1qhmc0vk4xzr37ayv7tlyhns7x4dk04tyvflk8ey" \
--ignore-input-errors \
--output-type public-key-rmd \
--output-format hex
bef0f65aa610e3ee919e5fc979c3c6ab6cfaac8c
Also please note that --input-format bech32 is NOT at title page neither help --help.
Is there really req. for "bech32" param? Isn't "address" enought?
To add 1xxx, 3xxx also bc1xxx and bc1xxx....xxx address types.
Note: SegWit #26
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels