driver

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditInfo

type AuditInfo interface {
	EnrollmentID() string
	RevocationHandle() string
}

type AuditInfoDeserializer

type AuditInfoDeserializer interface {
	DeserializeAuditInfo([]byte) (AuditInfo, error)
}

type BinderService

type BinderService interface {
	Bind(longTerm driver.Identity, ephemeral driver.Identity, copyAll bool) error
}

type Config

type Config interface {
	// CacheSizeForOwnerID returns the cache size to be used for the given owner wallet.
	// If not defined, the function returns -1
	CacheSizeForOwnerID(id string) int
	TranslatePath(path string) string
	IdentitiesForRole(role driver.IdentityRole) ([]*config.Identity, error)
}

type Deserializer

type Deserializer interface {
	DeserializeVerifier(raw []byte) (tdriver.Verifier, error)
	DeserializeSigner(raw []byte) (tdriver.Signer, error)
	Info(raw []byte, auditInfo []byte) (string, error)
}

type DeserializerManager

type DeserializerManager interface {
	AddDeserializer(deserializer Deserializer)
	DeserializeSigner(raw []byte) (tdriver.Signer, error)
}

type IdentityProvider

type IdentityProvider interface {
	// RegisterAuditInfo binds the passed audit info to the passed identity
	RegisterAuditInfo(identity driver.Identity, info []byte) error

	// GetAuditInfo returns the audit info associated to the passed identity, nil if not found
	GetAuditInfo(identity driver.Identity) ([]byte, error)
}

type NetworkBinderService

type NetworkBinderService interface {
	Bind(longTerm driver.Identity, ephemeral driver.Identity) error
}

type SigService

type SigService interface {
	IsMe(driver.Identity) bool
	RegisterSigner(identity driver.Identity, signer driver.Signer, verifier driver.Verifier, signerInfo []byte) error
	RegisterVerifier(identity driver.Identity, v driver.Verifier) error
}

Jump to

Keyboard shortcuts

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