proof

package
v3.0.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: GPL-3.0 Imports: 44 Imported by: 0

Documentation

Overview

Package proof is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	RequestIDTag = "requestID"
)

Variables

View Source
var (
	ErrInvalidLengthProof        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowProof          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupProof = fmt.Errorf("proto: unexpected end of group")
)

Functions

func GetPrefix

func GetPrefix(t cmtproto.SignedMsgType, height int64, round int64) ([]byte, error)

func GetSignaturesAndPrefix

func GetSignaturesAndPrefix(info *cmttypes.SignedHeader) ([]TMSignature, CommonEncodedVotePart, error)

GetSignaturesAndPrefix returns a list of TMSignature from Tendermint signed header.

func RegisterGRPCGatewayRoutes

func RegisterGRPCGatewayRoutes(clientConn gogogrpc.ClientConn, mux *runtime.ServeMux)

RegisterGRPCGatewayRoutes mounts the node gRPC service's GRPC-gateway routes on the given mux object.

func RegisterProofService

func RegisterProofService(clientCtx client.Context, server gogogrpc.Server, cfg config.Config)

RegisterProofService registers the node gRPC service on the provided gRPC router.

func RegisterServiceHandler

func RegisterServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterServiceHandler registers the http handlers for service Service to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterServiceHandlerClient

func RegisterServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ServiceClient) error

RegisterServiceHandlerClient registers the http handlers for service Service to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ServiceClient" to call the correct interceptors.

func RegisterServiceHandlerFromEndpoint

func RegisterServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterServiceHandlerFromEndpoint is same as RegisterServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterServiceHandlerServer

func RegisterServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ServiceServer) error

RegisterServiceHandlerServer registers the http handlers for service Service to "mux". UnaryRPC :call ServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterServiceHandlerFromEndpoint instead.

func RegisterServiceServer

func RegisterServiceServer(s grpc1.Server, srv ServiceServer)

Types

type BlockHeaderMerkleParts

