Documentation ¶
Overview ¶
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Index ¶
- Constants
- Variables
- func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
- type BlockHeaderMerkleParts
- func (*BlockHeaderMerkleParts) Descriptor() ([]byte, []int)deprecated
- func (x *BlockHeaderMerkleParts) GetEvidenceAndProposerHash() []byte
- func (x *BlockHeaderMerkleParts) GetHeight() uint64
- func (x *BlockHeaderMerkleParts) GetLastBlockIdAndOther() []byte
- func (x *BlockHeaderMerkleParts) GetLastResultsHash() []byte
- func (x *BlockHeaderMerkleParts) GetNextValidatorHashAndConsensusHash() []byte
- func (x *BlockHeaderMerkleParts) GetTimeNanoSecond() uint32
- func (x *BlockHeaderMerkleParts) GetTimeSecond() uint64
- func (x *BlockHeaderMerkleParts) GetVersionAndChainIdHash() []byte
- func (*BlockHeaderMerkleParts) ProtoMessage()
- func (x *BlockHeaderMerkleParts) ProtoReflect() protoreflect.Message
- func (x *BlockHeaderMerkleParts) Reset()
- func (x *BlockHeaderMerkleParts) String() string
- type BlockRelayProof
- func (*BlockRelayProof) Descriptor() ([]byte, []int)deprecated
- func (x *BlockRelayProof) GetBlockHeaderMerkleParts() *BlockHeaderMerkleParts
- func (x *BlockRelayProof) GetCommonEncodedVotePart() *CommonEncodedVotePart
- func (x *BlockRelayProof) GetMultiStoreProof() *MultiStoreProof
- func (x *BlockRelayProof) GetSignatures() []*TMSignature
- func (*BlockRelayProof) ProtoMessage()
- func (x *BlockRelayProof) ProtoReflect() protoreflect.Message
- func (x *BlockRelayProof) Reset()
- func (x *BlockRelayProof) String() string
- type CommonEncodedVotePart
- func (*CommonEncodedVotePart) Descriptor() ([]byte, []int)deprecated
- func (x *CommonEncodedVotePart) GetSignedDataPrefix() []byte
- func (x *CommonEncodedVotePart) GetSignedDataSuffix() []byte
- func (*CommonEncodedVotePart) ProtoMessage()
- func (x *CommonEncodedVotePart) ProtoReflect() protoreflect.Message
- func (x *CommonEncodedVotePart) Reset()
- func (x *CommonEncodedVotePart) String() string
- type CountProof
- func (*CountProof) Descriptor() ([]byte, []int)deprecated
- func (x *CountProof) GetBlockHeight() uint64
- func (x *CountProof) GetBlockRelayProof() *BlockRelayProof
- func (x *CountProof) GetCountProof() *RequestsCountProof
- func (*CountProof) ProtoMessage()
- func (x *CountProof) ProtoReflect() protoreflect.Message
- func (x *CountProof) Reset()
- func (x *CountProof) String() string
- type CountProofResult
- func (*CountProofResult) Descriptor() ([]byte, []int)deprecated
- func (x *CountProofResult) GetEvmProofBytes() []byte
- func (x *CountProofResult) GetProof() *CountProof
- func (*CountProofResult) ProtoMessage()
- func (x *CountProofResult) ProtoReflect() protoreflect.Message
- func (x *CountProofResult) Reset()
- func (x *CountProofResult) String() string
- type IAVLMerklePath
- func (*IAVLMerklePath) Descriptor() ([]byte, []int)deprecated
- func (x *IAVLMerklePath) GetIsDataOnRight() bool
- func (x *IAVLMerklePath) GetSiblingHash() []byte
- func (x *IAVLMerklePath) GetSubtreeHeight() uint32
- func (x *IAVLMerklePath) GetSubtreeSize() uint64
- func (x *IAVLMerklePath) GetSubtreeVersion() uint64
- func (*IAVLMerklePath) ProtoMessage()
- func (x *IAVLMerklePath) ProtoReflect() protoreflect.Message
- func (x *IAVLMerklePath) Reset()
- func (x *IAVLMerklePath) String() string
- type MultiProof
- func (*MultiProof) Descriptor() ([]byte, []int)deprecated
- func (x *MultiProof) GetBlockHeight() uint64
- func (x *MultiProof) GetBlockRelayProof() *BlockRelayProof
- func (x *MultiProof) GetOracleDataMultiProof() []*OracleDataProof
- func (*MultiProof) ProtoMessage()
- func (x *MultiProof) ProtoReflect() protoreflect.Message
- func (x *MultiProof) Reset()
- func (x *MultiProof) String() string
- type MultiProofRequest
- func (*MultiProofRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MultiProofRequest) GetRequestIds() []uint64
- func (*MultiProofRequest) ProtoMessage()
- func (x *MultiProofRequest) ProtoReflect() protoreflect.Message
- func (x *MultiProofRequest) Reset()
- func (x *MultiProofRequest) String() string
- type MultiProofResponse
- func (*MultiProofResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MultiProofResponse) GetHeight() int64
- func (x *MultiProofResponse) GetResult() *MultiProofResult
- func (*MultiProofResponse) ProtoMessage()
- func (x *MultiProofResponse) ProtoReflect() protoreflect.Message
- func (x *MultiProofResponse) Reset()
- func (x *MultiProofResponse) String() string
- type MultiProofResult
- func (*MultiProofResult) Descriptor() ([]byte, []int)deprecated
- func (x *MultiProofResult) GetEvmProofBytes() []byte
- func (x *MultiProofResult) GetProof() *MultiProof
- func (*MultiProofResult) ProtoMessage()
- func (x *MultiProofResult) ProtoReflect() protoreflect.Message
- func (x *MultiProofResult) Reset()
- func (x *MultiProofResult) String() string
- type MultiStoreProof
- func (*MultiStoreProof) Descriptor() ([]byte, []int)deprecated
- func (x *MultiStoreProof) GetAuthToIcahostStoresMerkleHash() []byte
- func (x *MultiStoreProof) GetMintStoreMerkleHash() []byte
- func (x *MultiStoreProof) GetOracleIavlStateHash() []byte
- func (x *MultiStoreProof) GetParamsToRestakeStoresMerkleHash() []byte
- func (x *MultiStoreProof) GetRollingseedToTransferStoresMerkleHash() []byte
- func (x *MultiStoreProof) GetTssToUpgradeStoresMerkleHash() []byte
- func (*MultiStoreProof) ProtoMessage()
- func (x *MultiStoreProof) ProtoReflect() protoreflect.Message
- func (x *MultiStoreProof) Reset()
- func (x *MultiStoreProof) String() string
- type OracleDataProof
- func (*OracleDataProof) Descriptor() ([]byte, []int)deprecated
- func (x *OracleDataProof) GetMerklePaths() []*IAVLMerklePath
- func (x *OracleDataProof) GetResult() *v1.Result
- func (x *OracleDataProof) GetVersion() uint64
- func (*OracleDataProof) ProtoMessage()
- func (x *OracleDataProof) ProtoReflect() protoreflect.Message
- func (x *OracleDataProof) Reset()
- func (x *OracleDataProof) String() string
- type ProofRequest
- func (*ProofRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ProofRequest) GetHeight() int64
- func (x *ProofRequest) GetRequestId() uint64
- func (*ProofRequest) ProtoMessage()
- func (x *ProofRequest) ProtoReflect() protoreflect.Message
- func (x *ProofRequest) Reset()
- func (x *ProofRequest) String() string
- type ProofResponse
- func (*ProofResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ProofResponse) GetHeight() int64
- func (x *ProofResponse) GetResult() *SingleProofResult
- func (*ProofResponse) ProtoMessage()
- func (x *ProofResponse) ProtoReflect() protoreflect.Message
- func (x *ProofResponse) Reset()
- func (x *ProofResponse) String() string
- type RequestCountProofRequest
- type RequestCountProofResponse
- func (*RequestCountProofResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RequestCountProofResponse) GetHeight() int64
- func (x *RequestCountProofResponse) GetResult() *CountProofResult
- func (*RequestCountProofResponse) ProtoMessage()
- func (x *RequestCountProofResponse) ProtoReflect() protoreflect.Message
- func (x *RequestCountProofResponse) Reset()
- func (x *RequestCountProofResponse) String() string
- type RequestsCountProof
- func (*RequestsCountProof) Descriptor() ([]byte, []int)deprecated
- func (x *RequestsCountProof) GetCount() uint64
- func (x *RequestsCountProof) GetMerklePaths() []*IAVLMerklePath
- func (x *RequestsCountProof) GetVersion() uint64
- func (*RequestsCountProof) ProtoMessage()
- func (x *RequestsCountProof) ProtoReflect() protoreflect.Message
- func (x *RequestsCountProof) Reset()
- func (x *RequestsCountProof) String() string
- type ServiceClient
- type ServiceServer
- type SingleProof
- func (*SingleProof) Descriptor() ([]byte, []int)deprecated
- func (x *SingleProof) GetBlockHeight() uint64
- func (x *SingleProof) GetBlockRelayProof() *BlockRelayProof
- func (x *SingleProof) GetOracleDataProof() *OracleDataProof
- func (*SingleProof) ProtoMessage()
- func (x *SingleProof) ProtoReflect() protoreflect.Message
- func (x *SingleProof) Reset()
- func (x *SingleProof) String() string
- type SingleProofResult
- func (*SingleProofResult) Descriptor() ([]byte, []int)deprecated
- func (x *SingleProofResult) GetEvmProofBytes() []byte
- func (x *SingleProofResult) GetProof() *SingleProof
- func (*SingleProofResult) ProtoMessage()
- func (x *SingleProofResult) ProtoReflect() protoreflect.Message
- func (x *SingleProofResult) Reset()
- func (x *SingleProofResult) String() string
- type TMSignature
- func (*TMSignature) Descriptor() ([]byte, []int)deprecated
- func (x *TMSignature) GetEncodedTimestamp() []byte
- func (x *TMSignature) GetR() []byte
- func (x *TMSignature) GetS() []byte
- func (x *TMSignature) GetV() uint32
- func (*TMSignature) ProtoMessage()
- func (x *TMSignature) ProtoReflect() protoreflect.Message
- func (x *TMSignature) Reset()
- func (x *TMSignature) String() string
- type UnimplementedServiceServer
- func (UnimplementedServiceServer) MultiProof(context.Context, *MultiProofRequest) (*MultiProofResponse, error)
- func (UnimplementedServiceServer) Proof(context.Context, *ProofRequest) (*ProofResponse, error)
- func (UnimplementedServiceServer) RequestCountProof(context.Context, *RequestCountProofRequest) (*RequestCountProofResponse, error)
- type UnsafeServiceServer
Constants ¶
const ( Service_Proof_FullMethodName = "/band.base.oracle.v1.Service/Proof" Service_MultiProof_FullMethodName = "/band.base.oracle.v1.Service/MultiProof" Service_RequestCountProof_FullMethodName = "/band.base.oracle.v1.Service/RequestCountProof" )
Variables ¶
var File_band_base_oracle_v1_proof_proto protoreflect.FileDescriptor
var Service_ServiceDesc = grpc.ServiceDesc{ ServiceName: "band.base.oracle.v1.Service", HandlerType: (*ServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Proof", Handler: _Service_Proof_Handler, }, { MethodName: "MultiProof", Handler: _Service_MultiProof_Handler, }, { MethodName: "RequestCountProof", Handler: _Service_RequestCountProof_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "band/base/oracle/v1/proof.proto", }
Service_ServiceDesc is the grpc.ServiceDesc for Service service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterServiceServer ¶
func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
Types ¶
type BlockHeaderMerkleParts ¶
type BlockHeaderMerkleParts struct { VersionAndChainIdHash []byte `` /* 130-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 []byte `protobuf:"bytes,5,opt,name=last_block_id_and_other,json=lastBlockIdAndOther,proto3" json:"last_block_id_and_other,omitempty"` NextValidatorHashAndConsensusHash []byte `` /* 168-byte string literal not displayed */ LastResultsHash []byte `protobuf:"bytes,7,opt,name=last_results_hash,json=lastResultsHash,proto3" json:"last_results_hash,omitempty"` EvidenceAndProposerHash []byte `` /* 134-byte string literal not displayed */ // contains filtered or unexported fields }
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 (*BlockHeaderMerkleParts) Descriptor
deprecated
func (*BlockHeaderMerkleParts) Descriptor() ([]byte, []int)
Deprecated: Use BlockHeaderMerkleParts.ProtoReflect.Descriptor instead.
func (*BlockHeaderMerkleParts) GetEvidenceAndProposerHash ¶
func (x *BlockHeaderMerkleParts) GetEvidenceAndProposerHash() []byte
func (*BlockHeaderMerkleParts) GetHeight ¶
func (x *BlockHeaderMerkleParts) GetHeight() uint64
func (*BlockHeaderMerkleParts) GetLastBlockIdAndOther ¶
func (x *BlockHeaderMerkleParts) GetLastBlockIdAndOther() []byte
func (*BlockHeaderMerkleParts) GetLastResultsHash ¶
func (x *BlockHeaderMerkleParts) GetLastResultsHash() []byte
func (*BlockHeaderMerkleParts) GetNextValidatorHashAndConsensusHash ¶
func (x *BlockHeaderMerkleParts) GetNextValidatorHashAndConsensusHash() []byte
func (*BlockHeaderMerkleParts) GetTimeNanoSecond ¶
func (x *BlockHeaderMerkleParts) GetTimeNanoSecond() uint32
func (*BlockHeaderMerkleParts) GetTimeSecond ¶
func (x *BlockHeaderMerkleParts) GetTimeSecond() uint64
func (*BlockHeaderMerkleParts) GetVersionAndChainIdHash ¶
func (x *BlockHeaderMerkleParts) GetVersionAndChainIdHash() []byte
func (*BlockHeaderMerkleParts) ProtoMessage ¶
func (*BlockHeaderMerkleParts) ProtoMessage()
func (*BlockHeaderMerkleParts) ProtoReflect ¶
func (x *BlockHeaderMerkleParts) ProtoReflect() protoreflect.Message
func (*BlockHeaderMerkleParts) Reset ¶
func (x *BlockHeaderMerkleParts) Reset()
func (*BlockHeaderMerkleParts) String ¶
func (x *BlockHeaderMerkleParts) String() string
type BlockRelayProof ¶
type BlockRelayProof struct { MultiStoreProof *MultiStoreProof `protobuf:"bytes,1,opt,name=multi_store_proof,json=multiStoreProof,proto3" json:"multi_store_proof,omitempty"` BlockHeaderMerkleParts *BlockHeaderMerkleParts `` /* 131-byte string literal not displayed */ CommonEncodedVotePart *CommonEncodedVotePart `` /* 128-byte string literal not displayed */ Signatures []*TMSignature `protobuf:"bytes,4,rep,name=signatures,proto3" json:"signatures,omitempty"` // contains filtered or unexported fields }
BlockRelayProof contains multi store proof, block header merkle parts, common encoded part and signatures
func (*BlockRelayProof) Descriptor
deprecated
func (*BlockRelayProof) Descriptor() ([]byte, []int)
Deprecated: Use BlockRelayProof.ProtoReflect.Descriptor instead.
func (*BlockRelayProof) GetBlockHeaderMerkleParts ¶
func (x *BlockRelayProof) GetBlockHeaderMerkleParts() *BlockHeaderMerkleParts
func (*BlockRelayProof) GetCommonEncodedVotePart ¶
func (x *BlockRelayProof) GetCommonEncodedVotePart() *CommonEncodedVotePart
func (*BlockRelayProof) GetMultiStoreProof ¶
func (x *BlockRelayProof) GetMultiStoreProof() *MultiStoreProof
func (*BlockRelayProof) GetSignatures ¶
func (x *BlockRelayProof) GetSignatures() []*TMSignature
func (*BlockRelayProof) ProtoMessage ¶
func (*BlockRelayProof) ProtoMessage()
func (*BlockRelayProof) ProtoReflect ¶
func (x *BlockRelayProof) ProtoReflect() protoreflect.Message
func (*BlockRelayProof) Reset ¶
func (x *BlockRelayProof) Reset()
func (*BlockRelayProof) String ¶
func (x *BlockRelayProof) String() string
type CommonEncodedVotePart ¶
type CommonEncodedVotePart struct { SignedDataPrefix []byte `protobuf:"bytes,1,opt,name=signed_data_prefix,json=signedDataPrefix,proto3" json:"signed_data_prefix,omitempty"` SignedDataSuffix []byte `protobuf:"bytes,2,opt,name=signed_data_suffix,json=signedDataSuffix,proto3" json:"signed_data_suffix,omitempty"` // contains filtered or unexported fields }
CommonEncodedVotePart represents the common part of encoded vote
func (*CommonEncodedVotePart) Descriptor
deprecated
func (*CommonEncodedVotePart) Descriptor() ([]byte, []int)
Deprecated: Use CommonEncodedVotePart.ProtoReflect.Descriptor instead.
func (*CommonEncodedVotePart) GetSignedDataPrefix ¶
func (x *CommonEncodedVotePart) GetSignedDataPrefix() []byte
func (*CommonEncodedVotePart) GetSignedDataSuffix ¶
func (x *CommonEncodedVotePart) GetSignedDataSuffix() []byte
func (*CommonEncodedVotePart) ProtoMessage ¶
func (*CommonEncodedVotePart) ProtoMessage()
func (*CommonEncodedVotePart) ProtoReflect ¶
func (x *CommonEncodedVotePart) ProtoReflect() protoreflect.Message
func (*CommonEncodedVotePart) Reset ¶
func (x *CommonEncodedVotePart) Reset()
func (*CommonEncodedVotePart) String ¶
func (x *CommonEncodedVotePart) String() string
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,omitempty"` BlockRelayProof *BlockRelayProof `protobuf:"bytes,3,opt,name=block_relay_proof,json=blockRelayProof,proto3" json:"block_relay_proof,omitempty"` // contains filtered or unexported fields }
CountProof contains block height, count proof and block relay proof
func (*CountProof) Descriptor
deprecated
func (*CountProof) Descriptor() ([]byte, []int)
Deprecated: Use CountProof.ProtoReflect.Descriptor instead.
func (*CountProof) GetBlockHeight ¶
func (x *CountProof) GetBlockHeight() uint64
func (*CountProof) GetBlockRelayProof ¶
func (x *CountProof) GetBlockRelayProof() *BlockRelayProof
func (*CountProof) GetCountProof ¶
func (x *CountProof) GetCountProof() *RequestsCountProof
func (*CountProof) ProtoMessage ¶
func (*CountProof) ProtoMessage()
func (*CountProof) ProtoReflect ¶
func (x *CountProof) ProtoReflect() protoreflect.Message
func (*CountProof) Reset ¶
func (x *CountProof) Reset()
func (*CountProof) String ¶
func (x *CountProof) String() string
type CountProofResult ¶
type CountProofResult struct { Proof *CountProof `protobuf:"bytes,1,opt,name=proof,proto3" json:"proof,omitempty"` EvmProofBytes []byte `protobuf:"bytes,2,opt,name=evm_proof_bytes,json=evmProofBytes,proto3" json:"evm_proof_bytes,omitempty"` // contains filtered or unexported fields }
CountProofResult is the data structure for response of count proof
func (*CountProofResult) Descriptor
deprecated
func (*CountProofResult) Descriptor() ([]byte, []int)
Deprecated: Use CountProofResult.ProtoReflect.Descriptor instead.
func (*CountProofResult) GetEvmProofBytes ¶
func (x *CountProofResult) GetEvmProofBytes() []byte
func (*CountProofResult) GetProof ¶
func (x *CountProofResult) GetProof() *CountProof
func (*CountProofResult) ProtoMessage ¶
func (*CountProofResult) ProtoMessage()
func (*CountProofResult) ProtoReflect ¶
func (x *CountProofResult) ProtoReflect() protoreflect.Message
func (*CountProofResult) Reset ¶
func (x *CountProofResult) Reset()
func (*CountProofResult) String ¶
func (x *CountProofResult) String() string
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 []byte `protobuf:"bytes,5,opt,name=sibling_hash,json=siblingHash,proto3" json:"sibling_hash,omitempty"` // contains filtered or unexported fields }
IAVLMerklePath represents a Merkle step to a leaf data node in an iAVL tree.
func (*IAVLMerklePath) Descriptor
deprecated
func (*IAVLMerklePath) Descriptor() ([]byte, []int)
Deprecated: Use IAVLMerklePath.ProtoReflect.Descriptor instead.
func (*IAVLMerklePath) GetIsDataOnRight ¶
func (x *IAVLMerklePath) GetIsDataOnRight() bool
func (*IAVLMerklePath) GetSiblingHash ¶
func (x *IAVLMerklePath) GetSiblingHash() []byte
func (*IAVLMerklePath) GetSubtreeHeight ¶
func (x *IAVLMerklePath) GetSubtreeHeight() uint32
func (*IAVLMerklePath) GetSubtreeSize ¶
func (x *IAVLMerklePath) GetSubtreeSize() uint64
func (*IAVLMerklePath) GetSubtreeVersion ¶
func (x *IAVLMerklePath) GetSubtreeVersion() uint64
func (*IAVLMerklePath) ProtoMessage ¶
func (*IAVLMerklePath) ProtoMessage()
func (*IAVLMerklePath) ProtoReflect ¶
func (x *IAVLMerklePath) ProtoReflect() protoreflect.Message
func (*IAVLMerklePath) Reset ¶
func (x *IAVLMerklePath) Reset()
func (*IAVLMerklePath) String ¶
func (x *IAVLMerklePath) String() string
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,omitempty"` BlockRelayProof *BlockRelayProof `protobuf:"bytes,3,opt,name=block_relay_proof,json=blockRelayProof,proto3" json:"block_relay_proof,omitempty"` // contains filtered or unexported fields }
MultiProof contains block height, list of oracle data proof and block relay proof
func (*MultiProof) Descriptor
deprecated
func (*MultiProof) Descriptor() ([]byte, []int)
Deprecated: Use MultiProof.ProtoReflect.Descriptor instead.
func (*MultiProof) GetBlockHeight ¶
func (x *MultiProof) GetBlockHeight() uint64
func (*MultiProof) GetBlockRelayProof ¶
func (x *MultiProof) GetBlockRelayProof() *BlockRelayProof
func (*MultiProof) GetOracleDataMultiProof ¶
func (x *MultiProof) GetOracleDataMultiProof() []*OracleDataProof
func (*MultiProof) ProtoMessage ¶
func (*MultiProof) ProtoMessage()
func (*MultiProof) ProtoReflect ¶
func (x *MultiProof) ProtoReflect() protoreflect.Message
func (*MultiProof) Reset ¶
func (x *MultiProof) Reset()
func (*MultiProof) String ¶
func (x *MultiProof) String() string
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"` // contains filtered or unexported fields }
MultiProofRequest is request type for the Service/MultiProof RPC method.
func (*MultiProofRequest) Descriptor
deprecated
func (*MultiProofRequest) Descriptor() ([]byte, []int)
Deprecated: Use MultiProofRequest.ProtoReflect.Descriptor instead.
func (*MultiProofRequest) GetRequestIds ¶
func (x *MultiProofRequest) GetRequestIds() []uint64
func (*MultiProofRequest) ProtoMessage ¶
func (*MultiProofRequest) ProtoMessage()
func (*MultiProofRequest) ProtoReflect ¶
func (x *MultiProofRequest) ProtoReflect() protoreflect.Message
func (*MultiProofRequest) Reset ¶
func (x *MultiProofRequest) Reset()
func (*MultiProofRequest) String ¶
func (x *MultiProofRequest) String() string
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,omitempty"` // contains filtered or unexported fields }
MultiProofResponse is response type for the Service/MultiProof RPC method.
func (*MultiProofResponse) Descriptor
deprecated
func (*MultiProofResponse) Descriptor() ([]byte, []int)
Deprecated: Use MultiProofResponse.ProtoReflect.Descriptor instead.
func (*MultiProofResponse) GetHeight ¶
func (x *MultiProofResponse) GetHeight() int64
func (*MultiProofResponse) GetResult ¶
func (x *MultiProofResponse) GetResult() *MultiProofResult
func (*MultiProofResponse) ProtoMessage ¶
func (*MultiProofResponse) ProtoMessage()
func (*MultiProofResponse) ProtoReflect ¶
func (x *MultiProofResponse) ProtoReflect() protoreflect.Message
func (*MultiProofResponse) Reset ¶
func (x *MultiProofResponse) Reset()
func (*MultiProofResponse) String ¶
func (x *MultiProofResponse) String() string
type MultiProofResult ¶
type MultiProofResult struct { Proof *MultiProof `protobuf:"bytes,1,opt,name=proof,proto3" json:"proof,omitempty"` EvmProofBytes []byte `protobuf:"bytes,2,opt,name=evm_proof_bytes,json=evmProofBytes,proto3" json:"evm_proof_bytes,omitempty"` // contains filtered or unexported fields }
MultiProofResult is the data structure for response of multi proof
func (*MultiProofResult) Descriptor
deprecated
func (*MultiProofResult) Descriptor() ([]byte, []int)
Deprecated: Use MultiProofResult.ProtoReflect.Descriptor instead.
func (*MultiProofResult) GetEvmProofBytes ¶
func (x *MultiProofResult) GetEvmProofBytes() []byte
func (*MultiProofResult) GetProof ¶
func (x *MultiProofResult) GetProof() *MultiProof
func (*MultiProofResult) ProtoMessage ¶
func (*MultiProofResult) ProtoMessage()
func (*MultiProofResult) ProtoReflect ¶
func (x *MultiProofResult) ProtoReflect() protoreflect.Message
func (*MultiProofResult) Reset ¶
func (x *MultiProofResult) Reset()
func (*MultiProofResult) String ¶
func (x *MultiProofResult) String() string
type MultiStoreProof ¶
type MultiStoreProof struct { OracleIavlStateHash []byte `protobuf:"bytes,1,opt,name=oracle_iavl_state_hash,json=oracleIavlStateHash,proto3" json:"oracle_iavl_state_hash,omitempty"` MintStoreMerkleHash []byte `protobuf:"bytes,2,opt,name=mint_store_merkle_hash,json=mintStoreMerkleHash,proto3" json:"mint_store_merkle_hash,omitempty"` ParamsToRestakeStoresMerkleHash []byte `` /* 162-byte string literal not displayed */ RollingseedToTransferStoresMerkleHash []byte `` /* 180-byte string literal not displayed */ TssToUpgradeStoresMerkleHash []byte `` /* 153-byte string literal not displayed */ AuthToIcahostStoresMerkleHash []byte `` /* 156-byte string literal not displayed */ // contains filtered or unexported fields }
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 (*MultiStoreProof) Descriptor
deprecated
func (*MultiStoreProof) Descriptor() ([]byte, []int)
Deprecated: Use MultiStoreProof.ProtoReflect.Descriptor instead.
func (*MultiStoreProof) GetAuthToIcahostStoresMerkleHash ¶
func (x *MultiStoreProof) GetAuthToIcahostStoresMerkleHash() []byte
func (*MultiStoreProof) GetMintStoreMerkleHash ¶
func (x *MultiStoreProof) GetMintStoreMerkleHash() []byte
func (*MultiStoreProof) GetOracleIavlStateHash ¶
func (x *MultiStoreProof) GetOracleIavlStateHash() []byte
func (*MultiStoreProof) GetParamsToRestakeStoresMerkleHash ¶
func (x *MultiStoreProof) GetParamsToRestakeStoresMerkleHash() []byte
func (*MultiStoreProof) GetRollingseedToTransferStoresMerkleHash ¶
func (x *MultiStoreProof) GetRollingseedToTransferStoresMerkleHash() []byte
func (*MultiStoreProof) GetTssToUpgradeStoresMerkleHash ¶
func (x *MultiStoreProof) GetTssToUpgradeStoresMerkleHash() []byte
func (*MultiStoreProof) ProtoMessage ¶
func (*MultiStoreProof) ProtoMessage()
func (*MultiStoreProof) ProtoReflect ¶
func (x *MultiStoreProof) ProtoReflect() protoreflect.Message
func (*MultiStoreProof) Reset ¶
func (x *MultiStoreProof) Reset()
func (*MultiStoreProof) String ¶
func (x *MultiStoreProof) String() string
type OracleDataProof ¶
type OracleDataProof struct { Result *v1.Result `protobuf:"bytes,1,opt,name=result,proto3" json:"result,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,omitempty"` // contains filtered or unexported fields }
OracleDataProof contains result, version and merkle paths
func (*OracleDataProof) Descriptor
deprecated
func (*OracleDataProof) Descriptor() ([]byte, []int)
Deprecated: Use OracleDataProof.ProtoReflect.Descriptor instead.
func (*OracleDataProof) GetMerklePaths ¶
func (x *OracleDataProof) GetMerklePaths() []*IAVLMerklePath
func (*OracleDataProof) GetResult ¶
func (x *OracleDataProof) GetResult() *v1.Result
func (*OracleDataProof) GetVersion ¶
func (x *OracleDataProof) GetVersion() uint64
func (*OracleDataProof) ProtoMessage ¶
func (*OracleDataProof) ProtoMessage()
func (*OracleDataProof) ProtoReflect ¶
func (x *OracleDataProof) ProtoReflect() protoreflect.Message
func (*OracleDataProof) Reset ¶
func (x *OracleDataProof) Reset()
func (*OracleDataProof) String ¶
func (x *OracleDataProof) String() string
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"` // contains filtered or unexported fields }
ProofRequest is request type for the Service/Proof RPC method.
func (*ProofRequest) Descriptor
deprecated
func (*ProofRequest) Descriptor() ([]byte, []int)
Deprecated: Use ProofRequest.ProtoReflect.Descriptor instead.
func (*ProofRequest) GetHeight ¶
func (x *ProofRequest) GetHeight() int64
func (*ProofRequest) GetRequestId ¶
func (x *ProofRequest) GetRequestId() uint64
func (*ProofRequest) ProtoMessage ¶
func (*ProofRequest) ProtoMessage()
func (*ProofRequest) ProtoReflect ¶
func (x *ProofRequest) ProtoReflect() protoreflect.Message
func (*ProofRequest) Reset ¶
func (x *ProofRequest) Reset()
func (*ProofRequest) String ¶
func (x *ProofRequest) String() string
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,omitempty"` // contains filtered or unexported fields }
ProofResponse is response type for the Service/Proof RPC method.
func (*ProofResponse) Descriptor
deprecated
func (*ProofResponse) Descriptor() ([]byte, []int)
Deprecated: Use ProofResponse.ProtoReflect.Descriptor instead.
func (*ProofResponse) GetHeight ¶
func (x *ProofResponse) GetHeight() int64
func (*ProofResponse) GetResult ¶
func (x *ProofResponse) GetResult() *SingleProofResult
func (*ProofResponse) ProtoMessage ¶
func (*ProofResponse) ProtoMessage()
func (*ProofResponse) ProtoReflect ¶
func (x *ProofResponse) ProtoReflect() protoreflect.Message
func (*ProofResponse) Reset ¶
func (x *ProofResponse) Reset()
func (*ProofResponse) String ¶
func (x *ProofResponse) String() string
type RequestCountProofRequest ¶
type RequestCountProofRequest struct {
// contains filtered or unexported fields
}
RequestCountProofRequest is request type for the Service/RequestCountProof RPC method.
func (*RequestCountProofRequest) Descriptor
deprecated
func (*RequestCountProofRequest) Descriptor() ([]byte, []int)
Deprecated: Use RequestCountProofRequest.ProtoReflect.Descriptor instead.
func (*RequestCountProofRequest) ProtoMessage ¶
func (*RequestCountProofRequest) ProtoMessage()
func (*RequestCountProofRequest) ProtoReflect ¶
func (x *RequestCountProofRequest) ProtoReflect() protoreflect.Message
func (*RequestCountProofRequest) Reset ¶
func (x *RequestCountProofRequest) Reset()
func (*RequestCountProofRequest) String ¶
func (x *RequestCountProofRequest) String() string
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,omitempty"` // contains filtered or unexported fields }
RequestCountProofResponse is response type for the Service/RequestCountProof RPC method.
func (*RequestCountProofResponse) Descriptor
deprecated
func (*RequestCountProofResponse) Descriptor() ([]byte, []int)
Deprecated: Use RequestCountProofResponse.ProtoReflect.Descriptor instead.
func (*RequestCountProofResponse) GetHeight ¶
func (x *RequestCountProofResponse) GetHeight() int64
func (*RequestCountProofResponse) GetResult ¶
func (x *RequestCountProofResponse) GetResult() *CountProofResult
func (*RequestCountProofResponse) ProtoMessage ¶
func (*RequestCountProofResponse) ProtoMessage()
func (*RequestCountProofResponse) ProtoReflect ¶
func (x *RequestCountProofResponse) ProtoReflect() protoreflect.Message
func (*RequestCountProofResponse) Reset ¶
func (x *RequestCountProofResponse) Reset()
func (*RequestCountProofResponse) String ¶
func (x *RequestCountProofResponse) String() string
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,omitempty"` // contains filtered or unexported fields }
RequestsCountProof contains count, version and merkle paths
func (*RequestsCountProof) Descriptor
deprecated
func (*RequestsCountProof) Descriptor() ([]byte, []int)
Deprecated: Use RequestsCountProof.ProtoReflect.Descriptor instead.
func (*RequestsCountProof) GetCount ¶
func (x *RequestsCountProof) GetCount() uint64
func (*RequestsCountProof) GetMerklePaths ¶
func (x *RequestsCountProof) GetMerklePaths() []*IAVLMerklePath
func (*RequestsCountProof) GetVersion ¶
func (x *RequestsCountProof) GetVersion() uint64
func (*RequestsCountProof) ProtoMessage ¶
func (*RequestsCountProof) ProtoMessage()
func (*RequestsCountProof) ProtoReflect ¶
func (x *RequestsCountProof) ProtoReflect() protoreflect.Message
func (*RequestsCountProof) Reset ¶
func (x *RequestsCountProof) Reset()
func (*RequestsCountProof) String ¶
func (x *RequestsCountProof) String() string
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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewServiceClient ¶
func NewServiceClient(cc grpc.ClientConnInterface) 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) // contains filtered or unexported methods }
ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility
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,omitempty"` BlockRelayProof *BlockRelayProof `protobuf:"bytes,3,opt,name=block_relay_proof,json=blockRelayProof,proto3" json:"block_relay_proof,omitempty"` // contains filtered or unexported fields }
SingleProof contains block height, oracle data proof and block relay proof
func (*SingleProof) Descriptor
deprecated
func (*SingleProof) Descriptor() ([]byte, []int)
Deprecated: Use SingleProof.ProtoReflect.Descriptor instead.
func (*SingleProof) GetBlockHeight ¶
func (x *SingleProof) GetBlockHeight() uint64
func (*SingleProof) GetBlockRelayProof ¶
func (x *SingleProof) GetBlockRelayProof() *BlockRelayProof
func (*SingleProof) GetOracleDataProof ¶
func (x *SingleProof) GetOracleDataProof() *OracleDataProof
func (*SingleProof) ProtoMessage ¶
func (*SingleProof) ProtoMessage()
func (*SingleProof) ProtoReflect ¶
func (x *SingleProof) ProtoReflect() protoreflect.Message
func (*SingleProof) Reset ¶
func (x *SingleProof) Reset()
func (*SingleProof) String ¶
func (x *SingleProof) String() string
type SingleProofResult ¶
type SingleProofResult struct { Proof *SingleProof `protobuf:"bytes,1,opt,name=proof,proto3" json:"proof,omitempty"` EvmProofBytes []byte `protobuf:"bytes,2,opt,name=evm_proof_bytes,json=evmProofBytes,proto3" json:"evm_proof_bytes,omitempty"` // contains filtered or unexported fields }
SingleProofResponse is the data structure for response of single proof
func (*SingleProofResult) Descriptor
deprecated
func (*SingleProofResult) Descriptor() ([]byte, []int)
Deprecated: Use SingleProofResult.ProtoReflect.Descriptor instead.
func (*SingleProofResult) GetEvmProofBytes ¶
func (x *SingleProofResult) GetEvmProofBytes() []byte
func (*SingleProofResult) GetProof ¶
func (x *SingleProofResult) GetProof() *SingleProof
func (*SingleProofResult) ProtoMessage ¶
func (*SingleProofResult) ProtoMessage()
func (*SingleProofResult) ProtoReflect ¶
func (x *SingleProofResult) ProtoReflect() protoreflect.Message
func (*SingleProofResult) Reset ¶
func (x *SingleProofResult) Reset()
func (*SingleProofResult) String ¶
func (x *SingleProofResult) String() string
type TMSignature ¶
type TMSignature struct { R []byte `protobuf:"bytes,1,opt,name=r,proto3" json:"r,omitempty"` S []byte `protobuf:"bytes,2,opt,name=s,proto3" json:"s,omitempty"` V uint32 `protobuf:"varint,3,opt,name=v,proto3" json:"v,omitempty"` EncodedTimestamp []byte `protobuf:"bytes,4,opt,name=encoded_timestamp,json=encodedTimestamp,proto3" json:"encoded_timestamp,omitempty"` // contains filtered or unexported fields }
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
deprecated
func (*TMSignature) Descriptor() ([]byte, []int)
Deprecated: Use TMSignature.ProtoReflect.Descriptor instead.
func (*TMSignature) GetEncodedTimestamp ¶
func (x *TMSignature) GetEncodedTimestamp() []byte
func (*TMSignature) GetR ¶
func (x *TMSignature) GetR() []byte
func (*TMSignature) GetS ¶
func (x *TMSignature) GetS() []byte
func (*TMSignature) GetV ¶
func (x *TMSignature) GetV() uint32
func (*TMSignature) ProtoMessage ¶
func (*TMSignature) ProtoMessage()
func (*TMSignature) ProtoReflect ¶
func (x *TMSignature) ProtoReflect() protoreflect.Message
func (*TMSignature) Reset ¶
func (x *TMSignature) Reset()
func (*TMSignature) String ¶
func (x *TMSignature) String() string
type UnimplementedServiceServer ¶
type UnimplementedServiceServer struct { }
UnimplementedServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedServiceServer) MultiProof ¶
func (UnimplementedServiceServer) MultiProof(context.Context, *MultiProofRequest) (*MultiProofResponse, error)
func (UnimplementedServiceServer) Proof ¶
func (UnimplementedServiceServer) Proof(context.Context, *ProofRequest) (*ProofResponse, error)
func (UnimplementedServiceServer) RequestCountProof ¶
func (UnimplementedServiceServer) RequestCountProof(context.Context, *RequestCountProofRequest) (*RequestCountProofResponse, error)
type UnsafeServiceServer ¶
type UnsafeServiceServer interface {
// contains filtered or unexported methods
}
UnsafeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceServer will result in compilation errors.