loaders

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: Apache-2.0, MIT Imports: 7 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, URL string) (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, URL string) (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