proof

package
v0.7.32 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: GPL-3.0 Imports: 43 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 tmproto.SignedMsgType, height int64, round int64) ([]byte, error)

func GetSignaturesAndPrefix

func GetSignaturesAndPrefix(info *types.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)

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 CountProofResponse

type CountProofResponse 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 */
}

CountProofResponse is the data structure for response of count proof

func (*CountProofResponse) Descriptor

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

func (*CountProofResponse) GetEvmProofBytes

func (*CountProofResponse) GetProof

func (m *CountProofResponse) GetProof() CountProof

func (*CountProofResponse) Marshal

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

func (*CountProofResponse) MarshalTo

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

func (*CountProofResponse) MarshalToSizedBuffer

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

func (*CountProofResponse) ProtoMessage

func (*CountProofResponse) ProtoMessage()

func (*CountProofResponse) Reset

func (m *CountProofResponse) Reset()

func (*CountProofResponse) Size

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

func (*CountProofResponse) String

func (m *CountProofResponse) String() string

func (*CountProofResponse) Unmarshal

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

func (*CountProofResponse) XXX_DiscardUnknown

func (m *CountProofResponse) XXX_DiscardUnknown()

func (*CountProofResponse) XXX_Marshal

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

func (*CountProofResponse) XXX_Merge

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

func (*CountProofResponse) XXX_Size

func (m *CountProofResponse) XXX_Size() int

func (*CountProofResponse) XXX_Unmarshal

func (m *CountProofResponse) 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 MultiProofResponse

type MultiProofResponse 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 */
}

MultiProofResponse is the data structure for response of multi proof

func (*MultiProofResponse) Descriptor

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

func (*MultiProofResponse) GetEvmProofBytes

func (*MultiProofResponse) GetProof

