idemix

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Any bccsp.SignatureType = 100
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditInfoDeserializer

type AuditInfoDeserializer struct{}

func (*AuditInfoDeserializer) DeserializeAuditInfo

func (c *AuditInfoDeserializer) DeserializeAuditInfo(raw []byte) (driver2.AuditInfo, error)

type Deserializer

type Deserializer struct {
	*msp2.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(ipk []byte, verType csp.VerificationType, nymEID []byte, cryptoProvider csp.BCCSP) (*Deserializer, error)

func NewDeserializerWithProvider

func NewDeserializerWithProvider(
	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 (i *Deserializer) DeserializeAuditInfo(raw []byte) (driver2.AuditInfo, error)

func (*Deserializer) DeserializeSigner

func (i *Deserializer) DeserializeSigner(raw []byte) (driver.Signer, error)

func (*Deserializer) DeserializeVerifier

func (i *Deserializer) DeserializeVerifier(raw driver.Identity) (driver.Verifier, error)

func (*Deserializer) DeserializeVerifierAgainstNymEID

func (i *Deserializer) DeserializeVerifierAgainstNymEID(raw []byte, nymEID []byte) (driver.Verifier, error)

func (*Deserializer) GetOwnerAuditInfo

func (i *Deserializer) GetOwnerAuditInfo(raw []byte, p driver.AuditInfoProvider) ([][]byte, error)

func (*Deserializer) GetOwnerMatcher

func (i *Deserializer) GetOwnerMatcher(raw []byte) (driver.Matcher, error)

func (*Deserializer) Info

func (i *Deserializer) Info(raw []byte, auditInfo []byte) (string, error)

func (*Deserializer) String

func (i *Deserializer) String() string

type KeyManager

type KeyManager struct {
	*msp.Deserializer

	SignerService SignerService
	// contains filtered or unexported fields
}

func NewKeyManager

func NewKeyManager(conf1 *m.MSPConfig, signerService SignerService, sigType bccsp.SignatureType, cryptoProvider bccsp.BCCSP) (*KeyManager, error)

func (*KeyManager) Anonymous

func (p *KeyManager) Anonymous() bool

func (*KeyManager) DeserializeSigner

func (p *KeyManager) DeserializeSigner(raw []byte) (driver.Signer, error)

func (*KeyManager) DeserializeSigningIdentity

func (p *KeyManager) DeserializeSigningIdentity(raw []byte) (driver.SigningIdentity, error)

func (*KeyManager) DeserializeVerifier

func (p *KeyManager) DeserializeVerifier(raw []byte) (driver.Verifier, error)

func (*KeyManager) EnrollmentID

func (p *KeyManager) EnrollmentID() string

func (*KeyManager) Identity

func (p *KeyManager) Identity(auditInfo []byte) (driver.Identity, []byte, error)

func (*KeyManager) Info

func (p *KeyManager) Info(raw []byte, auditInfo []byte) (string, error)

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 NewKeyManagerProvider(issuerPublicKey []byte, curveID math.CurveID, mspID string, keyStore bccsp.KeyStore, signerService SignerService, config driver2.Config, cacheSize int, ignoreVerifyOnlyWallet bool) *KeyManagerProvider

func (*KeyManagerProvider) Get

type SignerService

type SignerService interface {
	RegisterSigner(identity driver.Identity, signer driver.Signer, verifier driver.Verifier, info []byte) error
}

type WrappedKeyManager

type WrappedKeyManager struct {
	common.KeyManager
	// contains filtered or unexported fields
}

func (*WrappedKeyManager) Identity

func (k *WrappedKeyManager) Identity(auditInfo []byte) (driver.Identity, []byte, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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