Skip to content

Latest commit

 

History

History
24 lines (21 loc) · 1.07 KB

Dappsys DSGuard.md

File metadata and controls

24 lines (21 loc) · 1.07 KB

Dappsys DSGuard: Manages an Access Control List which maps source and destination addresses to function signatures.

Intended to be used as an authority for DSAuth where it acts as a lookup table for the canCall function to provide boolean answers as to whether a particular address is authorized to call a given function at another address.

The ACL is a mapping of [src][dst][sig] => boolean where an address src can be either permitted or forbidden access to a function sig at address dst according to the boolean value.

When used as an authority by DSAuth the src is considered to be the msg.sender, the dst is the including contract and sig is the function which invoked the auth modifier.


Slide Screenshot

196.jpg


Slide Text

  • ACL
  • srcAddr, dstAddr -> fnSig
  • DSAuth authority
  • canCall() -> bool
  • [src][dst][sig] => boolean
  • src -> msg.sender, dst -> Contract, sig -> Fn

References


Tags