New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wrong base58check to hex encoding #32
Comments
The existing `--output-type address` emits the 1 prefix byte and 20 bytes of the RMD160 hash of the address, without the 4 byte checksum (truncated SHA256 hash), as the base58check encoding introduces the checksum during a seperate process. The introduction of this output type allows the checksum bytes of the base58check encoding to be output. This should resolve issue #32
For the first example,
The site you mention expects a hex string with the checksum to be appended, which is the reason for the different address which was output (which is invalid). I agree you have a valid point and bitcoin-tool should output this, so I've added a new output-type called This will give you the output I believe you were expecting, when used like: Output: |
It works! Very BIG thanks! 00328f307df6191bacf2bfdccfed12246fc19debd24913a03a bx base58-decode 15cLKZtKbqeSVxXWjhi5i4DjeftC8ky3bo |
Hi. Bug:
This command line:
bitcoin-tool --input-type address --input-format base58check --output-type address --output-format hex --input 15cLKZtKbqeSVxXWjhi5i4DjeftC8ky3bo
Give me following hex digit:
00328f307df6191bacf2bfdccfed12246fc19debd2
Going to Online Address Validator and Base58 Encoder/Decoder
http://lenschulwitz.com/base58
paste hex and see this:
1hrXJp891VFJ8KLGRyszDoqLeJJV
Correct work, for example:
bx base58-decode 15cLKZtKbqeSVxXWjhi5i4DjeftC8ky3bo
00328f307df6191bacf2bfdccfed12246fc19debd24913a03a
http://lenschulwitz.com/base58 give:
15cLKZtKbqeSVxXWjhi5i4DjeftC8ky3bo
The text was updated successfully, but these errors were encountered: