Skip to content

Latest commit

 

History

History
37 lines (20 loc) · 1.14 KB

File metadata and controls

37 lines (20 loc) · 1.14 KB

Access Control Module

This document defines Authorization Module for the CMTA Token specification.

[TOC]

Rationale

There are many operations that only authorized users are allowed to perform, such as issuing new tokens. Thus we need to manage authorization in a centralized way. Access Module covers authorization use cases for the CMTA Token specification.

Schema

AuthorizationUML

RBAC

This diagram shows the different roles.

  • The rectangle represent the functions
  • The circle represents the roles

The actor admin, defined inside the constructor or with the function initialize has the role DEFAULT_ADMIN_ROLE.

The DEFAULT_ADMIN_ROLE has automatically all the roles.

This behavior is implemented by overriding the function hasRole from OpenZeppelin

RBAC-diagram-RBAC.drawio

Graph

surya_graph_AuthorizationModule.sol

API for Ethereum

See docs.openzeppelin.com - AccessControl