type BlockHeaderMerkleParts struct {
	VersionAndChainIdHash             github_com_cometbft_cometbft_libs_bytes.HexBytes `` /* 188-byte string literal not displayed */
	Height                            uint64                                           `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	TimeSecond                        uint64                                           `protobuf:"varint,3,opt,name=time_second,json=timeSecond,proto3" json:"time_second,omitempty"`
	TimeNanoSecond                    uint32                                           `protobuf:"varint,4,opt,name=time_nano_second,json=timeNanoSecond,proto3" json:"time_nano_second,omitempty"`
	LastBlockIdAndOther               github_com_cometbft_cometbft_libs_bytes.HexBytes `` /* 182-byte string literal not displayed */
	NextValidatorHashAndConsensusHash github_com_cometbft_cometbft_libs_bytes.HexBytes `` /* 226-byte string literal not displayed */
	LastResultsHash                   github_com_cometbft_cometbft_libs_bytes.HexBytes `` /* 166-byte string literal not displayed */
	EvidenceAndProposerHash           github_com_cometbft_cometbft_libs_bytes.HexBytes `` /* 192-byte string literal not displayed */
}

BlockHeaderMerkleParts stores a group of hashes using for computing Tendermint's block header hash from app hash, and height.

In Tendermint, a block header hash is the Merkle hash of a binary tree with 14 leaf nodes. Each node encodes a data piece of the blockchain. The notable data leaves are: [A] app_hash, [2] height. All data pieces are combined into one 32-byte hash to be signed by block validators. The structure of the Merkle tree is shown below.

                                 [BlockHeader]
                              /                \
                 [3A]                                    [3B]
               /      \                                /      \
       [2A]                [2B]                [2C]                [2D]
      /    \              /    \              /    \              /    \
  [1A]      [1B]      [1C]      [1D]      [1E]      [1F]        [C]    [D]
  /  \      /  \      /  \      /  \      /  \      /  \
[0]  [1]  [2]  [3]  [4]  [5]  [6]  [7]  [8]  [9]  [A]  [B]

[0] - version               [1] - chain_id            [2] - height        [3] - time
[4] - last_block_id         [5] - last_commit_hash    [6] - data_hash     [7] - validators_hash
[8] - next_validators_hash  [9] - consensus_hash      [A] - app_hash      [B] - last_results_hash
[C] - evidence_hash         [D] - proposer_address

Notice that NOT all leaves of the Merkle tree are needed in order to compute the Merkle root hash, since we only want to validate the correctness of [2], [3], and [A]. In fact, only [1A], [2B], [1E], [B], and [2D] are needed in order to compute [BlockHeader].

func GetBlockHeaderMerkleParts

func GetBlockHeaderMerkleParts(block *types.Header) BlockHeaderMerkleParts

GetBlockHeaderMerkleParts converts Tendermint block header struct into BlockHeaderMerkleParts for gas-optimized proof verification.

func (*BlockHeaderMerkleParts) Descriptor

func (*BlockHeaderMerkleParts) Descriptor() ([]byte, []int)

func (*BlockHeaderMerkleParts) GetEvidenceAndProposerHash

func (*BlockHeaderMerkleParts) GetHeight

func (m *BlockHeaderMerkleParts) GetHeight() uint64

func (*BlockHeaderMerkleParts) GetLastBlockIdAndOther

func (*BlockHeaderMerkleParts) GetLastResultsHash

func (*BlockHeaderMerkleParts) GetNextValidatorHashAndConsensusHash

func (m *BlockHeaderMerkleParts) GetNextValidatorHashAndConsensusHash() github_com_cometbft_cometbft_libs_bytes.HexBytes

func (*BlockHeaderMerkleParts) GetTimeNanoSecond

func (m *BlockHeaderMerkleParts) GetTimeNanoSecond() uint32

func (*BlockHeaderMerkleParts) GetTimeSecond

func (m *BlockHeaderMerkleParts) GetTimeSecond() uint64

func (*BlockHeaderMerkleParts) GetVersionAndChainIdHash

func (*BlockHeaderMerkleParts) Marshal

func (m *BlockHeaderMerkleParts) Marshal() (dAtA []byte, err error)

func (*BlockHeaderMerkleParts) MarshalTo

func (m *BlockHeaderMerkleParts) MarshalTo(dAtA []byte) (int, error)

func (*BlockHeaderMerkleParts) MarshalToSizedBuffer

func (m *BlockHeaderMerkleParts) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BlockHeaderMerkleParts) ProtoMessage

func (*BlockHeaderMerkleParts) ProtoMessage()

func (*BlockHeaderMerkleParts) Reset

func (m *BlockHeaderMerkleParts) Reset()

func (*BlockHeaderMerkleParts) Size

func (m *BlockHeaderMerkleParts) Size() (n int)

func (*BlockHeaderMerkleParts) String

func (m *BlockHeaderMerkleParts) String() string

func (*BlockHeaderMerkleParts) Unmarshal

func (m *BlockHeaderMerkleParts) Unmarshal(dAtA []byte) error

func (*BlockHeaderMerkleParts) XXX_DiscardUnknown

func (m *BlockHeaderMerkleParts) XXX_DiscardUnknown()

func (*BlockHeaderMerkleParts) XXX_Marshal

func (m *BlockHeaderMerkleParts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockHeaderMerkleParts) XXX_Merge

func (m *BlockHeaderMerkleParts) XXX_Merge(src proto.Message)

func (*BlockHeaderMerkleParts) XXX_Size

func (m *BlockHeaderMerkleParts) XXX_Size() int

func (*BlockHeaderMerkleParts) XXX_Unmarshal

func (m *BlockHeaderMerkleParts) XXX_Unmarshal(b []byte) error

type BlockHeaderMerklePartsEthereum

type BlockHeaderMerklePartsEthereum struct {
	VersionAndChainIdHash             common.Hash
	Height                            uint64
	TimeSecond                        uint64
	TimeNanoSecond                    uint32
	LastBlockIdAndOther               common.Hash
	NextValidatorHashAndConsensusHash common.Hash
	LastResultsHash                   common.Hash
	EvidenceAndProposerHash           common.Hash
}

BlockHeaderMerklePartsEthereum is an Ethereum version of BlockHeaderMerkleParts for solidity ABI-encoding.

type BlockRelayProof

type BlockRelayProof struct {
	MultiStoreProof        MultiStoreProof        `protobuf:"bytes,1,opt,name=multi_store_proof,json=multiStoreProof,proto3" json:"multi_store_proof"`
	BlockHeaderMerkleParts BlockHeaderMerkleParts `protobuf:"bytes,2,opt,name=block_header_merkle_parts,json=blockHeaderMerkleParts,proto3" json:"block_header_merkle_parts"`
	CommonEncodedVotePart  CommonEncodedVotePart  `protobuf:"bytes,3,opt,name=common_encoded_vote_part,json=commonEncodedVotePart,proto3" json:"common_encoded_vote_part"`
	Signatures             []TMSignature          `protobuf:"bytes,4,rep,name=signatures,proto3" json:"signatures"`
}

BlockRelayProof contains multi store proof, block header merkle parts, common encoded part and signatures

func (*BlockRelayProof) Descriptor

func (*BlockRelayProof) Descriptor() ([]byte, []int)

func (*BlockRelayProof) GetBlockHeaderMerkleParts

func (m *BlockRelayProof) GetBlockHeaderMerkleParts() BlockHeaderMerkleParts

func (*BlockRelayProof) GetCommonEncodedVotePart

func (m *BlockRelayProof) GetCommonEncodedVotePart() CommonEncodedVotePart

func (*BlockRelayProof) GetMultiStoreProof

func (m *BlockRelayProof) GetMultiStoreProof() MultiStoreProof

func (*BlockRelayProof) GetSignatures

func (m *BlockRelayProof) GetSignatures() []TMSignature

func (*BlockRelayProof) Marshal

func (m *BlockRelayProof) Marshal() (dAtA []byte, err error)

func (*BlockRelayProof) MarshalTo

func (m *BlockRelayProof) MarshalTo(dAtA []byte) (int, error)

func (*BlockRelayProof) MarshalToSizedBuffer

func (m *BlockRelayProof) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BlockRelayProof) ProtoMessage

func (*BlockRelayProof) ProtoMessage()

func (*BlockRelayProof) Reset

func (m *BlockRelayProof) Reset()

func (*BlockRelayProof) Size

func (m *BlockRelayProof) Size() (n int)

func (*BlockRelayProof) String

func (m *BlockRelayProof) String() string

func (*BlockRelayProof) Unmarshal

func (m *BlockRelayProof) Unmarshal(dAtA []byte) error

func (*BlockRelayProof) XXX_DiscardUnknown

func (m *BlockRelayProof) XXX_DiscardUnknown()

func (*BlockRelayProof) XXX_Marshal

func (m *BlockRelayProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockRelayProof) XXX_Merge

func (m *BlockRelayProof) XXX_Merge(src proto.Message)

func (*BlockRelayProof) XXX_Size

func (m *BlockRelayProof) XXX_Size() int

func (*BlockRelayProof) XXX_Unmarshal

func (m *BlockRelayProof) XXX_Unmarshal(b []byte) error

type CommonEncodedVotePart

type CommonEncodedVotePart struct {
	SignedDataPrefix github_com_cometbft_cometbft_libs_bytes.HexBytes `` /* 169-byte string literal not displayed */
	SignedDataSuffix github_com_cometbft_cometbft_libs_bytes.HexBytes `` /* 169-byte string literal not displayed */
}

CommonEncodedVotePart represents the common part of encoded vote

func (*CommonEncodedVotePart) Descriptor

func (*CommonEncodedVotePart) Descriptor() ([]byte, []int)

func (*CommonEncodedVotePart) GetSignedDataPrefix

func (*CommonEncodedVotePart) GetSignedDataSuffix

func (*CommonEncodedVotePart) Marshal

func (m *CommonEncodedVotePart) Marshal() (dAtA []byte, err error)

func (*CommonEncodedVotePart) MarshalTo

func (m *CommonEncodedVotePart) MarshalTo(dAtA []byte) (int, error)

func (*CommonEncodedVotePart) MarshalToSizedBuffer

func (m *CommonEncodedVotePart) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CommonEncodedVotePart) ProtoMessage

func (*CommonEncodedVotePart) ProtoMessage()

func (*CommonEncodedVotePart) Reset

func (m *CommonEncodedVotePart) Reset()

func (*CommonEncodedVotePart) Size

func (m *CommonEncodedVotePart) Size() (n int)

func (*CommonEncodedVotePart) String

func (m *CommonEncodedVotePart) String() string

func (*CommonEncodedVotePart) Unmarshal

func (m *CommonEncodedVotePart) Unmarshal(dAtA []byte) error

func (*CommonEncodedVotePart) XXX_DiscardUnknown

func (m *CommonEncodedVotePart) XXX_DiscardUnknown()

func (*CommonEncodedVotePart) XXX_Marshal

func (m *CommonEncodedVotePart) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CommonEncodedVotePart) XXX_Merge

func (m *CommonEncodedVotePart) XXX_Merge(src proto.Message)

func (*CommonEncodedVotePart) XXX_Size

func (m *CommonEncodedVotePart) XXX_Size() int

func (*CommonEncodedVotePart) XXX_Unmarshal

func (m *CommonEncodedVotePart) XXX_Unmarshal(b []byte) error

type CommonEncodedVotePartEthereum

type CommonEncodedVotePartEthereum struct {
	SignedDataPrefix []byte
	SignedDataSuffix []byte
}

type CountProof

type CountProof struct {
	BlockHeight     uint64             `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	CountProof      RequestsCountProof `protobuf:"bytes,2,opt,name=count_proof,json=countProof,proto3" json:"count_proof"`
	BlockRelayProof BlockRelayProof    `protobuf:"bytes,3,opt,name=block_relay_proof,json=blockRelayProof,proto3" json:"block_relay_proof"`
}

