The Simplest Bitcoin Wallet
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 6 commits ahead, 8 commits behind NxtChg:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bcc
btx
README.md
backend_bci.js
backend_exp.js
btc.js
common.js
elliptic.js
favicon.ico
hashes.js
icon.png
index.html
jsbn.js
test.keys

README.md

The Simplest Bitcoin Wallet

The following Bitcoin folks are implemented

Nothing is sent to a server, everything is done in the browser. It gets utxo and sends signed txs via external API's.

All API access is wrapped in a "backend" object, which can be easily swapped.

You can enter a compressed or uncompressed WIF key as your passphrase; this means you can use the same wallets you have at https://coinb.in or any other wallet that allows exporting in this format.


The code is based on coinb.in, forked form tsbw.io (see https://tsbw.io) and BTX support was been added.

It's also a good start if you are interested to learn about Bitcoin and JS wallets since it's a lot simpler than the original.

Usage example:

var tx = btc.new_tx();

tx.add_input ('01020304abcdef', 0, '76a9141d8f0476ea05d9459e004fd0ff10588dd3979e6788ac'); // txid, no, script
tx.add_output('13nwZVh9RsKuZGegVn5KWHM51dA98Mho5f', 1234); // address, amount

var keys = btc.get_keys('123'); // 123 = passphrase

var signed = tx.sign(keys); console.log(signed);