I am trying to implement role based access control model using blockchain. How do i store these policies? Later my smartcontract should be able to allow or deny the rquest of user based on policie.
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.Sign up to join this community
I think its doable. Yes, users would be permitted or denied access to a function based on their address. Its worth noting that such restriction would not apply to read-only operations owing to the transparent nature of ethereum.
A good starting point is role-based access control in the open zeppelin library.
Hope it helps.