Bitcoin Forum
November 17, 2024, 11:21:39 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: The Simplest Bitcoin Wallet  (Read 5169 times)
NxtChg (OP)
Hero Member
*****
Offline Offline

Activity: 840
Merit: 1002


Simcoin Developer


View Profile WWW
February 26, 2016, 12:53:36 PM
Last edit: August 21, 2017, 02:35:07 PM by NxtChg
 #1

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 Smiley

https://simcoin.info/tsbw/

https://tsbw.io

Mostly for myself, but maybe somebody will find it useful too. Main discussion is here.

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

If you like it, send some love here: 19BryCNdGs5F48J6yvw41pVSd5RDiA4j1x.

----

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:
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.

Simcoin: https://simtalk.org:444/ | The Simplest Bitcoin Wallet: https://tsbw.io/ | Coinmix: https://coinmix.to | Tippr stats: https://tsbw.io/tippr/
--
About smaragda and his lies: https://medium.com/@nxtchg/about-smaragda-and-his-lies-c376e4694de9
Jeremycoin
Legendary
*
Offline Offline

Activity: 1022
Merit: 1003


𝓗𝓞𝓓𝓛


View Profile
February 27, 2016, 02:17:29 AM
 #2

I see that your project is always about making crptocurrency things more simple than it usually be. Maybe you should call your project "The Simple Project" Grin

faucet used to be profitable
EdenHazard
Legendary
*
Offline Offline

Activity: 2674
Merit: 1048



View Profile
February 27, 2016, 06:52:05 AM
 #3

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 Smiley

https://simcoin.info/tsbw/

Mostly for myself, but maybe somebody will find it useful too. Main discussion is here.

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

If you like it, send some love here: 13nwZVh9RsKuZGegVn5KWHM51dA98Mho5f.

----

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:
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 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.

and how about wallet transaction?i've been open that link,and i think its really simple,and too simple for wallet,maybe you must add some logos or anything.
i try to input some phrase,and than appear wallet addres,i dont understand,i put random phrase.

.
.7 BTC  WELCOME BONUS!..
███████████████████████████
██████████▀▀▄▄▄▄▄ ▄▀▀██████
█████████▄██████ ████ ▀████
██████▀▀ ▄▄▄▄ ▀▀███▀▄██ ███
████▀   ██████   ▀██████ ██
███ ▄▄▄████████▄▄▄ ██▄▄▄ ██
██ █████▀    ▀█████ ████ ██
██  ▀██        ███▀ ███ ███
██   ▄██▄    ▄██▄   █▀▄████
███ ▄████████████▄ ████████
████▄▀███▀▀▀▀███▀▄█████████
██████▄▄      ▄▄███████████
███████████████████████████
█████████████████████████████████████████████████████████████████████████████████████████████
█████████████████████████████████████████████████████████████████████████████████████████████
█████████████████████████████████████████████████████████████████████████████████████████████
██████████████████████████████▄▄▄█████▄▄▄████████████████████████████████████████████████████
██████████▄█████▄█▄███▄█▄██████████▄██▀▀▀████████████████████████████████████████████████████
██████████████▀████▄████▀██████████████████████████▄█████▄██▄█████▄████▄████▄████▄████████
█████████████████▐█████▌███████████▄█████▀███▀▀████████▀▀▀▀█████▀▀▀██████▀▀███▀▀███████████
██████████████▄████▀████▄██████████████████▄▄▄▄▄███▄▄▄▄█████▄▄▄████████████████████████
████████████████▀█▀███▀█▀██████████▀███████▀█████████▀█████▀██▀█████▀███████████████████████
██████████████████████████████▀▀▀████████████████████████████████████████████████████████████
█████████████████████████████████████████████████████████████████████████████████████████████
█████████████████████████████████████████████████████████████████████████████████████████████
█████████████████████████████████████████████████████████████████████████████████████████████
███████████████████████████
████████▀▀  ▐█▌  ▀▀████████
██████▄     ▐█▌     ▄██████
████ ▀██▄▄███████▄▄██▀ ████
███    ██▀▀  ▄  ▀▀██    ███
██    ██   ▄███▄   ██    ██
████████  ███████  ████████
██    ██  ▀▀ █ ▀▀  ██    ██
███    ██▄▄ ▀▀▀ ▄▄██    ███
████ ▄██▀▀██████▀▀▀██▄ ████
██████▀     ▐█▌     ▀██████
████████▄▄  ▐█▌  ▄▄████████
███████████████████████████
.
.30+  ALTCOINS AVAILABLE..
gregyoung14
Full Member
***
Offline Offline

Activity: 238
Merit: 100


View Profile
February 27, 2016, 07:03:51 AM
 #4

I see that your project is always about making crptocurrency things more simple than it usually be. Maybe you should call your project "The Simple Project" Grin

Pretty nice actually what you're trying to do here. I think people would go for this. Hope this works out for you buddy. Your "Simple Project" as sir here refers it to.
Patatas
Legendary
*
Offline Offline

Activity: 1750
Merit: 1115

Providing AI/ChatGpt Services - PM!


