Hi guys.
I'm trying to create a java app which uses a secret (to the user) hash to salt a passphrase before creating a bitcoin address.
I've done most of the work and it is in theory much more secure than normal brain wallets.
The only problem I am having is in creating the public key and address.
For example my app so far does the following:
1. turns the passphrase into an indecipherable passphrase of 500 letters and numbers using the users secret.
2. turns that passphrase into the secret exponent. eg. affc875700667e07a53bea72fdd1d946561a523a0bee0170daedc79151ad0526
3. turns this into the WIF Private key eg. 5K9nvFWdpdJQukRWZEHVz2ThVH2uQwXAoL4VdcUxH8UGYYmxUoZ
I can then import this into a wallet and use it as it shows me the public key and address, I know that, BUT...
I want to write my own code in java to display the public key and address for me. I have tried using bouncycastle libraries and for some reason it keeps giving me a totally random pubkey and address each time which has nothing to do with private key. I think thats something to do with SecureRandom which seeds it with random numbers so that sucks.
If anybody has any ideas I'd be very grateful, thankyou
1AyEvwKXjKZdqpm7a2zLRzRGSs4gBLoTXM