Title: what JavaScript library to generate priv keys & addresses? (like bitaddress.org) Post by: Kazimir on January 21, 2014, 01:45:18 PM For some websites I'd like to include the functionality to generate Bitcoin private keys & addresses client-side, just like bitaddress.org.
In fact, I don't even need to generate them randomly, just converting 256 bit hex keys (e.g. from brainwallets or deterministic key generators or other pseudo-random sources) to private keys and addresses. For testing purposes, I actually saved bitaddress.org, stripped all HTML, and just called the relevant functions myself. Works great, but I guess that isn't the most 'clean' way to do this. And it's not trivial to keep up to date either. I know bitaddress.org is in github (https://github.com/pointbiz/bitaddress.org) but is the library that bitaddress.org uses, and especially the hex key to private key / address conversion, also available separately? Or is just a matter of cherry-picking the right files from github? Title: Re: what JavaScript library to generate priv keys & addresses? (like bitaddress.org) Post by: jp on February 20, 2014, 09:48:42 AM I'm developing a library for this: https://github.com/cryptocoinjs Also, I wrote an article on all the gory details of Address generation with JavaScript using BitcoinJS (which is what my library is forked from): http://procbits.com/2013/08/27/generating-a-bitcoin-address-with-javascript
Title: Re: what JavaScript library to generate priv keys & addresses? (like bitaddress.org) Post by: crazydownloaded on February 21, 2014, 06:21:10 AM Brainwallet is actually opensourced too: https://github.com/brainwallet/brainwallet.github.com and includes a generation of addresses.
I did it myself, that's not very difficult to understand. Starts with bitcoin-js library. |