ethereum

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnrollL2AccountAbi

func EnrollL2AccountAbi() *abi.Method

func SubmitPacketWithProofAbi

func SubmitPacketWithProofAbi() *abi.Method

func VerifyProofAbi

func VerifyProofAbi() *abi.Method

Types

type EncodePackedExistenceProof

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

type EnrollL2Account

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

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 string,
	data []byte,
) ([]byte, error)

func (*OnchainAdapter) EnrollL2Account

func (adapter *OnchainAdapter) EnrollL2Account(
	proof *EncodePackedExistenceProof,
	value []byte,
	data []byte,
) ([]byte, error)
	return nil, resultCid, nil
}

func (*OnchainAdapter) GenerateVerificationProof

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

func (*OnchainAdapter) MarshalProof

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

type SubmitPacketWithProof

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

type VerifyProof

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

Jump to

Keyboard shortcuts

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