CountProof contains block height, count proof and block relay proof

func (*CountProof) Descriptor

func (*CountProof) Descriptor() ([]byte, []int)

func (*CountProof) GetBlockHeight

func (m *CountProof) GetBlockHeight() uint64

func (*CountProof) GetBlockRelayProof

func (m *CountProof) GetBlockRelayProof() BlockRelayProof

func (*CountProof) GetCountProof

func (m *CountProof) GetCountProof() RequestsCountProof

func (*CountProof) Marshal

func (m *CountProof) Marshal() (dAtA []byte, err error)

func (*CountProof) MarshalTo

func (m *CountProof) MarshalTo(dAtA []byte) (int, error)

func (*CountProof) MarshalToSizedBuffer

func (m *CountProof) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CountProof) ProtoMessage

func (*CountProof) ProtoMessage()

func (*CountProof) Reset

func (m *CountProof) Reset()

func (*CountProof) Size

func (m *CountProof) Size() (n int)

func (*CountProof) String

func (m *CountProof) String() string

func (*CountProof) Unmarshal

func (m *CountProof) Unmarshal(dAtA []byte) error

func (*CountProof) XXX_DiscardUnknown

func (m *CountProof) XXX_DiscardUnknown()

func (*CountProof) XXX_Marshal

func (m *CountProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CountProof) XXX_Merge

func (m *CountProof) XXX_Merge(src proto.Message)

func (*CountProof) XXX_Size

func (m *CountProof) XXX_Size() int

func (*CountProof) XXX_Unmarshal

func (m *CountProof) XXX_Unmarshal(b []byte) error

type CountProofResult

type CountProofResult struct {
	Proof         CountProof                                       `protobuf:"bytes,1,opt,name=proof,proto3" json:"proof"`
	EvmProofBytes github_com_cometbft_cometbft_libs_bytes.HexBytes `` /* 160-byte string literal not displayed */
}

CountProofResult is the data structure for response of count proof

func (*CountProofResult) Descriptor

func (*CountProofResult) Descriptor() ([]byte, []int)

func (*CountProofResult) GetEvmProofBytes

func (*CountProofResult) GetProof

func (m *CountProofResult) GetProof() CountProof

func (*CountProofResult) Marshal

func (m *CountProofResult) Marshal() (dAtA []byte, err error)

func (*CountProofResult) MarshalTo

func (m *CountProofResult) MarshalTo(dAtA []byte) (int, error)

func (*CountProofResult) MarshalToSizedBuffer

func (m *CountProofResult) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CountProofResult) ProtoMessage

func (*CountProofResult) ProtoMessage()

func (*CountProofResult) Reset

func (m *CountProofResult) Reset()

func (*CountProofResult) Size

func (m *CountProofResult) Size() (n int)

func (*CountProofResult) String

func (m *CountProofResult) String() string

func (*CountProofResult) Unmarshal

func (m *CountProofResult) Unmarshal(dAtA []byte) error

func (*CountProofResult) XXX_DiscardUnknown

func (m *CountProofResult) XXX_DiscardUnknown()

func (*CountProofResult) XXX_Marshal

func (m *CountProofResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CountProofResult) XXX_Merge

func (m *CountProofResult) XXX_Merge(src proto.Message)

func (*CountProofResult) XXX_Size

func (m *CountProofResult) XXX_Size() int

func (*CountProofResult) XXX_Unmarshal

func (m *CountProofResult) XXX_Unmarshal(b []byte) error

type IAVLMerklePath

type IAVLMerklePath struct {
	IsDataOnRight  bool                                             `protobuf:"varint,1,opt,name=is_data_on_right,json=isDataOnRight,proto3" json:"is_data_on_right,omitempty"`
	SubtreeHeight  uint32                                           `protobuf:"varint,2,opt,name=subtree_height,json=subtreeHeight,proto3" json:"subtree_height,omitempty"`
	SubtreeSize    uint64                                           `protobuf:"varint,3,opt,name=subtree_size,json=subtreeSize,proto3" json:"subtree_size,omitempty"`
	SubtreeVersion uint64                                           `protobuf:"varint,4,opt,name=subtree_version,json=subtreeVersion,proto3" json:"subtree_version,omitempty"`
	SiblingHash    github_com_cometbft_cometbft_libs_bytes.HexBytes `` /* 152-byte string literal not displayed */
}

IAVLMerklePath represents a Merkle step to a leaf data node in an iAVL tree.

func GetMerklePaths

func GetMerklePaths(iavlEp *ics23.ExistenceProof) []IAVLMerklePath

GetMerklePaths returns the list of MerklePath elements from the given iAVL proof.

func (*IAVLMerklePath) Descriptor

func (*IAVLMerklePath) Descriptor() ([]byte, []int)

func (*IAVLMerklePath) GetIsDataOnRight

func (m *IAVLMerklePath) GetIsDataOnRight() bool

func (*IAVLMerklePath) GetSiblingHash

func (*IAVLMerklePath) GetSubtreeHeight

func (m *IAVLMerklePath) GetSubtreeHeight() uint32

func (*IAVLMerklePath) GetSubtreeSize

func (m *IAVLMerklePath) GetSubtreeSize() uint64

func (*IAVLMerklePath) GetSubtreeVersion

func (m *IAVLMerklePath) GetSubtreeVersion() uint64

func (*IAVLMerklePath) Marshal

func (m *IAVLMerklePath) Marshal() (dAtA []byte, err error)

func (*IAVLMerklePath) MarshalTo

func (m *IAVLMerklePath) MarshalTo(dAtA []byte) (int, error)

func (*IAVLMerklePath) MarshalToSizedBuffer

func (m *IAVLMerklePath) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*IAVLMerklePath) ProtoMessage

func (*IAVLMerklePath) ProtoMessage()

func (*IAVLMerklePath) Reset

func (m *IAVLMerklePath) Reset()

func (*IAVLMerklePath) Size

func (m *IAVLMerklePath) Size() (n int)

func (*IAVLMerklePath) String

func (m *IAVLMerklePath) String() string

func (*IAVLMerklePath) Unmarshal

func (m *IAVLMerklePath) Unmarshal(dAtA []byte) error

func (*IAVLMerklePath) XXX_DiscardUnknown

func (m *IAVLMerklePath) XXX_DiscardUnknown()

func (*IAVLMerklePath) XXX_Marshal

func (m *IAVLMerklePath) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IAVLMerklePath) XXX_Merge

func (m *IAVLMerklePath) XXX_Merge(src proto.Message)

func (*IAVLMerklePath) XXX_Size

func (m *IAVLMerklePath) XXX_Size() int

func (*IAVLMerklePath) XXX_Unmarshal

func (m *IAVLMerklePath) XXX_Unmarshal(b []byte) error

type IAVLMerklePathEthereum

type IAVLMerklePathEthereum struct {
	IsDataOnRight  bool
	SubtreeHeight  uint8
	SubtreeSize    *big.Int
	SubtreeVersion *big.Int
	SiblingHash    common.Hash
}

