idemix

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2022 License: Apache-2.0 Imports: 31 Imported by: 4

Documentation

Index

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

func GetRoleMaskFromIdemixRole(role Role) int

GetRoleMaskFromIdemixRole return a bitmask for one role

func NewAnyProvider

func NewAnyProvider(conf1 *m.MSPConfig, sp view2.ServiceProvider) (*provider, error)

func NewAnyProviderWithCurve

func NewAnyProviderWithCurve(conf1 *m.MSPConfig, sp view2.ServiceProvider, curveID math.CurveID) (*provider, error)

func NewDeserializer

func NewDeserializer(ipk []byte) (*deserializer, error)

NewDeserializer returns a new deserializer for the best effort strategy

func NewDeserializerForNymEID

func NewDeserializerForNymEID(ipk []byte, nymEID []byte) (*deserializer, error)

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 DeserializeAuditInfo(raw []byte) (*AuditInfo, error)

func (*AuditInfo) Bytes

func (a *AuditInfo) Bytes() ([]byte, error)

func (*AuditInfo) EnrollmentID

func (a *AuditInfo) EnrollmentID() string

func (*AuditInfo) FromBytes

func (a *AuditInfo) FromBytes(raw []byte) error

func (*AuditInfo) Match

func (a *AuditInfo) Match(id []byte) error

type FolderIdentityLoader added in v0.2.0

type FolderIdentityLoader struct {
	*IdentityLoader
}

func (*FolderIdentityLoader) Load added in v0.2.0

func (f *FolderIdentityLoader) Load(manager driver.Manager, c config.MSP) error

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 IdentityCacheBackendFunc func(opts *driver.IdentityOptions) (view.Identity, []byte, error)

type IdentityLoader added in v0.2.0

type IdentityLoader struct{}

func (*IdentityLoader) Load added in v0.2.0

func (i *IdentityLoader) Load(manager driver.Manager, c config.MSP) error

type Role

type Role int32

Role : Represents a IdemixRole

const (
	MEMBER Role = 1
	ADMIN  Role = 2
	CLIENT Role = 4
	PEER   Role = 8
)

The expected roles are 4; We can combine them using a bitmask

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL