Follow @nxtchg

Author Topic: The Simplest Bitcoin Wallet  (Read 1299 times)

NxtChg

  • Overlord
  • *****
  • Posts: 1113
  • Respect: +60
    • View Profile
The Simplest Bitcoin Wallet
« on: February 26, 2016, 12:09:39 pm »
0
Online Bitcoin wallets often have one or two annoying idiosyncrasies, like demanding mandatory 2-FA, and there's nothing you can do about it.

It's also not clear what information they collect. Besides, sometimes you just need a simple wallet.

So I made The Simplest Bitcoin Wallet :)

https://simcoin.info/tsbw/

https://tsbw.io/

Mostly for myself, but maybe somebody will find it useful too.

Please help test it, if you have a spare minute.

----

The code is based on coinb.in: I removed 3/4 of it, fixed a few bugs and rewrote the rest. It is now easier to read and verify.

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:
Code: [Select]
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);

Nothing is sent to my 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. I wrote two: for blochchain.info and blockexplorer.com.

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.
Tentacle Overlord, The Deranged Genius of The Abyss

grandpa_seth

  • Minion
  • *
  • Posts: 48
  • Respect: +7
    • View Profile
Re: The Simplest Bitcoin Wallet
« Reply #1 on: March 02, 2016, 08:36:06 pm »
+1
I was needing something exactly like this.
Using now, thanks so much.
Tip sent.

NxtChg

  • Overlord
  • *****
  • Posts: 1113
  • Respect: +60
    • View Profile
Re: The Simplest Bitcoin Wallet
« Reply #2 on: March 02, 2016, 08:38:16 pm »
0
He-he, somehow I thought "if anyone's gonna like it, it would be grandpa_seth" :)

Thanks.
Tentacle Overlord, The Deranged Genius of The Abyss

NxtChg

  • Overlord
  • *****
  • Posts: 1113
  • Respect: +60
    • View Profile
Re: The Simplest Bitcoin Wallet
« Reply #3 on: February 07, 2017, 09:14:10 am »
0
Due to network congestion the tx fee is increased from 0.0001 to 0.0002.
Tentacle Overlord, The Deranged Genius of The Abyss

NxtChg

  • Overlord
  • *****
  • Posts: 1113
  • Respect: +60
    • View Profile
Re: The Simplest Bitcoin Wallet
« Reply #4 on: August 06, 2017, 11:14:55 pm »
0
Bitcoin Cash version added:

http://simcoin.info/tsbw/bcc/

You can use private keys as passphrase too.

Please test with small amounts first, I just implemented it.
Tentacle Overlord, The Deranged Genius of The Abyss

NxtChg

  • Overlord
  • *****
  • Posts: 1113
  • Respect: +60
    • View Profile
Re: The Simplest Bitcoin Wallet
« Reply #5 on: August 08, 2017, 05:04:23 pm »
0
For BCC version the fee is set to 0.0001, it should be enough with bigger blocks.

Let me know if you experience any delays.
Tentacle Overlord, The Deranged Genius of The Abyss

NxtChg

  • Overlord
  • *****
  • Posts: 1113
  • Respect: +60
    • View Profile
Re: The Simplest Bitcoin Wallet
« Reply #6 on: August 13, 2017, 09:11:39 am »
+1
Switched to the Roger Ver's new blockchain explorer so it now works over HTTPS:

https://simcoin.info/tsbw/bcc/
Tentacle Overlord, The Deranged Genius of The Abyss

NxtChg

  • Overlord
  • *****
  • Posts: 1113
  • Respect: +60
    • View Profile
Re: The Simplest Bitcoin Wallet
« Reply #7 on: August 21, 2017, 02:33:19 pm »
+1
The Simplest Bitcoin Wallet got its own domain:

https://tsbw.io

Also I'm using Let's Encrypt for the first time, so let me know if there are any issues with HTTPS connection.
Tentacle Overlord, The Deranged Genius of The Abyss