IAVLMerklePathEthereum is an Ethereum version of IAVLMerklePath for solidity ABI-encoding.

type MultiProof

type MultiProof struct {
	BlockHeight          uint64            `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	OracleDataMultiProof []OracleDataProof `protobuf:"bytes,2,rep,name=oracle_data_multi_proof,json=oracleDataMultiProof,proto3" json:"oracle_data_multi_proof"`
	BlockRelayProof      BlockRelayProof   `protobuf:"bytes,3,opt,name=block_relay_proof,json=blockRelayProof,proto3" json:"block_relay_proof"`
}

MultiProof contains block height, list of oracle data proof and block relay proof

func (*MultiProof) Descriptor

func (*MultiProof) Descriptor() ([]byte, []int)

func (*MultiProof) GetBlockHeight

func (m *MultiProof) GetBlockHeight() uint64

func (*MultiProof) GetBlockRelayProof

func (m *MultiProof) GetBlockRelayProof() BlockRelayProof

func (*MultiProof) GetOracleDataMultiProof

func (m *MultiProof) GetOracleDataMultiProof() []OracleDataProof

func (*MultiProof) Marshal

func (m *MultiProof) Marshal() (dAtA []byte, err error)

func (*MultiProof) MarshalTo

func (m *MultiProof) MarshalTo(dAtA []byte) (int, error)

func (*MultiProof) MarshalToSizedBuffer

func (m *MultiProof) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MultiProof) ProtoMessage

func (*MultiProof) ProtoMessage()

func (*MultiProof) Reset

func (m *MultiProof) Reset()

func (*MultiProof) Size

func (m *MultiProof) Size() (n int)

func (*MultiProof) String

func (m *MultiProof) String() string

func (*MultiProof) Unmarshal

func (m *MultiProof) Unmarshal(dAtA []byte) error

func (*MultiProof) XXX_DiscardUnknown

func (m *MultiProof) XXX_DiscardUnknown()

func (*MultiProof) XXX_Marshal

func (m *MultiProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MultiProof) XXX_Merge

func (m *MultiProof) XXX_Merge(src proto.Message)

func (*MultiProof) XXX_Size

func (m *MultiProof) XXX_Size() int

func (*MultiProof) XXX_Unmarshal

func (m *MultiProof) XXX_Unmarshal(b []byte) error

type MultiProofRequest

type MultiProofRequest struct {
	// request_ids is the list of request IDs
	RequestIds []uint64 `protobuf:"varint,1,rep,packed,name=request_ids,json=requestIds,proto3" json:"request_ids,omitempty"`
}

MultiProofRequest is request type for the Service/MultiProof RPC method.

func (*MultiProofRequest) Descriptor

func (*MultiProofRequest) Descriptor() ([]byte, []int)

func (*MultiProofRequest) GetRequestIds

func (m *MultiProofRequest) GetRequestIds() []uint64

func (*MultiProofRequest) Marshal

func (m *MultiProofRequest) Marshal() (dAtA []byte, err error)

func (*MultiProofRequest) MarshalTo

func (m *MultiProofRequest) MarshalTo(dAtA []byte) (int, error)

func (*MultiProofRequest) MarshalToSizedBuffer

func (m *MultiProofRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MultiProofRequest) ProtoMessage

func (*MultiProofRequest) ProtoMessage()

func (*MultiProofRequest) Reset

func (m *MultiProofRequest) Reset()

func (*MultiProofRequest) Size

func (m *MultiProofRequest) Size() (n int)

func (*MultiProofRequest) String

func (m *MultiProofRequest) String() string

func (*MultiProofRequest) Unmarshal

func (m *MultiProofRequest) Unmarshal(dAtA []byte) error

func (*MultiProofRequest) XXX_DiscardUnknown

func (m *MultiProofRequest) XXX_DiscardUnknown()

func (*MultiProofRequest) XXX_Marshal

func (m *MultiProofRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MultiProofRequest) XXX_Merge

func (m *MultiProofRequest) XXX_Merge(src proto.Message)

func (*MultiProofRequest) XXX_Size

func (m *MultiProofRequest) XXX_Size() int

func (*MultiProofRequest) XXX_Unmarshal

func (m *MultiProofRequest) XXX_Unmarshal(b []byte) error

type MultiProofResponse

type MultiProofResponse struct {
	Height int64            `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Result MultiProofResult `protobuf:"bytes,2,opt,name=result,proto3" json:"result"`
}

MultiProofResponse is response type for the Service/MultiProof RPC method.

func (*MultiProofResponse) Descriptor

func (*MultiProofResponse) Descriptor() ([]byte, []int)

func (*MultiProofResponse) GetHeight

func (m *MultiProofResponse) GetHeight() int64

func (*MultiProofResponse) GetResult

func (m *MultiProofResponse) GetResult() MultiProofResult

func (*MultiProofResponse) Marshal

func (m *MultiProofResponse) Marshal() (dAtA []byte, err error)

func (*MultiProofResponse) MarshalTo

func (m *MultiProofResponse) MarshalTo(dAtA []byte) (int, error)

func (*MultiProofResponse) MarshalToSizedBuffer

func (m *MultiProofResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MultiProofResponse) ProtoMessage

func (*MultiProofResponse) ProtoMessage()

func (*MultiProofResponse) Reset

func (m *MultiProofResponse) Reset()

func (*MultiProofResponse) Size

func (m *MultiProofResponse) Size() (n int)

func (*MultiProofResponse) String

func (m *MultiProofResponse) String() string

func (*MultiProofResponse) Unmarshal

func (m *MultiProofResponse) Unmarshal(dAtA []byte) error

func (*MultiProofResponse) XXX_DiscardUnknown

func (m *MultiProofResponse) XXX_DiscardUnknown()

func (*MultiProofResponse) XXX_Marshal

func (m *MultiProofResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MultiProofResponse) XXX_Merge

func (m *MultiProofResponse) XXX_Merge(src proto.Message)

func (*MultiProofResponse) XXX_Size

func (m *MultiProofResponse) XXX_Size() int

func (*MultiProofResponse) XXX_Unmarshal

func (m *MultiProofResponse) XXX_Unmarshal(b []byte) error

type MultiProofResult

type MultiProofResult struct {
	Proof         MultiProof                                       `protobuf:"bytes,1,opt,name=proof,proto3" json:"proof"`
	EvmProofBytes github_com_cometbft_cometbft_libs_bytes.HexBytes `` /* 160-byte string literal not displayed */
}

MultiProofResult is the data structure for response of multi proof

func (*MultiProofResult) Descriptor

func (*MultiProofResult) Descriptor() ([]byte, []int)

func (*MultiProofResult) GetEvmProofBytes

func (*MultiProofResult) GetProof

func (m *MultiProofResult) GetProof() MultiProof

func (*MultiProofResult) Marshal

func (m *MultiProofResult) Marshal() (dAtA []byte, err error)

func (*MultiProofResult) MarshalTo

