Documentation
¶
Index ¶
- Constants
- type AuditInfoDeserializer
- type Deserializer
- func NewDeserializer(ipk []byte, curveID math.CurveID) (*Deserializer, error)
- func NewDeserializerWithBCCSP(sm SchemaManager, schema Schema, ipk []byte, verType csp.VerificationType, ...) (*Deserializer, error)
- func NewDeserializerWithProvider(sm SchemaManager, schema Schema, ipk []byte, verType csp.VerificationType, ...) (*Deserializer, error)
- func (i *Deserializer) DeserializeAuditInfo(ctx context.Context, raw []byte) (driver2.AuditInfo, error)
- func (d *Deserializer) DeserializeVerifier(ctx context.Context, id driver.Identity) (driver.Verifier, error)
- func (d *Deserializer) DeserializeVerifierAgainstNymEID(raw []byte, nymEID []byte) (driver.Verifier, error)
- func (i *Deserializer) GetAuditInfoMatcher(ctx context.Context, owner driver.Identity, auditInfo []byte) (driver.Matcher, error)
- func (i *Deserializer) Info(ctx context.Context, id []byte, auditInfoRaw []byte) (string, error)
- func (i *Deserializer) MatchIdentity(ctx context.Context, id driver.Identity, ai []byte) error
- func (i *Deserializer) String() string
- type KeyManager
- func (p *KeyManager) Anonymous() bool
- func (p *KeyManager) DeserializeSigner(ctx context.Context, raw []byte) (driver.Signer, error)
- func (p *KeyManager) DeserializeSigningIdentity(ctx context.Context, raw []byte) (driver.SigningIdentity, error)
- func (p *KeyManager) DeserializeVerifier(ctx context.Context, raw []byte) (driver.Verifier, error)
- func (p *KeyManager) EnrollmentID() string
- func (p *KeyManager) Identity(ctx context.Context, auditInfo []byte) (*idriver.IdentityDescriptor, error)
- func (p *KeyManager) IdentityType() identity.Type
- func (p *KeyManager) Info(ctx context.Context, raw []byte, auditInfo []byte) (string, error)
- func (p *KeyManager) IsRemote() bool
- func (p *KeyManager) String() string
- type KeyManagerProvider
- type SKI
- type Schema
- type SchemaManager
- type SignerService
- type WrappedKeyManager
Constants ¶
View Source
const ( Any bccsp.SignatureType = 100 IdentityType identity.Type = "idemix" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuditInfoDeserializer ¶
type AuditInfoDeserializer struct{}
func (*AuditInfoDeserializer) DeserializeAuditInfo ¶
type Deserializer ¶
type Deserializer struct {
*crypto2.Deserializer
}
func NewDeserializer ¶
func NewDeserializer( ipk []byte, curveID math.CurveID, ) (*Deserializer, error)
NewDeserializer returns a new deserializer for the idemix ExpectEidNymRhNym verification strategy
func NewDeserializerWithBCCSP ¶
func NewDeserializerWithBCCSP( sm SchemaManager, schema Schema, ipk []byte, verType csp.VerificationType, nymEID []byte, cryptoProvider csp.BCCSP, ) (*Deserializer, error)
func NewDeserializerWithProvider ¶
func NewDeserializerWithProvider( sm SchemaManager, schema Schema, ipk []byte, verType csp.VerificationType, nymEID []byte, cryptoProvider csp.BCCSP, ) (*Deserializer, error)
NewDeserializerWithProvider returns a new serialized for the passed arguments
func (*Deserializer) DeserializeAuditInfo ¶
func (*Deserializer) DeserializeVerifier ¶
func (*Deserializer) DeserializeVerifierAgainstNymEID ¶
func (*Deserializer) GetAuditInfoMatcher ¶
func (*Deserializer) MatchIdentity ¶
func (*Deserializer) String ¶
func (i *Deserializer) String() string
type KeyManager ¶
type KeyManager struct {
*crypto.Deserializer
SchemaManager SchemaManager
Schema string
// contains filtered or unexported fields
}
func NewKeyManager ¶
func NewKeyManager( conf *crypto.Config, sigType bccsp.SignatureType, csp bccsp.BCCSP, ) (*KeyManager, error)
func NewKeyManagerWithSchema ¶ added in v0.7.0
func NewKeyManagerWithSchema( conf *crypto.Config, sigType bccsp.SignatureType, csp bccsp.BCCSP, sm SchemaManager, schemaName string, ) (*KeyManager, error)
func (*KeyManager) Anonymous ¶
func (p *KeyManager) Anonymous() bool
func (*KeyManager) DeserializeSigner ¶
func (*KeyManager) DeserializeSigningIdentity ¶
func (p *KeyManager) DeserializeSigningIdentity(ctx context.Context, raw []byte) (driver.SigningIdentity, error)
func (*KeyManager) DeserializeVerifier ¶
func (*KeyManager) EnrollmentID ¶
func (p *KeyManager) EnrollmentID() string
func (*KeyManager) Identity ¶
func (p *KeyManager) Identity(ctx context.Context, auditInfo []byte) (*idriver.IdentityDescriptor, error)
func (*KeyManager) IdentityType ¶
func (p *KeyManager) IdentityType() identity.Type
func (*KeyManager) IsRemote ¶
func (p *KeyManager) IsRemote() bool
func (*KeyManager) String ¶
func (p *KeyManager) String() string
type KeyManagerProvider ¶
type KeyManagerProvider struct {
// contains filtered or unexported fields
}
func NewKeyManagerProvider ¶
func (*KeyManagerProvider) Get ¶
func (l *KeyManagerProvider) Get(ctx context.Context, identityConfig *driver.IdentityConfiguration) (membership.KeyManager, error)
type SchemaManager ¶ added in v0.7.0
type SchemaManager interface {
// PublicKeyImportOpts returns the options that `schema` uses to import its public keys
PublicKeyImportOpts(schema string) (*bccsp.IdemixIssuerPublicKeyImportOpts, error)
// SignerOpts returns the options for the passed arguments
SignerOpts(schema string) (*bccsp.IdemixSignerOpts, error)
// NymSignerOpts returns the options that `schema` uses to verify a nym signature
NymSignerOpts(schema string) (*bccsp.IdemixNymSignerOpts, error)
// EidNymAuditOpts returns the options that `sid` must use to audit an EIDNym
EidNymAuditOpts(schema string, attrs [][]byte) (*bccsp.EidNymAuditOpts, error)
// RhNymAuditOpts returns the options that `sid` must use to audit an RhNym
RhNymAuditOpts(schema string, attrs [][]byte) (*bccsp.RhNymAuditOpts, error)
}
SchemaManager handles the various credential schemas. A credential schema contains information about the number of attributes, which attributes must be disclosed when creating proofs, the format of the attributes etc.
type SignerService ¶
type WrappedKeyManager ¶
type WrappedKeyManager struct {
membership.KeyManager
// contains filtered or unexported fields
}
func (*WrappedKeyManager) Identity ¶
func (k *WrappedKeyManager) Identity(ctx context.Context, auditInfo []byte) (*idriver.IdentityDescriptor, error)
Click to show internal directories.
Click to hide internal directories.