BitShares Forum

Main => General Discussion => Topic started by: zhangweis on April 25, 2015, 11:28:48 pm

Title: Home made HTML+js based cold storage
Post by: zhangweis on April 25, 2015, 11:28:48 pm
I'm really eager to use cold storage for my BTS and BTA. I remember there's a solution to use multi-sig for cold storage but my requirement is to use chromebook for storing keys and signing tx.
So I've made 2 pages for that purpose based on bitshares-js. Currently only BTC addresses are supported for both the from address and to address. They're home made so it's not convenient and may have security issues. It's absolutely with no warrants. Use at your own risk. I have tested transferring some BTS and USD (amount < 1) between btc addresses and it works for btc address but not for BTS address. Please use with caution.
The source code can be found at https://github.com/zhangweis/bts-cold (https://github.com/zhangweis/bts-cold)
1. Online one:
http://zero.btsjohn.com/bts-cold/createtx.html (http://zero.btsjohn.com/bts-cold/createtx.html)
This is to create the tx. You need to input the from BTC address and the to BTC address. You can also set the amount and BTS/USD. After that, just click "Create Trx.", a Json and hex for the tx will be generated. Copy the tx hex and go to step 2.
(http://www.webpagescreenshot.info/i3/553c20b1d77100-51633452)
(http://www.webpagescreenshot.info/i3/553c20fd396b96-20432716)
2. Offline one:
http://zero.btsjohn.com/bts-cold/sign.html (http://zero.btsjohn.com/bts-cold/sign.html)
Paste the tx. hex, input your WIF private key and click "Sign". Wait a while and copy the generated signature hex. go back to page 1.
(http://www.webpagescreenshot.info/i3/553c21335cc1d4-93770836)
(http://www.webpagescreenshot.info/i3/553c2159d69f30-16909282)
3. Generate signed tx.
On page 1, paste the signature hex and click "Signed Trx.". You'll signed_transaction json which you can use the cli to broadcast the tx to the network by using "network_broadcast_transaction {xxxxxxxx}"
(http://www.webpagescreenshot.info/i3/553c21968b6693-31399299)

It's really a prototype and I can see many improvements but after a whole sleepless night what I need is to rest.
Some areas to improve:
- Get balance from wallet.bitshares.org
- Some UI improvements.
- Broadcast the signed tx. using wallet.bitshares.org
Title: Re: Home made HTML+js based cold storage
Post by: zhangweis on April 25, 2015, 11:34:33 pm
http://bitsharesblocks.com/blocks/block?id=2377292 (http://bitsharesblocks.com/blocks/block?id=2377292)

This is the tx I made using these 2 pages.
Title: Re: Home made HTML+js based cold storage
Post by: xeroc on April 26, 2015, 09:41:48 am
Very coool .. +5%!

I am waiting for a public API to get data from the blockchain too .. wanted to extens brainwallet.org for BTS (see my github page)

Nice to see you already have it running .. +5%
Title: Re: Home made HTML+js based cold storage
Post by: zhangweis on April 26, 2015, 10:20:43 am
Very coool .. +5%!

I am waiting for a public API to get data from the blockchain too .. wanted to extens brainwallet.org for BTS (see my github page)

Nice to see you already have it running .. +5%

I've made a modified version on bitaddress.org. It looks like below but it's only for my personal use and it was before bitshares-js. It can be easily made using bitshares-js as I spent quite some time to understand the rules for address things.
(http://www.webpagescreenshot.info/i3/553cbb97912e41-02594873)


As bts supports bitcoin address finally, I don't think we'll need to do that any more. I'm not in favor of titan or account thing as that brings complexity.
Title: Re: Home made HTML+js based cold storage
Post by: alt on April 26, 2015, 10:28:47 am
great +5%

来自我的 HUAWEI P7-L00 上的 Tapatalk

Title: Re: Home made HTML+js based cold storage
Post by: sudo on April 26, 2015, 03:48:46 pm
 +5% +5%