tdickman / crypto51

https://www.crypto51.app/
GNU General Public License v3.0
76 stars 33 forks source link

Adding Decred to the list #30

Open 0xmzz opened 5 years ago

0xmzz commented 5 years ago

Hello,

Wondering if I can help put Decred on the list. The cost to attack Decred may be trivial to add, you would need an additional variable which is "TICKET POOL VALUE". Once the ticket pool value is available, the cost to attack can be calculated from the sources the code is using.

To calculate the cost of an attack on decred an attacker would need 50% of the tickets in the ticket pool. so cost to acquire >50% of hashpower + cost of 50% stake (can use the closing price from CMC)

There is additional information on regarding the requirements for a majority attack on decred here: https://medium.com/decred/decreds-hybrid-protocol-a-superior-deterrent-to-majority-attacks-9421bf486292

The decred block explorer has an API where the site can pull latest ticket pool value: https://explorer.dcrdata.org/api/block/best

Let me know if you would agree with something like this.

0xmzz commented 5 years ago

in regards to attack requirements, they follow a curve so it does not need to be 50% stake and 50% hashpower. Just has to follow this curve:

image

oregonisaac commented 5 years ago

FYI - If you would like to move forward with this I can help coordinate developer support.

tdickman commented 5 years ago

@oregonisaac Thanks for reaching out - would love to move forward on this if you are able to coordinate developer support. We welcome prs, and I'm happy to answer questions about adding it.

oregonisaac commented 5 years ago

@tdickman we are discussing this now with our dcrdata.org development and community, with our multifaceted consensus (PoW/PoS) the calculations are more complex, we would welcome your input - https://github.com/decred/dcrdata/issues/1022

oregonisaac commented 5 years ago

@tdickman we have a few basic ideas of ways to develop this data set, there are different assumptions we could choose in building this that would fall "more conservative" or "more hypothetical" and I would appreciate your 2 cents regarding which would be a better match for your site - https://github.com/decred/dcrdata/issues/1022