View Profile
February 27, 2016, 10:44:08 AM
 #5

If the logical addressing is not taking part on the server side.Don't you think your wallet is prone to many attacks? I'm talking about simple injection of Java Scripts which simply run smoothly in any browser ? Where are the paraphrases stored anyway ?On the browser or as a session cookie ?
NxtChg (OP)
Hero Member
*****
Offline Offline

Activity: 840
Merit: 1002


Simcoin Developer


View Profile WWW
February 27, 2016, 11:53:15 AM
 #6

and how about wallet transaction?i've been open that link,and i think its really simple,and too simple for wallet,maybe you must add some logos or anything.
i try to input some phrase,and than appear wallet addres,i dont understand,i put random phrase.

If the logical addressing is not taking part on the server side.Don't you think your wallet is prone to many attacks? I'm talking about simple injection of Java Scripts which simply run smoothly in any browser ? Where are the paraphrases stored anyway ?On the browser or as a session cookie ?

Your passphrase is not stored anywhere, it's your key, so make it strong.

The address is generated directly from your passphrase (after some key stretching with two different hash functions).

The security model here is no different than the coinb.in. A trusted browser should not allow javascript injection, especially into HTTPS connections.

Not sure about browser extensions... It's probably best to use the wallet in the incognito mode and don't allow extensions to work there.

Simcoin: https://simtalk.org:444/ | The Simplest Bitcoin Wallet: https://tsbw.io/ | Coinmix: https://coinmix.to | Tippr stats: https://tsbw.io/tippr/
--
About smaragda and his lies: https://medium.com/@nxtchg/about-smaragda-and-his-lies-c376e4694de9
NxtChg (OP)
Hero Member
*****
Offline Offline

Activity: 840
Merit: 1002


Simcoin Developer


View Profile WWW
February 28, 2016, 07:07:03 PM
 #7

Sorry, if occasionally it doesn't load - Classic is running on the same server and is getting DDoS'ed today.

Can always get it from github: https://github.com/NxtChg/tsbw

Simcoin: https://simtalk.org:444/ | The Simplest Bitcoin Wallet: https://tsbw.io/ | Coinmix: https://coinmix.to | Tippr stats: https://tsbw.io/tippr/
--
About smaragda and his lies: https://medium.com/@nxtchg/about-smaragda-and-his-lies-c376e4694de9
ignitiondefect
Full Member
***
Offline Offline

Activity: 145
Merit: 100


View Profile
April 27, 2016, 04:28:42 PM
 #8

I like this a lot. Id like to build an IOS app built on this. Testing it out now. Thanks for building this!
apoorvlathey
Hero Member
*****
Offline Offline

Activity: 1162
Merit: 547


CryptoTalk.Org - Get Paid for every Post!


View Profile WWW
April 27, 2016, 05:07:59 PM
 #9

This is the simplest and easy to use wallet.

BTW There is one line on the site that states :

You can download it from github and use it locally.

There is no use of running it locally as there can't be any bitcoin transactions without internet !

NxtChg (OP)
Hero Member
*****
Offline Offline

Activity: 840
Merit: 1002


Simcoin Developer


View Profile WWW
April 27, 2016, 07:00:47 PM
 #10

There is no use of running it locally as there can't be any bitcoin transactions without internet !

If you run it locally, you can:

a) check the source code only once and then avoid the risk that I inject something into it,

b) make sure it's still available, even if my site goes down,

c) use a different API for your transactions or modify anything else.


Simcoin: https://simtalk.org:444/ | The Simplest Bitcoin Wallet: https://tsbw.io/ | Coinmix: https://coinmix.to | Tippr stats: https://tsbw.io/tippr/
--
About smaragda and his lies: https://medium.com/@nxtchg/about-smaragda-and-his-lies-c376e4694de9
ignitiondefect
Full Member
***
Offline Offline

Activity: 145
Merit: 100


View Profile
April 29, 2016, 02:21:12 PM
 #11

What happens if 2 or more people pick the same password?
NxtChg (OP)
Hero Member
*****
Offline Offline

Activity: 840
Merit: 1002


Simcoin Developer


View Profile WWW
April 29, 2016, 03:09:57 PM
 #12

What happens if 2 or more people pick the same password?

They will open the same wallet, obviously.

Simcoin: https://simtalk.org:444/ | The Simplest Bitcoin Wallet: https://tsbw.io/ | Coinmix: https://coinmix.to | Tippr stats: https://tsbw.io/tippr/
--
About smaragda and his lies: https://medium.com/@nxtchg/about-smaragda-and-his-lies-c376e4694de9
dsyahputera
Full Member
***
Offline Offline

Activity: 224
Merit: 100


View Profile
April 29, 2016, 03:40:59 PM
 #13

This is perfect solution for non-smartphone users since most online wallets are too complex so they can't work with mobile browser like Opera Mini. But, when I test it with "Responsive design view" in Firefox, the Send button don't appear in small resolution.

Sorry for bad English Cheesy

EDIT: Correction, I wrong, the Send button appears. Anyway, good job!
NxtChg (OP)
Hero Member
*****
Offline Offline

