How are the roles assigned to the nodes in hyperledger indy , is it configured through a file or by some other proceedure ? And are the roles assigned to nodes or agents ?
I read the documentation of the hyperleder indy but didn't find anything related to this
In Hyperledger Indy
rolesare assigned toagentsrather than nodes.Agentshowever are implemented in hard coding (Python, Go, JS) which interact with the ledger.As an example in application built on top of Indy there could be defined following roles:
Steward,Trustee, orEndorserand assign permissions to each role.Following example is the small part from one of my projects, where
AnchorHandleclass serves as a wrapper for interacting with ledger using Indy SDK, and there I usedINDY_ROLE_TYPESto map specific role ID to role names in Indy environment:And in the following example which is the part of web server to interact with Indy ledger role information is retrieved from a transaction data and converts the role ID into role name:
And to learn how the Indy environment works and how to assign roles you can follow these:
Default AUTH_MAP Ruleswhere you can check description for each of them.