func (m *MultiProofResult) MarshalTo(dAtA []byte) (int, error)

func (*MultiProofResult) MarshalToSizedBuffer

func (m *MultiProofResult) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MultiProofResult) ProtoMessage

func (*MultiProofResult) ProtoMessage()

func (*MultiProofResult) Reset

func (m *MultiProofResult) Reset()

func (*MultiProofResult) Size

func (m *MultiProofResult) Size() (n int)

func (*MultiProofResult) String

func (m *MultiProofResult) String() string

func (*MultiProofResult) Unmarshal

func (m *MultiProofResult) Unmarshal(dAtA []byte) error

func (*MultiProofResult) XXX_DiscardUnknown

func (m *MultiProofResult) XXX_DiscardUnknown()

func (*MultiProofResult) XXX_Marshal

func (m *MultiProofResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MultiProofResult) XXX_Merge

func (m *MultiProofResult) XXX_Merge(src proto.Message)

func (*MultiProofResult) XXX_Size

func (m *MultiProofResult) XXX_Size() int

func (*MultiProofResult) XXX_Unmarshal

func (m *MultiProofResult) XXX_Unmarshal(b []byte) error

type MultiStoreProof

type MultiStoreProof struct {
	OracleIAVLStateHash                   github_com_cometbft_cometbft_libs_bytes.HexBytes `` /* 180-byte string literal not displayed */
	MintStoreMerkleHash                   github_com_cometbft_cometbft_libs_bytes.HexBytes `` /* 180-byte string literal not displayed */
	ParamsToRestakeStoresMerkleHash       github_com_cometbft_cometbft_libs_bytes.HexBytes `` /* 220-byte string literal not displayed */
	RollingseedToTransferStoresMerkleHash github_com_cometbft_cometbft_libs_bytes.HexBytes `` /* 238-byte string literal not displayed */
	TssToUpgradeStoresMerkleHash          github_com_cometbft_cometbft_libs_bytes.HexBytes `` /* 211-byte string literal not displayed */
	AuthToIcahostStoresMerkleHash         github_com_cometbft_cometbft_libs_bytes.HexBytes `` /* 214-byte string literal not displayed */
}

MultiStoreProof stores a compact of other Cosmos-SDK modules' storage hash in multistore to compute (in combination with oracle store hash) Tendermint's application state hash at a given block.

                                 __________________________[AppHash]__________________________
                                /                                                             \
                  ___________[N24]____________                                    ___________[N25]________
                 /                            \                                  /                        \
          _____[N20]_____                 ____[N21]______                   ____[N22]______              _[N23]_
         /               \               /               \                 /               \            /       \
     _[N12]_          _[N13]_          _[N14]_          _[N15]_          _[N16]_          _[N17]_     [N18]     [Q]
    /       \        /       \        /       \        /       \        /       \        /       \    /   \
  [N0]     [N1]    [N2]     [N3]    [N4]     [N5]    [N6]     [N7]    [N8]     [N9]   [N10]    [N11] [O] [P]
 /   \    /   \    /  \    /   \   /   \    /   \   /   \    /   \   /   \    /   \   /   \    /   \
[0] [1]  [2] [3] [4] [5]  [6] [7] [8] [9]  [A] [B] [C] [D]  [E] [F] [G] [H]  [I] [J] [K] [L]  [M] [N]

[0] - acc (auth) [1] - authz [2] - bandtss [3] - bank [4] - capability [5] - consensus [6] - crisis [7] - distribution [8] - evidence [9] - feeds [A] - feegrant [B] - feeibc [C] - globalfee [D] - gov [E] - ibc [F] - icahost [G] - mint [H] - oracle [I] - params [J] - restake [K] - rollingseed [L] - slashing [M] - staking [N] - transfer [O] - tss [P] - tunnel [Q] - upgrade

Notice that NOT all leaves of the Merkle tree are needed in order to compute the Merkle root hash, since we only want to validate the correctness of [H] In fact, only [G], [N9], [N17], [N23], and [N24] are needed in order to compute [AppHash].

func GetMultiStoreProof

func GetMultiStoreProof(multiStoreEp *ics23.ExistenceProof) MultiStoreProof

GetMultiStoreProof compacts Multi store proof from Tendermint to MultiStoreProof version.

func (*MultiStoreProof) Descriptor

func (*MultiStoreProof) Descriptor() ([]byte, []int)

func (*MultiStoreProof) GetAuthToIcahostStoresMerkleHash

func (m *MultiStoreProof) GetAuthToIcahostStoresMerkleHash() github_com_cometbft_cometbft_libs_bytes.HexBytes

func (*MultiStoreProof) GetMintStoreMerkleHash

func (*MultiStoreProof) GetOracleIAVLStateHash

func (*MultiStoreProof) GetParamsToRestakeStoresMerkleHash

func (m *MultiStoreProof) GetParamsToRestakeStoresMerkleHash() github_com_cometbft_cometbft_libs_bytes.HexBytes

func (*MultiStoreProof) GetRollingseedToTransferStoresMerkleHash

func (m *MultiStoreProof) GetRollingseedToTransferStoresMerkleHash() github_com_cometbft_cometbft_libs_bytes.HexBytes

func (*MultiStoreProof) GetTssToUpgradeStoresMerkleHash

func (m *MultiStoreProof) GetTssToUpgradeStoresMerkleHash() github_com_cometbft_cometbft_libs_bytes.HexBytes

func (*MultiStoreProof) Marshal

func (m *MultiStoreProof) Marshal() (dAtA []byte, err error)

func (*MultiStoreProof) MarshalTo

func (m *MultiStoreProof) MarshalTo(dAtA []byte) (int, error)

func (*MultiStoreProof) MarshalToSizedBuffer

func (m *MultiStoreProof) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MultiStoreProof) ProtoMessage

func (*MultiStoreProof) ProtoMessage()

func (*MultiStoreProof) Reset

func (m *MultiStoreProof) Reset()

func (*MultiStoreProof) Size

func (m *MultiStoreProof) Size() (n int)

func (*MultiStoreProof) String

func (m *MultiStoreProof) String() string

func (*MultiStoreProof) Unmarshal

func (m *MultiStoreProof) Unmarshal(dAtA []byte) error

func (*MultiStoreProof) XXX_DiscardUnknown

func (m *MultiStoreProof) XXX_DiscardUnknown()

func (*MultiStoreProof) XXX_Marshal

func (m *MultiStoreProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MultiStoreProof) XXX_Merge

func (m *MultiStoreProof) XXX_Merge(src proto.Message)

func (*MultiStoreProof) XXX_Size

func (m *MultiStoreProof) XXX_Size() int

func (*MultiStoreProof) XXX_Unmarshal

func (m *MultiStoreProof) XXX_Unmarshal(b []byte) error

type MultiStoreProofEthereum

