I'm facing an issue regarding generation of Bitcoin addresses.
I've public key
:
String xpub"xpub661MyMwAqRbcGJxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
I want to generate multiple addresses
from xpub
.
I'm using bitcoinJ
library.
ECKey key=ECKey.fromPublicOnly(Base58.decode(xpub));
It throws exception of:
Incorrect length for uncompressed encoding
I've read many articles, I found that Ripemd160(SHA256(string));
.
After hashing
, I encode
in Base58
, but couldn't achieve multiple addresses.