Versions in this module Expand all Collapse all v0 v0.0.1 Oct 21, 2022 Changes in this version + const IDEMIX + type AuditVerificationType int + const AuditExpectEidNym + const AuditExpectSignature + type BCCSP interface + Decrypt func(k Key, ciphertext []byte, opts DecrypterOpts) (plaintext []byte, err error) + Encrypt func(k Key, plaintext []byte, opts EncrypterOpts) (ciphertext []byte, err error) + GetHash func(opts HashOpts) (h hash.Hash, err error) + GetKey func(ski []byte) (k Key, err error) + Hash func(msg []byte, opts HashOpts) (hash []byte, err error) + KeyDeriv func(k Key, opts KeyDerivOpts) (dk Key, err error) + KeyGen func(opts KeyGenOpts) (k Key, err error) + KeyImport func(raw interface{}, opts KeyImportOpts) (k Key, err error) + Sign func(k Key, digest []byte, opts SignerOpts) (signature []byte, err error) + Verify func(k Key, signature, digest []byte, opts SignerOpts) (valid bool, err error) + type DecrypterOpts interface + type EidNymAuditOpts struct + AuditVerificationType AuditVerificationType + EidIndex int + EnrollmentID string + RNymEid *math.Zr + func (o *EidNymAuditOpts) HashFunc() crypto.Hash + type EncrypterOpts interface + type HashOpts interface + Algorithm func() string + type IdemixAttribute struct + Type IdemixAttributeType + Value interface{} + type IdemixAttributeType int + const IdemixBytesAttribute + const IdemixHiddenAttribute + const IdemixIntAttribute + type IdemixCRISignerOpts struct + Epoch int + H crypto.Hash + RevocationAlgorithm RevocationAlgorithm + UnrevokedHandles [][]byte + func (o *IdemixCRISignerOpts) HashFunc() crypto.Hash + type IdemixCredentialRequestSignerOpts struct + Attributes []int + H crypto.Hash + IssuerNonce []byte + IssuerPK Key + func (o *IdemixCredentialRequestSignerOpts) HashFunc() crypto.Hash + func (o *IdemixCredentialRequestSignerOpts) IssuerPublicKey() Key + type IdemixCredentialSignerOpts struct + Attributes []IdemixAttribute + H crypto.Hash + IssuerPK Key + func (o *IdemixCredentialSignerOpts) HashFunc() crypto.Hash + func (o *IdemixCredentialSignerOpts) IssuerPublicKey() Key + type IdemixIIssuerPublicKeyImporterErrorType int + const IdemixIssuerPublicKeyImporterAttributeNameError + const IdemixIssuerPublicKeyImporterHashError + const IdemixIssuerPublicKeyImporterNumAttributesError + const IdemixIssuerPublicKeyImporterUnmarshallingError + const IdemixIssuerPublicKeyImporterValidationError + type IdemixIssuerKeyGenOpts struct + AttributeNames []string + Temporary bool + func (*IdemixIssuerKeyGenOpts) Algorithm() string + func (o *IdemixIssuerKeyGenOpts) Ephemeral() bool + type IdemixIssuerKeyImportOpts struct + AttributeNames []string + Temporary bool + func (*IdemixIssuerKeyImportOpts) Algorithm() string + func (o *IdemixIssuerKeyImportOpts) Ephemeral() bool + type IdemixIssuerPublicKeyImportOpts struct + AttributeNames []string + Temporary bool + func (*IdemixIssuerPublicKeyImportOpts) Algorithm() string + func (o *IdemixIssuerPublicKeyImportOpts) Ephemeral() bool + type IdemixIssuerPublicKeyImporterError struct + Cause error + ErrorMsg string + Type IdemixIIssuerPublicKeyImporterErrorType + func (r *IdemixIssuerPublicKeyImporterError) Error() string + type IdemixNymKeyDerivationOpts struct + IssuerPK Key + Temporary bool + func (*IdemixNymKeyDerivationOpts) Algorithm() string + func (o *IdemixNymKeyDerivationOpts) Ephemeral() bool + func (o *IdemixNymKeyDerivationOpts) IssuerPublicKey() Key + type IdemixNymKeyImportOpts struct + Temporary bool + func (*IdemixNymKeyImportOpts) Algorithm() string + func (o *IdemixNymKeyImportOpts) Ephemeral() bool + type IdemixNymPublicKeyImportOpts struct + Temporary bool + func (*IdemixNymPublicKeyImportOpts) Algorithm() string + func (o *IdemixNymPublicKeyImportOpts) Ephemeral() bool + type IdemixNymSignerOpts struct + H crypto.Hash + IssuerPK Key + Nym Key + func (o *IdemixNymSignerOpts) HashFunc() crypto.Hash + type IdemixRevocationKeyGenOpts struct + Temporary bool + func (*IdemixRevocationKeyGenOpts) Algorithm() string + func (o *IdemixRevocationKeyGenOpts) Ephemeral() bool + type IdemixRevocationKeyImportOpts struct + Temporary bool + func (*IdemixRevocationKeyImportOpts) Algorithm() string + func (o *IdemixRevocationKeyImportOpts) Ephemeral() bool + type IdemixRevocationPublicKeyImportOpts struct + Temporary bool + func (*IdemixRevocationPublicKeyImportOpts) Algorithm() string + func (o *IdemixRevocationPublicKeyImportOpts) Ephemeral() bool + type IdemixSignerMetadata struct + NymEID []byte + NymEIDAuditData *NymEIDAuditData + type IdemixSignerOpts struct + Attributes []IdemixAttribute + CRI []byte + Credential []byte + EidIndex int + Epoch int + H crypto.Hash + IssuerPK Key + Metadata *IdemixSignerMetadata + Nym Key + RevocationPublicKey Key + RhIndex int + SigType SignatureType + VerificationType VerificationType + func (o *IdemixSignerOpts) HashFunc() crypto.Hash + type IdemixUserSecretKeyGenOpts struct + Temporary bool + func (*IdemixUserSecretKeyGenOpts) Algorithm() string + func (o *IdemixUserSecretKeyGenOpts) Ephemeral() bool + type IdemixUserSecretKeyImportOpts struct + Temporary bool + func (*IdemixUserSecretKeyImportOpts) Algorithm() string + func (o *IdemixUserSecretKeyImportOpts) Ephemeral() bool + type Key interface + Bytes func() ([]byte, error) + Private func() bool + PublicKey func() (Key, error) + SKI func() []byte + Symmetric func() bool + type KeyDerivOpts interface + Algorithm func() string + Ephemeral func() bool + type KeyGenOpts interface + Algorithm func() string + Ephemeral func() bool + type KeyImportOpts interface + Algorithm func() string + Ephemeral func() bool + type KeyStore interface + GetKey func(ski []byte) (k Key, err error) + ReadOnly func() bool + StoreKey func(k Key) (err error) + type NymEIDAuditData struct + EID *math.Zr + Nym *math.G1 + RNymEid *math.Zr + type RevocationAlgorithm int32 + const AlgNoRevocation + type SignatureType int + const EidNym + const Standard + type SignerOpts interface + type VerificationType int + const Basic + const BestEffort + const ExpectEidNym + const ExpectStandard