cosmos/evidence
Table of Contents
cosmos/evidence/v1beta1/evidence.proto
TopEquivocation
Equivocation implements the Evidence interface and defines evidence of double
signing misbehavior.
Field | Type | Label | Description |
height | int64 |
|
|
time | google.protobuf.Timestamp |
|
|
power | int64 |
|
|
consensus_address | string |
|
cosmos/evidence/v1beta1/query.proto
TopQueryAllEvidenceRequest
QueryEvidenceRequest is the request type for the Query/AllEvidence RPC
method.
Field | Type | Label | Description |
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.
Field | Type | Label | Description |
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.
Field | Type | Label | Description |
evidence_hash | bytes | evidence_hash defines the hash of the requested evidence. |
QueryEvidenceResponse
QueryEvidenceResponse is the response type for the Query/Evidence RPC method.
Field | Type | Label | Description |
evidence | google.protobuf.Any | evidence returns the requested evidence. |
Query
Query defines the gRPC querier service.
Method Name | Request Type | Response Type | Description |
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
TopGenesisState
GenesisState defines the evidence module's genesis state.
Field | Type | Label | Description |
evidence | google.protobuf.Any | repeated | evidence defines all the evidence at genesis. |
cosmos/evidence/v1beta1/tx.proto
TopMsgSubmitEvidence
MsgSubmitEvidence represents a message that supports submitting arbitrary
Evidence of misbehavior such as equivocation or counterfactual signing.
Field | Type | Label | Description |
submitter | string |
|
|
evidence | google.protobuf.Any |
|
MsgSubmitEvidenceResponse
MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type.
Field | Type | Label | Description |
hash | bytes | hash defines the hash of the evidence. |
Msg
Msg defines the evidence Msg service.
Method Name | Request Type | Response Type | Description |
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 |