Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateIssuerKey ¶
GenerateIssuerKey invokes Idemix library to generate an issuer (CA) signing key pair. Currently four attributes are supported by the issuer: AttributeNameOU is the organization unit name AttributeNameRole is the role (member or admin) name AttributeNameEnrollmentId is the enrollment id AttributeNameRevocationHandle contains the revocation handle, which can be used to revoke this user Generated keys are serialized to bytes.
func GenerateSignerConfig ¶
func GenerateSignerConfig(roleMask int, ouString string, enrollmentId string, revocationHandle int, key *idemix.IssuerKey, revKey *sm2.PrivateKey) ([]byte, error)
GenerateSignerConfig creates a new signer config. It generates a fresh user secret and issues a credential with four attributes (described above) using the CA's key pair.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.