type MultiStoreProofEthereum struct {
	OracleIAVLStateHash                   common.Hash
	MintStoreMerkleHash                   common.Hash
	ParamsToRestakeStoresMerkleHash       common.Hash
	RollingseedToTransferStoresMerkleHash common.Hash
	TssToUpgradeStoresMerkleHash          common.Hash
	AuthToIcahostStoresMerkleHash         common.Hash
}

MultiStoreProofEthereum is an Ethereum version of MultiStoreProof for solidity ABI-encoding.

type OracleDataProof

type OracleDataProof struct {
	Result      types.Result     `protobuf:"bytes,1,opt,name=result,proto3" json:"result"`
	Version     uint64           `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
	MerklePaths []IAVLMerklePath `protobuf:"bytes,3,rep,name=merkle_paths,json=merklePaths,proto3" json:"merkle_paths"`
}

OracleDataProof contains result, version and merkle paths

func (*OracleDataProof) Descriptor

func (*OracleDataProof) Descriptor() ([]byte, []int)

func (*OracleDataProof) GetMerklePaths

func (m *OracleDataProof) GetMerklePaths() []IAVLMerklePath

func (*OracleDataProof) GetResult

func (m *OracleDataProof) GetResult() types.Result

func (*OracleDataProof) GetVersion

func (m *OracleDataProof) GetVersion() uint64

func (*OracleDataProof) Marshal

func (m *OracleDataProof) Marshal() (dAtA []byte, err error)

func (*OracleDataProof) MarshalTo

func (m *OracleDataProof) MarshalTo(dAtA []byte) (int, error)

func (*OracleDataProof) MarshalToSizedBuffer

func (m *OracleDataProof) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*OracleDataProof) ProtoMessage

func (*OracleDataProof) ProtoMessage()

func (*OracleDataProof) Reset

func (m *OracleDataProof) Reset()

func (*OracleDataProof) Size

func (m *OracleDataProof) Size() (n int)

func (*OracleDataProof) String

func (m *OracleDataProof) String() string

func (*OracleDataProof) Unmarshal

func (m *OracleDataProof) Unmarshal(dAtA []byte) error

func (*OracleDataProof) XXX_DiscardUnknown

func (m *OracleDataProof) XXX_DiscardUnknown()

func (*OracleDataProof) XXX_Marshal

func (m *OracleDataProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OracleDataProof) XXX_Merge

func (m *OracleDataProof) XXX_Merge(src proto.Message)

func (*OracleDataProof) XXX_Size

func (m *OracleDataProof) XXX_Size() int

func (*OracleDataProof) XXX_Unmarshal

func (m *OracleDataProof) XXX_Unmarshal(b []byte) error

type ProofRequest

type ProofRequest struct {
	// RequestID is ID of an oracle request
	RequestId uint64 `protobuf:"varint,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// height is block height
	Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
}

ProofRequest is request type for the Service/Proof RPC method.

func (*ProofRequest) Descriptor

func (*ProofRequest) Descriptor() ([]byte, []int)

func (*ProofRequest) GetHeight

func (m *ProofRequest) GetHeight() int64

func (*ProofRequest) GetRequestId

func (m *ProofRequest) GetRequestId() uint64

func (*ProofRequest) Marshal

func (m *ProofRequest) Marshal() (dAtA []byte, err error)

func (*ProofRequest) MarshalTo

func (m *ProofRequest) MarshalTo(dAtA []byte) (int, error)

func (*ProofRequest) MarshalToSizedBuffer

func (m *ProofRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ProofRequest) ProtoMessage

func (*ProofRequest) ProtoMessage()

func (*ProofRequest) Reset

func (m *ProofRequest) Reset()

func (*ProofRequest) Size

func (m *ProofRequest) Size() (n int)

func (*ProofRequest) String

func (m *ProofRequest) String() string

func (*ProofRequest) Unmarshal

func (m *ProofRequest) Unmarshal(dAtA []byte) error

func (*ProofRequest) XXX_DiscardUnknown

func (m *ProofRequest) XXX_DiscardUnknown()

func (*ProofRequest) XXX_Marshal

func (m *ProofRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProofRequest) XXX_Merge

func (m *ProofRequest) XXX_Merge(src proto.Message)

func (*ProofRequest) XXX_Size

func (m *ProofRequest) XXX_Size() int

func (*ProofRequest) XXX_Unmarshal

func (m *ProofRequest) XXX_Unmarshal(b []byte) error

type ProofResponse

type ProofResponse struct {
	// height is block height
	Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	// result is the proof
	Result SingleProofResult `protobuf:"bytes,2,opt,name=result,proto3" json:"result"`
}

ProofResponse is response type for the Service/Proof RPC method.

func (*ProofResponse) Descriptor

func (*ProofResponse) Descriptor() ([]byte, []int)

func (*ProofResponse) GetHeight

func (m *ProofResponse) GetHeight() int64

func (*ProofResponse) GetResult

func (m *ProofResponse) GetResult() SingleProofResult

func (*ProofResponse) Marshal

func (m *ProofResponse) Marshal() (dAtA []byte, err error)

func (*ProofResponse) MarshalTo

func (m *ProofResponse) MarshalTo(dAtA []byte) (int, error)

func (*ProofResponse) MarshalToSizedBuffer

func (m *ProofResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ProofResponse) ProtoMessage

func (*ProofResponse) ProtoMessage()

func (*ProofResponse) Reset

func (m *ProofResponse) Reset()

func (*ProofResponse) Size

func (m *ProofResponse) Size() (n int)

func (*ProofResponse) String

func (m *ProofResponse) String() string

func (*ProofResponse) Unmarshal

func (m *ProofResponse) Unmarshal(dAtA []byte) error

func (*ProofResponse) XXX_DiscardUnknown

func (m *ProofResponse) XXX_DiscardUnknown()

func (*ProofResponse) XXX_Marshal

func (m *ProofResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProofResponse) XXX_Merge

func (m *ProofResponse) XXX_Merge(src proto.Message)

func (*ProofResponse) XXX_Size

func (m *ProofResponse) XXX_Size() int

func (*ProofResponse) XXX_Unmarshal

func (m *ProofResponse) XXX_Unmarshal(b []byte) error

type RequestCountProofRequest

type RequestCountProofRequest struct {
}

RequestCountProofRequest is request type for the Service/RequestCountProof RPC method.

func (*RequestCountProofRequest) Descriptor

func (*RequestCountProofRequest) Descriptor() ([]byte, []int)

func (*RequestCountProofRequest) Marshal

func (m *RequestCountProofRequest) Marshal() (dAtA []byte, err error)

func (*RequestCountProofRequest) MarshalTo

func (m *RequestCountProofRequest) MarshalTo(dAtA []byte) (int, error)

func (*RequestCountProofRequest) MarshalToSizedBuffer

func (m *RequestCountProofRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RequestCountProofRequest) ProtoMessage

func (*RequestCountProofRequest) ProtoMessage()

func (*RequestCountProofRequest) Reset

func (m *RequestCountProofRequest) Reset()

func (*RequestCountProofRequest) Size

func (m *RequestCountProofRequest) Size() (n int)

func (*RequestCountProofRequest) String

