loaders

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2022 License: AGPL-3.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultSchemaLoader

type DefaultSchemaLoader struct {
	IpfsURL string `json:"ipfs_url"`
}

DefaultSchemaLoader is loader defined by auth lib, but can be replaced with any custom loader

func (DefaultSchemaLoader) Load

func (d DefaultSchemaLoader) Load(ctx context.Context, schema protocol.Schema) (schemaBytes []byte, extension string, err error)

Load loads schema from IPFS or by http link

type FSKeyLoader

type FSKeyLoader struct {
	Dir string
}

FSKeyLoader read keys from filesystem

func (FSKeyLoader) Load

func (m FSKeyLoader) Load(id circuits.CircuitID) ([]byte, error)

Load keys from embedded FS

type SchemaLoader

type SchemaLoader interface {
	Load(ctx context.Context, schema protocol.Schema) (schemaBytes []byte, extension string, err error)
}

SchemaLoader is an interface for schema loading

type VerificationKeyLoader

type VerificationKeyLoader interface {
	Load(id circuits.CircuitID) ([]byte, error)
}

VerificationKeyLoader load verification key bytes for specific circuit

Jump to

Keyboard shortcuts

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