package
2.0.0-alpha+incompatible
Repository: https://github.com/hyperledger-gerrit-archive/fabric-ca.git
Documentation: pkg.go.dev

# Packages

Code generated by mockery v1.0.0.

# Functions

CheckRole Prove that the desired role is contained or not in the bitmask.
DecodeKeys decodes ECDSA key pair that are pem encoded.
EncodeKeys encodes ECDSA key pair to PEM encoding.
GetAttributeNames returns attribute names supported by the Fabric CA for Idemix credentials.
GetRoleMask Receive a list of roles to combine in a single bitmask.
IsToken returns true if the specified token has the format expected of an authorization token that is created using an Idemix credential.
NewCredentialAccessor returns a new CredentialAccessor.
NewIssuer returns an object that implements Issuer interface.
NewIssuerCredential returns an instance of an object that implements IssuerCredential interface.
NewLib returns an instance of an object that implements Lib interface.
NewNonceManager returns an instance of an object that implements NonceManager interface.
NewRevocationAuthority constructor for revocation authority.
NewRevocationKey returns an instance of an object that implements RevocationKey interface.

# Constants

The expected roles are 4; We can combine them using a bitmask.
AttrEnrollmentID is the attribute name for enrollment ID.
AttrOU is the attribute name for OU.
AttrRevocationHandle is the attribute name for revocation handle.
AttrRole is the attribute name for role.
The expected roles are 4; We can combine them using a bitmask.
DefaultIssuerPublicKeyFile is the default name of the file that contains issuer public key.
DefaultIssuerSecretKeyFile is the default name of the file that contains issuer secret key.
DefaultNonceExpiration is the default value for nonce expiration.
DefaultNonceSweepInterval is the default value for nonce sweep interval.
DefaultRevocationHandlePoolSize is the default revocation handle pool size.
DefaultRevocationPrivateKeyFile is the name of the file where revocation private key is stored.
DefaultRevocationPublicKeyFile is the name of the file where revocation public key is stored.
DeleteCredentialbyID is the SQL for deleting credential of a user.
InsertCredentialSQL is the SQL to add a credential to database.
InsertNonce is the SQL for inserting a nonce.
InsertRAInfo is the SQL for inserting revocation authority info.
KeystoreDir is the keystore directory where all keys are stored.
The expected roles are 4; We can combine them using a bitmask.
The expected roles are 4; We can combine them using a bitmask.
RemoveExpiredNonces is the SQL string removing expired nonces.
RemoveNonce is the query string for removing a specified nonce.
SelectCredentialByIDSQL is the SQL for getting credentials of a user.
SelectCredentialSQL is the SQL for getting a credential given a revocation handle.
SelectNonce is query string for getting a particular nonce.
SelectRAInfo is the query string for getting revocation authority info.
SelectRevokedCredentialSQL is the SQL for getting revoked credentials.
UpdateNextAndLastHandle is the SQL for updating next and last revocation handle.
UpdateNextHandle s the SQL for updating next revocation handle.
UpdateRevokeCredentialSQL is the SQL for updating status of a credential to revoked.

# Structs

Config encapsulates Idemix related the configuration options.
CredentialAccessor implements IdemixCredDBAccessor interface.
CredRecord represents a credential database record.
CRIRequestHandler is the handler for Idemix CRI (credential revocation information) request.
EnrollmentResponse is the idemix enrollment response from the server.
EnrollRequestHandler is the handler for Idemix enroll request.
Nonce represents a nonce.
RevocationAuthorityInfo is the revocation authority information record that is stored in the database.

# Interfaces

Clock provides time related functions.
CredDBAccessor is the accessor for credentials database table.
Issuer is the interface to the Issuer for external components.
IssuerCredential represents CA's Idemix credential.
Lib represents idemix library.
MyIssuer provides functions for accessing issuer components.
NonceManager represents nonce manager that is responsible for getting a new nonce.
RevocationAuthority is responsible for generating revocation handles and credential revocation info (CRI).
RevocationKey represents issuer revocation public and private key.
ServerRequestCtx is the server request context that Idemix enroll expects.

# Type aliases

Role : Represents a IdemixRole.