Title: How to authenticate with challange and private keys? [Java] Post by: membersound on February 13, 2014, 04:22:24 PM I'd like to translate the following JS code into Java code:
Code: var key = new Bitcoin.ECKey(Crypto.util.hexToBytes(SHA256(password))); //password = private user password I'm want to use bitcoinj for this. Maybe anyone has already worked with it and can help how the calls in java have to be constructed? I came up with the following, but don't know how to continue: Code: String password; //the private user pw If what I did is correct: how do I get the challange_key that has to be send back to the server out of the ECkey that I signed? Title: Re: How to authenticate with challange and private keys? [Java] Post by: Mike Hearn on March 03, 2014, 11:27:09 PM key.sign returns an object with the r/s components in it. You can send them back to the server.
|