Author [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: Home made HTML+js based cold storage  (Read 292 times)

0 Members and 1 Guest are viewing this topic.

Offline zhangweis

  • Sr. Member
  • ****
  • Posts: 279
    • View Profile
Home made HTML+js based cold storage
« 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
1. Online one:
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.


2. Offline one:
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.


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}"


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
BTC:15hCQrFMpSxcTSDVYgchajEqGF15XqW1M9
Weibo:http://weibo.com/zhangweis

Offline zhangweis

  • Sr. Member
  • ****
  • Posts: 279
    • View Profile
Re: Home made HTML+js based cold storage
« Reply #1 on: April 25, 2015, 11:34:33 PM »
http://bitsharesblocks.com/blocks/block?id=2377292

This is the tx I made using these 2 pages.
BTC:15hCQrFMpSxcTSDVYgchajEqGF15XqW1M9
Weibo:http://weibo.com/zhangweis

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12175
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BTS: xeroc
  • GitHub: xeroc
Re: Home made HTML+js based cold storage
« Reply #2 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%
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

Offline zhangweis

  • Sr. Member
  • ****
  • Posts: 279
    • View Profile
Re: Home made HTML+js based cold storage
« Reply #3 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.



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.
« Last Edit: April 26, 2015, 10:29:35 AM by zhangweis »
BTC:15hCQrFMpSxcTSDVYgchajEqGF15XqW1M9
Weibo:http://weibo.com/zhangweis

Offline alt

Re: Home made HTML+js based cold storage
« Reply #4 on: April 26, 2015, 10:28:47 AM »
great +5%

来自我的 HUAWEI P7-L00 上的 Tapatalk


Offline sudo

  • Hero Member
  • *****
  • Posts: 2202
    • View Profile
  • BTS: ags
Re: Home made HTML+js based cold storage
« Reply #5 on: April 26, 2015, 03:48:46 PM »
 +5% +5%

 

Google+