Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - zhangweis

Pages: 1 2 3 4 5 [6] 7 8 9 10 11 12 13 ... 21
76
General Discussion / Re: Home made HTML+js based cold storage
« 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.

77
General Discussion / Re: Precise numbers on dilution?
« on: April 25, 2015, 11:56:09 pm »

78
General Discussion / Re: Home made HTML+js based cold storage
« 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.

79
General Discussion / 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

80
Seems solved by commenting all the salsa related lines in libraries/fc/CMakeLists.txt

I also want to mention that I have to use export LC_ALL="en_GB.UTF-8" instead of en_US as I don't have locale en_US preinstalled on my raspbian. 

81
Technical Support / Error compiling on raspberry pi 2 with salsa20.s.
« on: March 14, 2015, 12:04:30 am »
I tried gcc and clang with the similiar errors like below. I guess it's because salsa20.s doesn't support arm. What is this salsa20 for and can I make it work with arm? Can we turn it into C to make it compile or is there a way to bypass this?

[ 23%] Building C object libraries/fc/CMakeFiles/fc.dir/vendor/salsa20/salsa20.s.o
clang: warning: argument unused during compilation: '-std=c99'
clang: warning: argument unused during compilation: '-D NDEBUG'
clang: warning: argument unused during compilation: '-I bitshares/libraries/fc/include'
clang: warning: argument unused during compilation: '-I bitshares/libraries/fc'
clang: warning: argument unused during compilation: '-I bitshares/libraries/fc/vendor/cyoencode-1.0.2/src'
clang: warning: argument unused during compilation: '-I bitshares/libraries/fc/vendor/boost_1.51/include'
clang: warning: argument unused during compilation: '-I bitshares/libraries/fc/vendor/salsa20'
clang: warning: argument unused during compilation: '-I bitshares/libraries/fc/vendor/easylzma/src'
clang: warning: argument unused during compilation: '-I bitshares/libraries/fc/vendor/udt4/src'
bitshares/libraries/fc/vendor/salsa20/salsa20.s:279:5: error: unexpected token in operand
mov %esp,%eax
    ^
bitshares/libraries/fc/vendor/salsa20/salsa20.s:280:9: error: unexpected token in operand
and $31,%eax
        ^
bitshares/libraries/fc/vendor/salsa20/salsa20.s:281:10: error: unexpected token in operand
add $640,%eax
         ^
bitshares/libraries/fc/vendor/salsa20/salsa20.s:282:5: error: unexpected token in operand
sub %eax,%esp
    ^
bitshares/libraries/fc/vendor/salsa20/salsa20.s:287:6: error: unexpected token in operand
movl %eax,0(%esp)
     ^

82
中文 (Chinese) / Re: JustDice风格的骰子DAC提议(JDS)
« on: March 08, 2015, 10:55:46 am »
因为潜在的法律风险不能有效规避(主要原因),以及以下次要原因:
  • 可能与Play内置的dice冲突
  • 本人的时间不够
  • 需要解决bitUSD可以直接下注
本人决定暂时停止JDS的进一步开发。很抱歉辜负大家的期待,如果有人有兴趣,可以直接使用github代码https://github.com/zhangweis/jds进行开发。如果法律问题可以得到有效解决,不排除会在合适的时间重启。

83
+5%支持

将来有很多机器人搬砖了,内盘是不是可以不用喂价了
搬砖肯定不能代替喂价,短期内甚至长期来看不可能取消喂价。在我看来喂价已经是锚定的关键因素了,不过其实这个是个风险点,因为控制的难度相对较小,而且对代表依赖太大。

84
中文 (Chinese) / Re: JustDice风格的骰子DAC提议(JDS)
« on: December 21, 2014, 01:50:36 am »
去中心的怕什么法律问题啊,

发布软件有法律风险,可以视作运营软件。开发开源软件本身没有法律问题。

85
类似微博功能我觉得还是twister的方法比较好,大数据量全部存储到区块链是不现实的。像torrent和DHT就比较适合,好像maidsafe也是基于DHT的样。

86
bts id: btsjohn

87
中文 (Chinese) / Re: JustDice风格的骰子DAC提议(JDS)
« on: December 12, 2014, 05:19:40 am »
这段时间有私事耽搁了。等忙过了准备弄个windows环境解决创建钱包的问题就dry run测试了。主要法律问题解决不了还是挺担心的。需要找到合作者解决法律问题不然技术问题解决了也没用。

88
中文 (Chinese) / Re: 希望给bts发行的资产增加一键派息功能
« on: December 06, 2014, 02:40:47 am »
我觉得派息不会在区块链上有专门的操作,应该会由钱包根据持有资产的比例自动生成所有的转账交易。使用上不会有什么区别,但是手续费会有区别。

89
中文 (Chinese) / Re: 币民中国营运计划——南宫远
« on: December 03, 2014, 07:40:51 pm »
支持,经常看币民中国。

bts:btsjohn

90
中文 (Chinese) / Re: 对卖空单排列依利率高低的质疑
« on: November 29, 2014, 02:01:39 pm »
我对这个也很疑惑,哪位大神解释一下?
我看源码感觉应该是这样:
所有没有限价的空单按利率排列成short wall,价格就是feed price。
如果空单有限价,限价高于feed price的不能成交,限价低于feed price的,等于排到所有没有限价单的后面(价格原因),等于feed price(可能性很小),还是按利率排。
所以结论是,基本上不要下有限价的空单。我觉得基本上按现在的规则,空单就应该取消限价,因为没有意义,除非价格大幅波动空单墙又没有补上才会轮到有限价的空单,个人觉得概率很小。

Pages: 1 2 3 4 5 [6] 7 8 9 10 11 12 13 ... 21