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