cosmos/evidence

Table of Contents

cosmos/evidence/v1beta1/evidence.proto

Top

Equivocation

Equivocation implements the Evidence interface and defines evidence of double

signing misbehavior.

FieldTypeLabelDescription
height int64

time google.protobuf.Timestamp

power int64

consensus_address string

cosmos/evidence/v1beta1/query.proto

Top

QueryAllEvidenceRequest

QueryEvidenceRequest is the request type for the Query/AllEvidence RPC

method.

FieldTypeLabelDescription
pagination cosmos.base.query.v1beta1.PageRequest

pagination defines an optional pagination for the request.

QueryAllEvidenceResponse

QueryAllEvidenceResponse is the response type for the Query/AllEvidence RPC

method.

FieldTypeLabelDescription
evidence google.protobuf.Any repeated

evidence returns all evidences.

pagination cosmos.base.query.v1beta1.PageResponse

pagination defines the pagination in the response.

QueryEvidenceRequest

QueryEvidenceRequest is the request type for the Query/Evidence RPC method.

FieldTypeLabelDescription
evidence_hash bytes

evidence_hash defines the hash of the requested evidence.

QueryEvidenceResponse

QueryEvidenceResponse is the response type for the Query/Evidence RPC method.

FieldTypeLabelDescription
evidence google.protobuf.Any

evidence returns the requested evidence.

Query

Query defines the gRPC querier service.

Method NameRequest TypeResponse TypeDescription
Evidence QueryEvidenceRequest QueryEvidenceResponse

Evidence queries evidence based on evidence hash.

AllEvidence QueryAllEvidenceRequest QueryAllEvidenceResponse

AllEvidence queries all evidence.

Methods with HTTP bindings

Method Name Method Pattern Body
Evidence GET /cosmos/evidence/v1beta1/evidence/{evidence_hash}
AllEvidence GET /cosmos/evidence/v1beta1/evidence

cosmos/evidence/v1beta1/genesis.proto

Top

GenesisState

GenesisState defines the evidence module's genesis state.

FieldTypeLabelDescription
evidence google.protobuf.Any repeated

evidence defines all the evidence at genesis.

cosmos/evidence/v1beta1/tx.proto

Top

MsgSubmitEvidence

MsgSubmitEvidence represents a message that supports submitting arbitrary

Evidence of misbehavior such as equivocation or counterfactual signing.

FieldTypeLabelDescription
submitter string

evidence google.protobuf.Any

MsgSubmitEvidenceResponse

MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type.

FieldTypeLabelDescription
hash bytes

hash defines the hash of the evidence.

Msg

Msg defines the evidence Msg service.

Method NameRequest TypeResponse TypeDescription
SubmitEvidence MsgSubmitEvidence MsgSubmitEvidenceResponse

SubmitEvidence submits an arbitrary Evidence of misbehavior such as equivocation or counterfactual signing.

Scalar Value Types

.proto Type Notes Python Type
double float
float float
int32 Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. int
int64 Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. int/long
uint32 Uses variable-length encoding. int/long
uint64 Uses variable-length encoding. int/long
sint32 Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. int
sint64 Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. int/long
fixed32 Always four bytes. More efficient than uint32 if values are often greater than 2^28. int
fixed64 Always eight bytes. More efficient than uint64 if values are often greater than 2^56. int/long
sfixed32 Always four bytes. int
sfixed64 Always eight bytes. int/long
bool boolean
string A string must always contain UTF-8 encoded or 7-bit ASCII text. str/unicode
bytes May contain any arbitrary sequence of bytes. str