Dapp-a-day 4: Access Control via `auth`

in #ethereum8 years ago

Nexus Logo

Each weekday leading up to devcon2, Nexus will highlight a dapp, library, or package (something with a dappfile) as a promotion of our toolchain and as case studies for other developers. Yesterday's Post.

ds-auth is an opinionated access control pattern. It is an extension of the "owner" pattern which allow switching the contract into "ACL lookup" mode.


The dual control modes allow making sequences of administrative changes on-chain easier to write in the form of "update" contracts.

There may be some more usability/safety upgrades (like using distinct addresses and doing additional sanity checks when switching modes during handoffs), but it will likely be a major version upgrade.

You might notice that DSBasicAuthority is DSAuth. It's turtles all the way down! The control hierarchy should be "rooted" in something other than one of the given Authority types.

Tomorrow we will introduce one example: A fixed multisig actor.


A dapp a day keeps centralization at bay.

Coin Marketplace

STEEM 0.31
TRX 0.14
JST 0.041
BTC 67300.31
ETH 3713.69
USDT 1.00
SBD 5.09