Documentation ¶
Index ¶
- Constants
- func GetRoleMaskFromIdemixRole(role Role) int
- func NewAnyProvider(conf1 *m.MSPConfig, sp view2.ServiceProvider) (*provider, error)
- func NewAnyProviderWithCurve(conf1 *m.MSPConfig, sp view2.ServiceProvider, curveID math.CurveID) (*provider, error)
- func NewDeserializer(ipk []byte) (*deserializer, error)
- func NewDeserializerForNymEID(ipk []byte, nymEID []byte) (*deserializer, error)
- func NewEIDNymProvider(conf1 *m.MSPConfig, sp view2.ServiceProvider) (*provider, error)
- func NewProvider(conf1 *m.MSPConfig, sp view2.ServiceProvider, sigType bccsp.SignatureType, ...) (*provider, error)
- func NewProviderWithSigType(conf1 *m.MSPConfig, sp view2.ServiceProvider, sigType bccsp.SignatureType) (*provider, error)
- func NewStandardProvider(conf1 *m.MSPConfig, sp view2.ServiceProvider) (*provider, error)
- type AuditInfo
- type FolderIdentityLoader
- type IdentityCache
- type IdentityCacheBackendFunc
- type IdentityLoader
- type Role
- type SignerService
Constants ¶
View Source
const ( EIDIndex = 2 RHIndex = 3 )
View Source
const (
Any bccsp.SignatureType = 100
)
View Source
const (
MSPType = "idemix"
)
Variables ¶
This section is empty.
Functions ¶
func GetRoleMaskFromIdemixRole ¶
GetRoleMaskFromIdemixRole return a bitmask for one role
func NewAnyProvider ¶
func NewAnyProvider(conf1 *m.MSPConfig, sp view2.ServiceProvider) (*provider, error)
func NewAnyProviderWithCurve ¶
func NewDeserializer ¶
NewDeserializer returns a new deserializer for the best effort strategy
func NewEIDNymProvider ¶
func NewEIDNymProvider(conf1 *m.MSPConfig, sp view2.ServiceProvider) (*provider, error)
func NewProvider ¶
func NewProvider(conf1 *m.MSPConfig, sp view2.ServiceProvider, sigType bccsp.SignatureType, curveID math.CurveID) (*provider, error)
func NewProviderWithSigType ¶
func NewProviderWithSigType(conf1 *m.MSPConfig, sp view2.ServiceProvider, sigType bccsp.SignatureType) (*provider, error)
func NewStandardProvider ¶
func NewStandardProvider(conf1 *m.MSPConfig, sp view2.ServiceProvider) (*provider, error)
Types ¶
type AuditInfo ¶
type AuditInfo struct { *csp.NymEIDAuditData Attributes [][]byte Csp csp.BCCSP `json:"-"` IssuerPublicKey csp.Key `json:"-"` }
func DeserializeAuditInfo ¶
func (*AuditInfo) EnrollmentID ¶
type FolderIdentityLoader ¶ added in v0.2.0
type FolderIdentityLoader struct {
*IdentityLoader
}
type IdentityCache ¶ added in v0.2.0
type IdentityCache struct {
// contains filtered or unexported fields
}
func NewIdentityCache ¶ added in v0.2.0
func NewIdentityCache(backed IdentityCacheBackendFunc, size int) *IdentityCache
func (*IdentityCache) Identity ¶ added in v0.2.0
func (c *IdentityCache) Identity(opts *driver.IdentityOptions) (view.Identity, []byte, error)
type IdentityCacheBackendFunc ¶ added in v0.2.0
type IdentityLoader ¶ added in v0.2.0
type IdentityLoader struct{}
type SignerService ¶
type SignerService interface {
RegisterSigner(identity view.Identity, signer driver.Signer, verifier driver.Verifier) error
}
TODO: remove this
func GetSignerService ¶
func GetSignerService(ctx view2.ServiceProvider) SignerService
Click to show internal directories.
Click to hide internal directories.