func (m *MultiProofResponse) GetProof() MultiProof

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 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 */
	ParamsToSlashingStoresMerkleHash github_com_cometbft_cometbft_libs_bytes.HexBytes `` /* 223-byte string literal not displayed */
	GovToIcahostStoresMerkleHash     github_com_cometbft_cometbft_libs_bytes.HexBytes `` /* 211-byte string literal not displayed */
	AuthToFeegrantStoresMerkleHash   github_com_cometbft_cometbft_libs_bytes.HexBytes `` /* 217-byte string literal not displayed */
	StakingToUpgradeStoresMerkleHash github_com_cometbft_cometbft_libs_bytes.HexBytes `` /* 223-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]_________________________
                                          /                                                  \
                      _________________[N15]_________________                             __[N16]___
                     /                                        \                          /          \
          _______[N12]______                          _______[N13]________             [N14]        [I]
         /                  \                        /                    \           /     \
    __[N8]__             __[N9]__                __[N10]__              __[N11]__    [G]   [H]
   /         \          /         \            /          \            /         \
  [N0]       [N1]      [N2]       [N3]       [N4]        [N5]         [N6]       [N7]
/     \     /    \    /    \     /     \     /     \     /     \     /     \     /    \

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

[0] - acc (auth) [1] - authz [2] - bank [3] - capability [4] - crisis [5] - dist [6] - evidence [7] - feegrant [8] - gov [9] - group [A] - ibccore [B] - icahost [C] - mint [D] - oracle [E] - params [F] - slashing [G] - staking [H] - transfer [I] - 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 [D] In fact, only [C], [N7], [N10], [N12], and [N16] 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) GetAuthToFeegrantStoresMerkleHash

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

func (*MultiStoreProof) GetGovToIcahostStoresMerkleHash

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

func (*MultiStoreProof) GetMintStoreMerkleHash

func (*MultiStoreProof) GetOracleIAVLStateHash

func (*MultiStoreProof) GetParamsToSlashingStoresMerkleHash

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

func (*MultiStoreProof) GetStakingToUpgradeStoresMerkleHash

func (m *MultiStoreProof) GetStakingToUpgradeStoresMerkleHash() 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
	ParamsToSlashingStoresMerkleHash common.Hash
	GovToIcahostStoresMerkleHash     common.Hash
	AuthToFeegrantStoresMerkleHash   common.Hash
	StakingToUpgradeStoresMerkleHash 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 QueryMultiProofRequest

type QueryMultiProofRequest 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"`
}

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

func (*QueryMultiProofRequest) Descriptor

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

func (*QueryMultiProofRequest) GetRequestIds

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

func (*QueryMultiProofRequest) Marshal

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

func (*QueryMultiProofRequest) MarshalTo

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

func (*QueryMultiProofRequest) MarshalToSizedBuffer

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

func (*QueryMultiProofRequest) ProtoMessage

func (*QueryMultiProofRequest) ProtoMessage()

func (*QueryMultiProofRequest) Reset

func (m *QueryMultiProofRequest) Reset()

func (*QueryMultiProofRequest) Size

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

func (*QueryMultiProofRequest) String

func (m *QueryMultiProofRequest) String() string

func (*QueryMultiProofRequest) Unmarshal

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

func (*QueryMultiProofRequest) XXX_DiscardUnknown

func (m *QueryMultiProofRequest) XXX_DiscardUnknown()

func (*QueryMultiProofRequest) XXX_Marshal

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

func (*QueryMultiProofRequest) XXX_Merge

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

func (*QueryMultiProofRequest) XXX_Size

func (m *QueryMultiProofRequest) XXX_Size() int

func (*QueryMultiProofRequest) XXX_Unmarshal

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

type QueryMultiProofResponse

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

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

func (*QueryMultiProofResponse) Descriptor

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

func (*QueryMultiProofResponse) GetHeight

func (m *QueryMultiProofResponse) GetHeight() int64

func (*QueryMultiProofResponse) GetResult

func (*QueryMultiProofResponse) Marshal

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

func (*QueryMultiProofResponse) MarshalTo

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

func (*QueryMultiProofResponse) MarshalToSizedBuffer

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

func (*QueryMultiProofResponse) ProtoMessage

func (*QueryMultiProofResponse) ProtoMessage()

func (*QueryMultiProofResponse) Reset

func (m *QueryMultiProofResponse) Reset()

func (*QueryMultiProofResponse) Size

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

func (*QueryMultiProofResponse) String

func (m *QueryMultiProofResponse) String() string

func (*QueryMultiProofResponse) Unmarshal

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

func (*QueryMultiProofResponse) XXX_DiscardUnknown

func (m *QueryMultiProofResponse) XXX_DiscardUnknown()

func (*QueryMultiProofResponse) XXX_Marshal

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

func (*QueryMultiProofResponse) XXX_Merge

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

func (*QueryMultiProofResponse) XXX_Size

func (m *QueryMultiProofResponse) XXX_Size() int

func (*QueryMultiProofResponse) XXX_Unmarshal

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

type QueryProofRequest

type QueryProofRequest 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"`
}

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

func (*QueryProofRequest) Descriptor

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

func (*QueryProofRequest) GetHeight

func (m *QueryProofRequest) GetHeight() int64

func (*QueryProofRequest) GetRequestId

func (m *QueryProofRequest) GetRequestId() uint64

func (*QueryProofRequest) Marshal

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

func (*QueryProofRequest) MarshalTo

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

func (*QueryProofRequest) MarshalToSizedBuffer

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

func (*QueryProofRequest) ProtoMessage

func (*QueryProofRequest) ProtoMessage()

func (*QueryProofRequest) Reset

func (m *QueryProofRequest) Reset()

func (*QueryProofRequest) Size

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

func (*QueryProofRequest) String

func (m *QueryProofRequest) String() string

func (*QueryProofRequest) Unmarshal

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

func (*QueryProofRequest) XXX_DiscardUnknown

func (m *QueryProofRequest) XXX_DiscardUnknown()

func (*QueryProofRequest) XXX_Marshal

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

func (*QueryProofRequest) XXX_Merge

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

func (*QueryProofRequest) XXX_Size

func (m *QueryProofRequest) XXX_Size() int

func (*QueryProofRequest) XXX_Unmarshal

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

type QueryProofResponse

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

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

func (*QueryProofResponse) Descriptor

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

func (*QueryProofResponse) GetHeight

func (m *QueryProofResponse) GetHeight() int64

func (*QueryProofResponse) GetResult

func (m *QueryProofResponse) GetResult() SingleProofResponse

func (*QueryProofResponse) Marshal

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

func (*QueryProofResponse) MarshalTo

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

func (*QueryProofResponse) MarshalToSizedBuffer

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

func (*QueryProofResponse) ProtoMessage

func (*QueryProofResponse) ProtoMessage()

func (*QueryProofResponse) Reset

func (m *QueryProofResponse) Reset()

func (*QueryProofResponse) Size

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

func (*QueryProofResponse) String

func (m *QueryProofResponse) String() string

func (*QueryProofResponse) Unmarshal

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

func (*QueryProofResponse) XXX_DiscardUnknown

func (m *QueryProofResponse) XXX_DiscardUnknown()

func (*QueryProofResponse) XXX_Marshal

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

func (*QueryProofResponse) XXX_Merge

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

func (*QueryProofResponse) XXX_Size

func (m *QueryProofResponse) XXX_Size() int

func (*QueryProofResponse) XXX_Unmarshal

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

type QueryRequestCountProofRequest

type QueryRequestCountProofRequest struct {
}

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

func (*QueryRequestCountProofRequest) Descriptor

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

func (*QueryRequestCountProofRequest) Marshal

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

func (*QueryRequestCountProofRequest) MarshalTo

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

func (*QueryRequestCountProofRequest) MarshalToSizedBuffer

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

func (*QueryRequestCountProofRequest) ProtoMessage

func (*QueryRequestCountProofRequest) ProtoMessage()

func (*QueryRequestCountProofRequest) Reset

func (m *QueryRequestCountProofRequest) Reset()

func (*QueryRequestCountProofRequest) Size

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

func (*QueryRequestCountProofRequest) String

func (*QueryRequestCountProofRequest) Unmarshal

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

func (*QueryRequestCountProofRequest) XXX_DiscardUnknown

func (m *QueryRequestCountProofRequest) XXX_DiscardUnknown()

func (*QueryRequestCountProofRequest) XXX_Marshal

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

func (*QueryRequestCountProofRequest) XXX_Merge

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

func (*QueryRequestCountProofRequest) XXX_Size

func (m *QueryRequestCountProofRequest) XXX_Size() int

func (*QueryRequestCountProofRequest) XXX_Unmarshal

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

type QueryRequestCountProofResponse

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

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

func (*QueryRequestCountProofResponse) Descriptor

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

func (*QueryRequestCountProofResponse) GetHeight

func (m *QueryRequestCountProofResponse) GetHeight() int64

func (*QueryRequestCountProofResponse) GetResult

func (*QueryRequestCountProofResponse) Marshal

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

func (*QueryRequestCountProofResponse) MarshalTo

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

func (*QueryRequestCountProofResponse) MarshalToSizedBuffer

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

func (*QueryRequestCountProofResponse) ProtoMessage

func (*QueryRequestCountProofResponse) ProtoMessage()

func (*QueryRequestCountProofResponse) Reset

func (m *QueryRequestCountProofResponse) Reset()

func (*QueryRequestCountProofResponse) Size

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

func (*QueryRequestCountProofResponse) String

func (*QueryRequestCountProofResponse) Unmarshal

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

func (*QueryRequestCountProofResponse) XXX_DiscardUnknown

func (m *QueryRequestCountProofResponse) XXX_DiscardUnknown()

func (*QueryRequestCountProofResponse) XXX_Marshal

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

func (*QueryRequestCountProofResponse) XXX_Merge

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

func (*QueryRequestCountProofResponse) XXX_Size

func (m *QueryRequestCountProofResponse) XXX_Size() int

func (*QueryRequestCountProofResponse) XXX_Unmarshal

func (m *QueryRequestCountProofResponse) 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 *QueryProofRequest, opts ...grpc.CallOption) (*QueryProofResponse, error)
	// MultiProof queries multiple proofs for given list of request IDs
	MultiProof(ctx context.Context, in *QueryMultiProofRequest, opts ...grpc.CallOption) (*QueryMultiProofResponse, error)
	// RequestCountProof queries the count proof
	RequestCountProof(ctx context.Context, in *QueryRequestCountProofRequest, opts ...grpc.CallOption) (*QueryRequestCountProofResponse, 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, *QueryProofRequest) (*QueryProofResponse, error)
	// MultiProof queries multiple proofs for given list of request IDs
	MultiProof(context.Context, *QueryMultiProofRequest) (*QueryMultiProofResponse, error)
	// RequestCountProof queries the count proof
	RequestCountProof(context.Context, *QueryRequestCountProofRequest) (*QueryRequestCountProofResponse, error)
}

ServiceServer is the server API for Service service.

func NewProofServer

func NewProofServer(clientCtx client.Context) 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 SingleProofResponse

type SingleProofResponse 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 (*SingleProofResponse) Descriptor

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

func (*SingleProofResponse) GetEvmProofBytes

func (*SingleProofResponse) GetProof

func (m *SingleProofResponse) GetProof() SingleProof

func (*SingleProofResponse) Marshal

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

func (*SingleProofResponse) MarshalTo

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

func (*SingleProofResponse) MarshalToSizedBuffer

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

func (*SingleProofResponse) ProtoMessage

func (*SingleProofResponse) ProtoMessage()

func (*SingleProofResponse) Reset

func (m *SingleProofResponse) Reset()

func (*SingleProofResponse) Size

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

func (*SingleProofResponse) String

func (m *SingleProofResponse) String() string

func (*SingleProofResponse) Unmarshal

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

func (*SingleProofResponse) XXX_DiscardUnknown

func (m *SingleProofResponse) XXX_DiscardUnknown()

func (*SingleProofResponse) XXX_Marshal

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

func (*SingleProofResponse) XXX_Merge

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

func (*SingleProofResponse) XXX_Size

func (m *SingleProofResponse) XXX_Size() int

func (*SingleProofResponse) XXX_Unmarshal

func (m *SingleProofResponse) 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