output

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 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 Config

type Config struct {
	Type Type

	// for the ethereum & solana contract outputter
	ChainEndpoint   string
	ContractAddress string
	SecretKey       string
	// for the solana program outputter
	StateAccountPK string
}

Config is the configuration for the outputter

type Outputter

type Outputter interface {
	// Output outputs the proof
	Output(proof []byte) error
}

Outputter is the interface for outputting proofs

func NewOutputter

func NewOutputter(cfg Config) (out Outputter, err error)

NewOutputter returns a new outputter based on the config

type Type

type Type string

Type is the type of outputter

const (
	Stdout           Type = "stdout"
	EthereumContract Type = "ethereumContract"
	SolanaProgram    Type = "solanaProgram"
)

Types of outputters

Directories

Path Synopsis
chain
eth

Jump to

Keyboard shortcuts

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