Documentation ¶
Index ¶
- func EnrollL2AccountAbi() *abi.Method
- func SubmitPacketWithProofAbi() *abi.Method
- func VerifyProofAbi() *abi.Method
- type EncodePackedExistenceProof
- type EnrollL2Account
- type OnchainAdapter
- func (adapter *OnchainAdapter) ApplyRequestWithProof(updatedProof *EncodePackedExistenceProof, value string, data []byte) ([]byte, error)
- func (adapter *OnchainAdapter) EnrollL2Account(proof *EncodePackedExistenceProof, value []byte, data []byte) ([]byte, error)
- func (adapter *OnchainAdapter) GenerateVerificationProof(proof *EncodePackedExistenceProof, root []byte, value string) ([]byte, error)
- func (a *OnchainAdapter) MarshalProof(v []byte) *EncodePackedExistenceProof
- type SubmitPacketWithProof
- type VerifyProof
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnrollL2AccountAbi ¶
func VerifyProofAbi ¶
Types ¶
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
}
Click to show internal directories.
Click to hide internal directories.