You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// GetIdentityInfo returns the long-term identity info associated to the passed id
60
+
GetIdentityInfo(id string) driver.IdentityInfo
61
+
// RegisterIdentity registers the given identity
62
+
RegisterIdentity(id string, path string) error
63
+
// IDs returns the identifiers contained in this role
64
+
IDs() ([]string, error)
65
+
// Reload the roles with the respect to the passed public parameters
66
+
Reload(pp driver.PublicParameters) error
67
+
}
68
+
```
69
+
70
+
This interface offers functions for managing identities within the role.
71
+
You, as the developer, have the flexibility to implement a role using any identity representation that best fits your application's needs.
72
+
For example, a role could even encompass identities based on various cryptographic schemes.
73
+
74
+
The identity service conveniently provides two built-in implementations of the Role interface.
75
+
Both implementations leverage the concept of Hyperledger Fabric MSP ([https://hyperledger-fabric.readthedocs.io/en/latest/msp.html](https://hyperledger-fabric.readthedocs.io/en/latest/msp.html)):
76
+
77
+
***MSP X.509:** This implementation retrieves long-term identities from local folders adhering to the X.509-based MSP format.
78
+
***MSP Idemix:** This implementation loads long-term identities from local folders that follow the Idemix-based MSP format.
0 commit comments