Versions in this module Expand all Collapse all v1 v1.4.8 Jul 31, 2020 Changes in this version + const CredType + type Client interface + GetCSP func() bccsp.BCCSP + GetIssuerPubKey func() (*idemix.IssuerPublicKey, error) + type Credential struct + func NewCredential(signerConfigFile string, c Client) *Credential + func (cred *Credential) CreateToken(req *http.Request, reqBody []byte) (string, error) + func (cred *Credential) EnrollmentID() (string, error) + func (cred *Credential) Load() error + func (cred *Credential) RevokeSelf() (*api.RevocationResponse, error) + func (cred *Credential) SetVal(val interface{}) error + func (cred *Credential) Store() error + func (cred *Credential) Type() string + func (cred *Credential) Val() (interface{}, error) + type SignerConfig struct + Cred []byte + CredentialRevocationInformation []byte + EnrollmentID string + OrganizationalUnitIdentifier string + Role int + Sk []byte + func (s *SignerConfig) GetCred() []byte + func (s *SignerConfig) GetCredentialRevocationInformation() []byte + func (s *SignerConfig) GetEnrollmentID() string + func (s *SignerConfig) GetOrganizationalUnitIdentifier() string + func (s *SignerConfig) GetRole() int + func (s *SignerConfig) GetSk() []byte