Author

Topic: what JavaScript library to generate priv keys & addresses? (like bitaddress.org) (Read 1614 times)

full member
Activity: 148
Merit: 100
Crazy!
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.
jp
member
Activity: 69
Merit: 10
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
legendary
Activity: 1176
Merit: 1011
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?

Jump to: