To generate a new wallet with a random keypair, initialize a wallet in a class with Wallet wallet = new Wallet();
To generate a wallet from a WIF, use Wallet wallet = new Wallet(insert your WIF here as a String);
The following methods can be called from your wallet objects:
toString()
getKeys()
getPubAddress()
getPubKey()
getWIF()
getPrivKey()
You can customize the network ID and the WIF prefix, as well as the curve used in resources.Config;
This uses BitcoinJ's Base58 class & their AddressFormatException class, and this repo for hashing: https://github.com/romus/sha
Please don't use this. It works, theoretically, provided it's set up correctly, but the code is an impossible to understand mess, and I have a much nicer (and shinier! And just better overall through magic Schnorr dust!) implementation of the necessary cryptographic signing algorithm over at my SchnorrCode repository. Check that out instead.