Improve token security by adopting DACs like permissions

in #eosio6 years ago (edited)

EOS New York has recently sparked a discussion on risks of EOS token smart contracts (read the post). In this article they highlight the risk that 8/10 of the top tokens on EOS have a single owner key which controls. EOS New York is proposing that the token can be created from the contract deployed into the eosio.token account, so there can't be new tokens created without 15/21 BP approval.

We are glad that EOS New York has called attention to this issue and as a BP eosDAC has always taken the security first approach and believes that we have solved this issue as a DAC.

So, here’s our take on this.

Risk of Self-issuance Still Remains

First of all, eosDAC is in complete agreement with EOS Newyork's opinion on how malicious it can be to have a single owner key meaning a centralized authority taking full control over the tokens of the dApps and eosio.token system contract by design allows for a more dencetralized control over token contracts. The solution presented by EOS New York is great as it prevents a “bad” actor from modifying token balances as they please or adding sneaky actions, etc. However, there is still a risk of the token issuer being able to simply issue more tokens. It does not prevent the issuer with a single key to inflate the token (and sell them to crash the market, a.k.a., exit scam), which we consider as a great threat. Creating the token under eosio.token still allows the issuer to issue or burn the token. A lot of tokens need that feature for inflation (ie., IQ). How can we address this potential issue as well then?

Ability to modify token contract

Many projects do not use the standard token contract, in our case the EOSDAC token also stores whether a token holder is a member of the DAC.

DAC as a Solution

Well, naturally, we propose using a DAC as a solution. DACs don’t have the same problem because everything (funds included) is protected by more than one person. The more people, the less chance they would collude to do something malicious or make a mistake.

The eosdactokens account which has all the code for the EOSDAC token which you can review here. You can verify that the source code matches the code deployed on the chain (to see that we haven't added any extra functions): https://eospark.com/contract/eosdactokens?tab=security
As you can see, full control of this account is in the hands of dacauthority which is controlled by the 12 custodians since the DAC launched:


The main functionality for the DAC can be found in the daccustodian account with code you can review here. This includes functions like claiming pay, nominating custodians, casting votes, updating configurations, and more.

This means unlike the most tokens where a single person can do anything they like, we need approval of 10/12 Custodians (each carrying a vote weight of 1) to do any of above. For example, one of custodians may propose to take tokens from a particular account, but the other custodians would refuse to sign that proposal. Besides, a single owner key can always be lost or stolen, but if you have > 2 people, the chance is far lower.

Another thing is that the code update has to be broadcast to the network with an msig, so that anyone can verify that the code being deployed matches our github. We have to put the code change up for review in the eosio.msig contract and anyone can see that it is going to happen before the custodians sign it. Technically the custodians can compile the code from Github and check that the hash matches what was proposed on chain.

We also recommend watching this video (from 13:20) by EOS Weekly, as it does an excellent job explaining the DAC permissions system using easy to understand visuals as below:

How to try a DAC

It's easy and already available for the whole community. You can explore building your own DAC using a simple script we developed recently which automates much of the process for you. Try it yourself using the Github repo here

Here's a detailed video showing how the script works:

...And Luke's short walk-through of the eosDAC member client along with an overview of the DAC permissions which make all this work:

We continue to develop DAC Factory and aim to make launching DACs with a click of a button, with a plethora of customization options.

If you are interested, you can read more benefits of launching a DAC here.

Support us by voting for eosdacserver


-Soyoung

Please vote for eosdacserver

Join our newsletter to stay informed and follow us on your favorite social media platform:

Steemit | Discord | Telegram | Facebook | Twitter | Github | Instagram | Linkedin | Medium | Reddit | YouTube | Weibo| VK|

Sort:  

I just resteemed your post!

Why? @eosbpnews aggregates updates of active EOS BPs and conveniently serves them in one place!


This service is provided by @eosoceania. If you think we are doing useful work, consider supporting us with a vote :)
For any inquiries/issues please reach out on Telegram or Discord.

Congratulations @eosdac! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You published more than 100 posts. Your next target is to reach 150 posts.

You can view your badges on your Steem Board and compare to others on the Steem Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

To support your work, I also upvoted your post!

Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Coin Marketplace

STEEM 0.18
TRX 0.16
JST 0.029
BTC 76535.07
ETH 2962.73
USDT 1.00
SBD 2.65