func (m *RequestCountProofRequest) String() string

func (*RequestCountProofRequest) Unmarshal

func (m *RequestCountProofRequest) Unmarshal(dAtA []byte) error

func (*RequestCountProofRequest) XXX_DiscardUnknown

func (m *RequestCountProofRequest) XXX_DiscardUnknown()

func (*RequestCountProofRequest) XXX_Marshal

func (m *RequestCountProofRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RequestCountProofRequest) XXX_Merge

func (m *RequestCountProofRequest) XXX_Merge(src proto.Message)

func (*RequestCountProofRequest) XXX_Size

func (m *RequestCountProofRequest) XXX_Size() int

func (*RequestCountProofRequest) XXX_Unmarshal

func (m *RequestCountProofRequest) XXX_Unmarshal(b []byte) error

type RequestCountProofResponse

type RequestCountProofResponse struct {
	Height int64            `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Result CountProofResult `protobuf:"bytes,2,opt,name=result,proto3" json:"result"`
}

RequestCountProofResponse is response type for the Service/RequestCountProof RPC method.

func (*RequestCountProofResponse) Descriptor

func (*RequestCountProofResponse) Descriptor() ([]byte, []int)

func (*RequestCountProofResponse) GetHeight

func (m *RequestCountProofResponse) GetHeight() int64

func (*RequestCountProofResponse) GetResult

func (*RequestCountProofResponse) Marshal

func (m *RequestCountProofResponse) Marshal() (dAtA []byte, err error)

func (*RequestCountProofResponse) MarshalTo

func (m *RequestCountProofResponse) MarshalTo(dAtA []byte) (int, error)

func (*RequestCountProofResponse) MarshalToSizedBuffer

func (m *RequestCountProofResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RequestCountProofResponse) ProtoMessage

func (*RequestCountProofResponse) ProtoMessage()

func (*RequestCountProofResponse) Reset

func (m *RequestCountProofResponse) Reset()

func (*RequestCountProofResponse) Size

func (m *RequestCountProofResponse) Size() (n int)

func (*RequestCountProofResponse) String

func (m *RequestCountProofResponse) String() string

func (*RequestCountProofResponse) Unmarshal

func (m *RequestCountProofResponse) Unmarshal(dAtA []byte) error

func (*RequestCountProofResponse) XXX_DiscardUnknown

func (m *RequestCountProofResponse) XXX_DiscardUnknown()

func (*RequestCountProofResponse) XXX_Marshal

func (m *RequestCountProofResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RequestCountProofResponse) XXX_Merge

func (m *RequestCountProofResponse) XXX_Merge(src proto.Message)

func (*RequestCountProofResponse) XXX_Size

func (m *RequestCountProofResponse) XXX_Size() int

func (*RequestCountProofResponse) XXX_Unmarshal

func (m *RequestCountProofResponse) XXX_Unmarshal(b []byte) error

type RequestsCountProof

type RequestsCountProof struct {
	Count       uint64           `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
	Version     uint64           `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
	MerklePaths []IAVLMerklePath `protobuf:"bytes,3,rep,name=merkle_paths,json=merklePaths,proto3" json:"merkle_paths"`
}

RequestsCountProof contains count, version and merkle paths

func (*RequestsCountProof) Descriptor

func (*RequestsCountProof) Descriptor() ([]byte, []int)

func (*RequestsCountProof) GetCount

func (m *RequestsCountProof) GetCount() uint64

func (*RequestsCountProof) GetMerklePaths

func (m *RequestsCountProof) GetMerklePaths() []IAVLMerklePath

func (*RequestsCountProof) GetVersion

func (m *RequestsCountProof) GetVersion() uint64

func (*RequestsCountProof) Marshal

func (m *RequestsCountProof) Marshal() (dAtA []byte, err error)

func (*RequestsCountProof) MarshalTo

func (m *RequestsCountProof) MarshalTo(dAtA []byte) (int, error)

func (*RequestsCountProof) MarshalToSizedBuffer

func (m *RequestsCountProof) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RequestsCountProof) ProtoMessage

func (*RequestsCountProof) ProtoMessage()

func (*RequestsCountProof) Reset

func (m *RequestsCountProof) Reset()

func (*RequestsCountProof) Size

func (m *RequestsCountProof) Size() (n int)

func (*RequestsCountProof) String

func (m *RequestsCountProof) String() string

func (*RequestsCountProof) Unmarshal

func (m *RequestsCountProof) Unmarshal(dAtA []byte) error

func (*RequestsCountProof) XXX_DiscardUnknown

func (m *RequestsCountProof) XXX_DiscardUnknown()

func (*RequestsCountProof) XXX_Marshal

func (m *RequestsCountProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RequestsCountProof) XXX_Merge

func (m *RequestsCountProof) XXX_Merge(src proto.Message)

func (*RequestsCountProof) XXX_Size

func (m *RequestsCountProof) XXX_Size() int

func (*RequestsCountProof) XXX_Unmarshal

func (m *RequestsCountProof) XXX_Unmarshal(b []byte) error

type ResultEthereum

type ResultEthereum struct {
	ClientID       string
	OracleScriptID uint64
	Params         []byte
	AskCount       uint64
	MinCount       uint64
	RequestID      uint64
	AnsCount       uint64
	RequestTime    uint64
	ResolveTime    uint64
	ResolveStatus  uint8
	Result         []byte
}

ResultEthereum is an Ethereum version of Result for solidity ABI-encoding.

type ServiceClient

type ServiceClient interface {
	// Proof queries the proof for given request ID
	Proof(ctx context.Context, in *ProofRequest, opts ...grpc.CallOption) (*ProofResponse, error)
	// MultiProof queries multiple proofs for given list of request IDs
	MultiProof(ctx context.Context, in *MultiProofRequest, opts ...grpc.CallOption) (*MultiProofResponse, error)
	// RequestCountProof queries the count proof
	RequestCountProof(ctx context.Context, in *RequestCountProofRequest, opts ...grpc.CallOption) (*RequestCountProofResponse, error)
}

ServiceClient is the client API for Service service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewServiceClient

func NewServiceClient(cc grpc1.ClientConn) ServiceClient

type ServiceServer

type ServiceServer interface {
	// Proof queries the proof for given request ID
	Proof(context.Context, *ProofRequest) (*ProofResponse, error)
	// MultiProof queries multiple proofs for given list of request IDs
	MultiProof(context.Context, *MultiProofRequest) (*MultiProofResponse, error)
	// RequestCountProof queries the count proof
	RequestCountProof(context.Context, *RequestCountProofRequest) (*RequestCountProofResponse, error)
}

ServiceServer is the server API for Service service.

func NewProofServer

func NewProofServer(clientCtx client.Context, cfg config.Config) ServiceServer

NewProofServer returns new proofServer from provided client.Context

type SingleProof

type SingleProof struct {
	BlockHeight     uint64          `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	OracleDataProof OracleDataProof `protobuf:"bytes,2,opt,name=oracle_data_proof,json=oracleDataProof,proto3" json:"oracle_data_proof"`
	BlockRelayProof BlockRelayProof `protobuf:"bytes,3,opt,name=block_relay_proof,json=blockRelayProof,proto3" json:"block_relay_proof"`
}

