2
[Technical question] Private key to base 58 conversion
Author Summary
busterroni is
in
Technical Question
Post Body
Hi everyone, I'm trying to convert a private key to base58 using Java. I'm following this guide. Once I have the private key, I'm using this code to convert it to SHA-256. For whatever reason, when I perform SHA-256 on the private key 0x80 byte from the guide (800C28FCA386C7A227600B2FE50B7CAE11EC86D3BF1FBE471BE89827E19D72AA1D), "[B@3148aa23" is returned. This is clearly not what the guide says it should be (8147786C4D15106333BF278D71DADAF1079EF2D2440A4DDE37D747DED5403592). Anyone have any ideas why this is happening?
Author
Account Strength
100%
Account Age
12 years
Verified Email
Yes
Verified Flair
No
Total Karma
80,902
Link Karma
51,325
Comment Karma
29,429
Profile updated: 4 days ago
Posts updated: 8 months ago
Subreddit
Post Details
Location
We try to extract some basic information from the post title. This is not
always successful or accurate, please use your best judgement and compare
these values to the post title and body for confirmation.
- Posted
- 9 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/Bitcoin/com...