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
// IdentityIDs returns the identifiers contained in this role
66
+
IdentityIDs() ([]string, error)
67
+
// Reload the roles with the respect to the passed public parameters
68
+
Reload(pp driver.PublicParameters) error
67
69
}
68
70
```
69
71
@@ -74,18 +76,19 @@ For example, a role could even encompass identities based on various cryptograph
74
76
The identity service conveniently provides two built-in implementations of the Role interface.
75
77
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
78
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.
79
+
*[**MSP X.509:**](./../../token/services/identity/msp/x509) This implementation retrieves long-term identities from local folders adhering to the X.509-based MSP format.
80
+
*[**MSP Idemix:**](./../../token/services/identity/msp/idemix) This implementation loads long-term identities from local folders that follow the Idemix-based MSP format.
79
81
80
82
## Using the Identity Service in a Token Driver
81
83
82
84
If you want to use the Identity Service in your Token Driver, then here is what you need to do.
83
85
84
86
First, instantiate your roles. The identity service come equipped with two `Role` implementation.
85
87
One is based on X.509 certificates, the other one is based on Idemix.
86
-
Both requires the identities to be stored following the Hyperledger Fabric MSP prescriptions.
88
+
Both requires the identities to be stored on the filesystem following the Hyperledger Fabric MSP prescriptions.
87
89
88
90
High level, these are the steps to follow:
89
91
1. Instantiate the roles your driver will support.
90
-
2. Instantiate the Identity Provider passing the constructed roles.
91
-
3. Instantiate the Wallet Registries for each role.
92
+
2. Instantiate the Wallet Registries for each role.
93
+
94
+
Let see an example taken from the [`fabtoken`](./../../token/core/fabtoken/driver) driver.
0 commit comments