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 ... 11 12 13 14 15 16 17 [18] 19 20 21
256
Tested on android and it works well.
You can shrink the chrome browser window to see its mobile action.

257
Initial prototype (http://114.215.104.153:8081/main.html), repository:(https://github.com/zhangweis/bts-ui/):
  • Tested only on chrome but could possibly work on ios and android.
  • Angularjs based.
  • Responsive design (layout from coinpunk)
  • Page switch between transactions and send.
  • Really not good at page design and need some help.

To do:
node+webkit packaging (should not be hard, but automation could be)
make data layer and simulate JSON/RPC

258
中文 (Chinese) / Re: BTX界面开发[4.17更新]
« on: April 18, 2014, 11:47:50 pm »
我有个相关的想法,不过是想用JS做。
https://bitsharestalk.org/index.php?topic=4259.msg53451#msg53451

259
We can even setup a blockchain-like online wallet service using coinpunk code. But I don't know whether running a service like this is legal or not (considering lotto.).

260
As the GUI is delayed, I'm interested in a GUI made in pure js.
The benefit:
1. quick
The html+css+js makes it very easy and quick to write GUI. I think I can make a very simple prototype in a week if I can have some spare time as long as JSON-RPC interface is ready.
2. cross platform
Even on mobile platform like ios and android.
3. responsive page design
This makes it look and feel well on different devices.
4. easy
JS is easier than C in my opinion.

261
DAC PLAY / Re: Blockchain RNG with DPOS
« on: April 18, 2014, 10:15:37 am »
If an attacker can gain control of the last N delegates before the drawing then they would be able to improve their odds by 2^N. 

To solve all of these problems a given round is either all or nothing.  Either all 100 delegates report in or no random number is generated.

Well, I have an easier and a more secure idea to solve this. The problem here is that there's no randomness in choosing next miner. This can be easily solved by using generated number [HASH(S1,...S100)] to decide next miner. Say the miner index is M. If the designated miner doesn't produce block in time, miner (M+1)%100 will be designated. Maybe we can use previous 99 S to generate another number to improve the randomness.

It's relatively easier to abandon a number that i don't want(by not producing a block) but difficult or even impossible to generate a number i want. All a cheater can do is just another dice. Thus next miner to generate block(M) is difficult/impossible to control. This ensures every one of 100 has the equal chance to produce a block.

I strongly suggest to apply this to dpos itself. Let's take exchange for example. If I controll M, M+1, M+2, I can manipulate the market(price) for several minutes by excluding some transactions. If next miner M is decided by RGN, the worst I can do is to exclude some transactions for less than a minute and I don't even know when I can do this. This reduces the risk of delegates' controlling blocks very much.
From user point of view, next miner is known when this block is retrieved. Thus this doesn't sacrify efficiency and the wallet/network still knows who to send the transaction to.

262
DAC PLAY / Re: Blockchain RNG with DPOS
« on: April 17, 2014, 02:15:05 pm »
What is the punishment if one delegate doesn't reveal S (by not producing the block in his turn)? Seems the punishment is just like I don't produce block in time? If I'm a delegate which participants the RNG generation, I can publish HASH(S). But if later I found the generated RNG is not the one I wanted, I just don't reveal S and I can have second chance to get another RNG. If I control more than 1 delegates, it's easier and more chances for me to change resulting RNG in this way.

263
DAC PLAY / Re: BitShares Vegas
« on: April 15, 2014, 08:27:38 am »
The challenge is efficiently collecting the votes... far better to have a trusted feed with profit motive for providing accurate data... then have all bets reference the feed.  Risk of cheating would be priced in and bets could reference 3 feeds if they do not trust one feed... at 3x the cost.

Voting is inefficient and slow.  Avoid as much as possible.

The votes come only from board of directors and they're motivated to vote. You can refer to https://bitsharestalk.org/index.php?topic=4176.0 for my idea. Basically the DAC can run just like http://bitbet.us/. It runs like below:
1. Any shareholder (maybe with at least 0.01% of share) can start a bet with some description.
2. Delegates vote whether the bet is clearly stated and can be judged when the event happens.
3. Delegates vote on the result when the vent happens. Multiple delegates can vote on the same bet and will split some portion of the bet's payout.
4. Shareholders can view their delegates' vote from wallet and can vote against them if they cheat.

265
DAC PLAY / BOD's votes as feed source for gambling like soccer game
« on: April 14, 2014, 02:07:32 pm »
I think board of delegates can be the source for some event's result as long as the revenue of staying as BOD is bigger than cheating.
The wallet will show recent event's result your delegate votes. In case of cheating, you can vote against the delegate. Some percentage of payout can be used as the incentive for the delegates to vote. Multiple delegates can vote on the same event and split the fee to encourage more delegates vote on the same event.
In this way, we can set up a DAC competing with http://bitbet.us/.
Just some rough ideas. Does this make sense?

266
General Discussion / Re: Delegated Proof of Stake (DPOS) White Paper
« on: April 06, 2014, 01:32:11 pm »
As each transaction contains hash of last block, we can easily get how many blocks it takes a transaction to be included into block chain. This could be a major indicator whether the delegated is performing well as of how much it delays transactions. This indicator can be shown to user (voter) in wallet when they vote. This can encourage delegated to work hard to include transactions as quickly as they can and also discourage cheating by delaying some transactions.

267
你的方案引入太多政治,我觉得可能带来的更多是问题。

268
我看英文贴里bm解释了,大概是因为它采用的不是最优价,而是你要价多少如果成交就一定给你这个价格。比如现在最高买价是5,但是你给出卖价3,那你就会以3卖出,而买家就以5买入,中间的差额算作手续费。总之大概是说希望大部分人不会做超短线(一两个块)。你说的在同一个块同时以最高价卖出,最低价买入,在这个机制下,貌似不太可能,这个跟撮合逻辑有关,而这个逻辑是协议的一部分,如果代表不按这样做,所有客户端会立刻自动识别并开除。另外不包含某些交易其实也是可以被自动发现并警告用户建议更换投票的,因为交易是广播的,如果你老是不包含某些交易,是可以被自动识别的。因为每笔交易都包含上个块的hash,系统是可以自动计算出代表的平均延迟时间的,就是每笔交易被延迟了多少块。我觉得这个可以作为该代表某项指标(甚至可能是主要指标)供投票者参考。
例:
当前块有最高买价5(1BTS),最低卖价3(1BTS),代表自动加入3买入1BTS,5卖出1BTS,
5 Sell 1
3 Sell 1

5 Buy 1
3 Buy 1

撮合逻辑应该是3 Sell match 5 Buy,5 Buy的会出5 bitUSD得到1BTS,3 Sell的会失去1BTS,得到3bitUSD,中间的2bitUSD会作为手续费。然后你的交易都不会成功。
假如你为了插队,用6买入,2卖出,那你就会获得6买入,2卖出的结果,我想你应该不会做这种事。或者你也可以不包含5买入的交易而你自己做个3买入,这个可能是存在的,但是这个其实伤害不太大,主要还只是对那个5买入的人的伤害,而且你不可能一直不包含这个交易,因为延迟交易太久会被人发现,所以那个5买入的有很大可能还是会在后几个块成功买入,只要块生成的速度够快(DPOS的目的,比如几秒一个块),延迟一两个块不会对交易产生太大影响。
这里的重点是撮合逻辑是协议的一部分,你不能随意更改。同一价格多个交易之间的排序逻辑我没有看到,但是我觉得可能会以交易的等待时间(块数)为准。就算两个顺序部分先后,我觉得对代表也没有太大作弊的意义。

当然这也只是我的理解,供探讨。

269
Keyhotee / Re: Keyhotee Status Update
« on: April 05, 2014, 09:49:44 am »
Successfully re-registered with (john) public key: 6cTkAWcJs881Dq7K4KwCFUWxVfNafNfsXr16Li2AEH7BbjY1YG

270
DAC PLAY / Re: Bitshares Lotto FAQ
« on: April 03, 2014, 02:52:42 am »
Well, if I'm an attacker, I can participant as 10 participants and choose not to reveal some of their S. In this way, I'm trying to collide the result. As the target range is relatively small, there're chances that I can win. Furthermore, if I failed, I can choose to publish all the S in the last second. The surety bond can't prevent this. We need to find a firm way to [require "all participants that participate in step 1 must also participate in step 2"].

Pages: 1 ... 11 12 13 14 15 16 17 [18] 19 20 21