SingleProof contains block height, oracle data proof and block relay proof

func (*SingleProof) Descriptor

func (*SingleProof) Descriptor() ([]byte, []int)

func (*SingleProof) GetBlockHeight

func (m *SingleProof) GetBlockHeight() uint64

func (*SingleProof) GetBlockRelayProof

func (m *SingleProof) GetBlockRelayProof() BlockRelayProof

func (*SingleProof) GetOracleDataProof

func (m *SingleProof) GetOracleDataProof() OracleDataProof

func (*SingleProof) Marshal

func (m *SingleProof) Marshal() (dAtA []byte, err error)

func (*SingleProof) MarshalTo

func (m *SingleProof) MarshalTo(dAtA []byte) (int, error)

func (*SingleProof) MarshalToSizedBuffer

func (m *SingleProof) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SingleProof) ProtoMessage

func (*SingleProof) ProtoMessage()

func (*SingleProof) Reset

func (m *SingleProof) Reset()

func (*SingleProof) Size

func (m *SingleProof) Size() (n int)

func (*SingleProof) String

func (m *SingleProof) String() string

func (*SingleProof) Unmarshal

func (m *SingleProof) Unmarshal(dAtA []byte) error

func (*SingleProof) XXX_DiscardUnknown

func (m *SingleProof) XXX_DiscardUnknown()

func (*SingleProof) XXX_Marshal

func (m *SingleProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SingleProof) XXX_Merge

func (m *SingleProof) XXX_Merge(src proto.Message)

func (*SingleProof) XXX_Size

func (m *SingleProof) XXX_Size() int

func (*SingleProof) XXX_Unmarshal

func (m *SingleProof) XXX_Unmarshal(b []byte) error

type SingleProofResult

type SingleProofResult struct {
	Proof         SingleProof                                      `protobuf:"bytes,1,opt,name=proof,proto3" json:"proof"`
	EvmProofBytes github_com_cometbft_cometbft_libs_bytes.HexBytes `` /* 160-byte string literal not displayed */
}

SingleProofResponse is the data structure for response of single proof

func (*SingleProofResult) Descriptor

func (*SingleProofResult) Descriptor() ([]byte, []int)

func (*SingleProofResult) GetEvmProofBytes

func (*SingleProofResult) GetProof

func (m *SingleProofResult) GetProof() SingleProof

func (*SingleProofResult) Marshal

func (m *SingleProofResult) Marshal() (dAtA []byte, err error)

func (*SingleProofResult) MarshalTo

func (m *SingleProofResult) MarshalTo(dAtA []byte) (int, error)

func (*SingleProofResult) MarshalToSizedBuffer

func (m *SingleProofResult) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SingleProofResult) ProtoMessage

func (*SingleProofResult) ProtoMessage()

func (*SingleProofResult) Reset

func (m *SingleProofResult) Reset()

func (*SingleProofResult) Size

func (m *SingleProofResult) Size() (n int)

func (*SingleProofResult) String

func (m *SingleProofResult) String() string

func (*SingleProofResult) Unmarshal

func (m *SingleProofResult) Unmarshal(dAtA []byte) error

func (*SingleProofResult) XXX_DiscardUnknown

func (m *SingleProofResult) XXX_DiscardUnknown()

func (*SingleProofResult) XXX_Marshal

func (m *SingleProofResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SingleProofResult) XXX_Merge

func (m *SingleProofResult) XXX_Merge(src proto.Message)

func (*SingleProofResult) XXX_Size

func (m *SingleProofResult) XXX_Size() int

func (*SingleProofResult) XXX_Unmarshal

func (m *SingleProofResult) XXX_Unmarshal(b []byte) error

type TMSignature

type TMSignature struct {
	R                github_com_cometbft_cometbft_libs_bytes.HexBytes `protobuf:"bytes,1,opt,name=r,proto3,casttype=github.com/cometbft/cometbft/libs/bytes.HexBytes" json:"r,omitempty"`
	S                github_com_cometbft_cometbft_libs_bytes.HexBytes `protobuf:"bytes,2,opt,name=s,proto3,casttype=github.com/cometbft/cometbft/libs/bytes.HexBytes" json:"s,omitempty"`
	V                uint32                                           `protobuf:"varint,3,opt,name=v,proto3" json:"v,omitempty"`
	EncodedTimestamp github_com_cometbft_cometbft_libs_bytes.HexBytes `` /* 167-byte string literal not displayed */
}

TMSignature contains all details of validator signature for performing signer recovery for ECDSA secp256k1 signature. Note that this struct is written specifically for signature signed on Tendermint's precommit data, which includes the block hash and some additional information prepended and appended to the block hash. The prepended part (prefix) and the appended part (suffix) are different for each signer (including signature size, machine clock, validator index, etc).

func (*TMSignature) Descriptor

func (*TMSignature) Descriptor() ([]byte, []int)

func (*TMSignature) GetEncodedTimestamp

func (*TMSignature) GetR

func (*TMSignature) GetS

func (*TMSignature) GetV

func (m *TMSignature) GetV() uint32

func (*TMSignature) Marshal

func (m *TMSignature) Marshal() (dAtA []byte, err error)

func (*TMSignature) MarshalTo

func (m *TMSignature) MarshalTo(dAtA []byte) (int, error)

func (*TMSignature) MarshalToSizedBuffer

func (m *TMSignature) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TMSignature) ProtoMessage

func (*TMSignature) ProtoMessage()

func (*TMSignature) Reset

func (m *TMSignature) Reset()

func (*TMSignature) Size

func (m *TMSignature) Size() (n int)

func (*TMSignature) String

func (m *TMSignature) String() string

func (*TMSignature) Unmarshal

func (m *TMSignature) Unmarshal(dAtA []byte) error

func (*TMSignature) XXX_DiscardUnknown

func (m *TMSignature) XXX_DiscardUnknown()

func (*TMSignature) XXX_Marshal

func (m *TMSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TMSignature) XXX_Merge

func (m *TMSignature) XXX_Merge(src proto.Message)

func (*TMSignature) XXX_Size

func (m *TMSignature) XXX_Size() int

func (*TMSignature) XXX_Unmarshal

func (m *TMSignature) XXX_Unmarshal(b []byte) error

type TMSignatureEthereum

type TMSignatureEthereum struct {
	R                common.Hash
	S                common.Hash
	V                uint8
	EncodedTimestamp []byte
}

TMSignatureEthereum is an Ethereum version of TMSignature for solidity ABI-encoding.

type UnimplementedServiceServer

type UnimplementedServiceServer struct {
}

UnimplementedServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedServiceServer) MultiProof

func (*UnimplementedServiceServer) Proof

func (*UnimplementedServiceServer) RequestCountProof

Jump to

Keyboard shortcuts

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