Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
How can I create a base58 private key and public key in Java? I'm pretty familiar with Java and I have the bitcoinj-minimal code, but it's not clear to me how I can generate a base58 key pair from the code.
com.google.bitcoin.core.ECKey key = new com.google.bitcoin.core.ECKey(); // keypair
byte pub = key.getPublicKey(); // byte array
prv = key.getPrivateKeyEncoded(com.google.bitcoin.core.NetworkParameters.prodNet());
Required, but never shown