Activity: 840
Merit: 1002


Simcoin Developer


View Profile WWW
April 29, 2016, 03:52:10 PM
 #14

But, when I test it with "Responsive design view" in Firefox, the Send button don't appear in small resolution.

If you can tweak CSS in index.html to make it appear I will happily merge your edits.

If not - I've added it to my to-do list, so hopefully it will be fixed one day Smiley


EDIT: Glad to hear it works now.

Simcoin: https://simtalk.org:444/ | The Simplest Bitcoin Wallet: https://tsbw.io/ | Coinmix: https://coinmix.to | Tippr stats: https://tsbw.io/tippr/
--
About smaragda and his lies: https://medium.com/@nxtchg/about-smaragda-and-his-lies-c376e4694de9
27QVUTZj8rgZP1
Full Member
***
Offline Offline

Activity: 152
Merit: 100



View Profile
April 30, 2016, 03:07:56 AM
 #15

Online Bitcoin wallets often have one or two annoying idiosyncrasies, like demanding mandatory 2-FA, and there's nothing you can do about it.
While "blockchain.info" really tries to "sell" the "2-FA" feature, it is not mandatory.

I never use "2-FA" myself. What if my cell phone is stolen and I can't recover my account?!

Better safe than sorry!

Bitcoin address: 1RepentJESUSisComingSoon777kqd54C

And behold, I am coming quickly, and My reward is with Me, to give to every one according to his work. - Revelation 22:12
NxtChg (OP)
Hero Member
*****
Offline Offline

Activity: 840
Merit: 1002


Simcoin Developer


View Profile WWW
May 01, 2016, 04:41:45 PM
 #16

While "blockchain.info" really tries to "sell" the "2-FA" feature, it is not mandatory.

Ever tried logging in from a different geographical location? Or even a different browser?

If you have an email set in your profile, you will be asked to authenticate using a link. And as far as I know, once you set that email, you can only replace it with a different one, never remove it.

Anyway, I was talking in general about other services, not blockchain.info in particular.

Simcoin: https://simtalk.org:444/ | The Simplest Bitcoin Wallet: https://tsbw.io/ | Coinmix: https://coinmix.to | Tippr stats: https://tsbw.io/tippr/
--
About smaragda and his lies: https://medium.com/@nxtchg/about-smaragda-and-his-lies-c376e4694de9
NxtChg (OP)
Hero Member
*****
Offline Offline

Activity: 840
Merit: 1002


Simcoin Developer


View Profile WWW
August 06, 2017, 11:07:02 PM
 #17

Added Bitcoin Cash version:

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

(You can use private keys as passphrase too).

Please test with small amounts first, I just implemented it.

Report any issues on github or here.

Also, if anyone knows who runs blockdozer.com, please either tell them to add HTTPS or send me their contact info.

Simcoin: https://simtalk.org:444/ | The Simplest Bitcoin Wallet: https://tsbw.io/ | Coinmix: https://coinmix.to | Tippr stats: https://tsbw.io/tippr/
--
About smaragda and his lies: https://medium.com/@nxtchg/about-smaragda-and-his-lies-c376e4694de9
NxtChg (OP)
Hero Member
*****
Offline Offline

Activity: 840
Merit: 1002


Simcoin Developer


View Profile WWW
August 08, 2017, 09:26:36 AM
 #18

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 (or you can edit the fee yourself in index.html and run it locally).

Simcoin: https://simtalk.org:444/ | The Simplest Bitcoin Wallet: https://tsbw.io/ | Coinmix: https://coinmix.to | Tippr stats: https://tsbw.io/tippr/
--
About smaragda and his lies: https://medium.com/@nxtchg/about-smaragda-and-his-lies-c376e4694de9
JTASSOCIATES
Full Member
***
Offline Offline

Activity: 182
Merit: 100


View Profile
August 09, 2017, 08:08:12 PM
 #19

I kindly request you to explain what the topic is about. I would like to know more about it thanks

▂▂▃▃  TRADE CRYPTOCURRENCIES | INDEXES | FUNDS ▃▃▂▂
●▬●▬●▬●▬●▬●▬●▬●▬●▬●▬●▬● BITOTAL.COM ●▬●▬●▬●▬●▬●▬●▬●▬●▬●▬●▬●
░▒▓█ DEPOSIT BONUS | 0% TRADE FEES | WIDE COIN OFFER | EXCLUSIVE ICO'S █▓▒░
NxtChg (OP)
Hero Member
*****
Offline Offline

Activity: 840
Merit: 1002


Simcoin Developer


View Profile WWW
August 13, 2017, 09:11:29 AM
 #20

Switched to the Roger Ver's new blockchain explorer so it now works over HTTPS:

https://simcoin.info/tsbw/bcc/

Simcoin: https://simtalk.org:444/ | The Simplest Bitcoin Wallet: https://tsbw.io/ | Coinmix: https://coinmix.to | Tippr stats: https://tsbw.io/tippr/
--
About smaragda and his lies: https://medium.com/@nxtchg/about-smaragda-and-his-lies-c376e4694de9
Pages: [1] 2 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!