Skip to content

Latest commit

 

History

History
26 lines (23 loc) · 830 Bytes

Dappsys DSAuth.md

File metadata and controls

26 lines (23 loc) · 830 Bytes

Dappsys DSAuth: Provides a flexible and updatable auth pattern which is completely separate from application logic.

By default, the auth modifier will restrict function-call access to the including contract owner and the including contract itself.

The auth modifier provided by DSAuth triggers the internal isAuthorized function to require that the msg.sender is authorized ie. the sender is either:

  1. The contract owner
  2. The contract itself or
  3. Has been granted permission via a specified authority.

Slide Screenshot

195.jpg


Slide Text

  • Authorization
  • auth Modifier
    • isAuthorized()
  • msg.sender -> Owner
  • msg.sender -> Contract
  • msg.sender -> authority

References

  • Youtube Reference

Tags