ethereum

package
v0.4.7-rc.1 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SignedProofAbiMethod

func SignedProofAbiMethod() *abi.Method

Types

type EncodePackedExistenceProof

type EncodePackedExistenceProof struct {
	LeafOp        []int32
	InnerOpSuffix []byte
	InnerOpPrefix []byte
	InnerOpHashOp int32
	Prefix        []byte
	Key           []byte
	Value         []byte
}

type OnchainAdapter

type OnchainAdapter struct {
	From                   string
	HostAddress            string
	DestinationHostAddress string
	VerifierAddress        string
	SubmitterAddress       string
	ChainName              string
	ChainID                int
}

func NewOnchainAdapter

func NewOnchainAdapter(from string, chainName string, chainID int) *OnchainAdapter

func (*OnchainAdapter) ApplyRequestWithProof

func (adapter *OnchainAdapter) ApplyRequestWithProof(
	updatedProof *EncodePackedExistenceProof,
	value []byte,
	data []byte,
) ([]byte, error)

func (*OnchainAdapter) GenerateVerificationProof

func (adapter *OnchainAdapter) GenerateVerificationProof(
	proof *EncodePackedExistenceProof,
	root []byte,
	value []byte,
) ([]byte, error)

func (*OnchainAdapter) MarshalProof

func (a *OnchainAdapter) MarshalProof(v []byte) *EncodePackedExistenceProof

type Packet

type Packet struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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