Skip to main content
logo

evidence

The evidence module is responsible for the submission and handling of arbitrary evidence of misbehavior such as equivocation and counterfactual signing.

For more information, visit https://docs.cosmos.network/main/modules/evidence

Message Types

Msg defines the evidence Msg service.

tx.proto
Copy

_5
service Msg {
_5
// SubmitEvidence submits an arbitrary Evidence of misbehavior such as equivocation or
_5
// counterfactual signing.
_5
rpc SubmitEvidence(MsgSubmitEvidence) returns (MsgSubmitEvidenceResponse);
_5
}

MsgSubmitEvidence

MsgSubmitEvidence represents a message that supports submitting arbitrary Evidence of misbehavior such as equivocation or counterfactual signing.

tx.proto
Copy

_9
message MsgSubmitEvidence {
_9
option (cosmos.msg.v1.signer) = "submitter";
_9
_9
option (gogoproto.equal) = false;
_9
option (gogoproto.goproto_getters) = false;
_9
_9
string submitter = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
_9
google.protobuf.Any evidence = 2 [(cosmos_proto.accepts_interface) = "Evidence"];
_9
}

MsgSubmitEvidenceResponse

MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type.

tx.proto
Copy

_4
message MsgSubmitEvidenceResponse {
_4
// hash defines the hash of the evidence.
_4
bytes hash = 4;
_4
}

Queries

Query defines the gRPC querier service.

query.proto
Copy

_11
service Query {
_11
// Evidence queries evidence based on evidence hash.
_11
rpc Evidence(QueryEvidenceRequest) returns (QueryEvidenceResponse) {
_11
option (google.api.http).get = "/cosmos/evidence/v1beta1/evidence/{evidence_hash}";
_11
}
_11
_11
// AllEvidence queries all evidence.
_11
rpc AllEvidence(QueryAllEvidenceRequest) returns (QueryAllEvidenceResponse) {
_11
option (google.api.http).get = "/cosmos/evidence/v1beta1/evidence";
_11
}
_11
}

QueryEvidenceRequest

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

query.proto
Copy

_4
message QueryEvidenceRequest {
_4
// evidence_hash defines the hash of the requested evidence.
_4
bytes evidence_hash = 1 [(gogoproto.casttype) = "github.com/tendermint/tendermint/libs/bytes.HexBytes"];
_4
}

QueryEvidenceResponse

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

query.proto
Copy

_4
message QueryEvidenceResponse {
_4
// evidence returns the requested evidence.
_4
google.protobuf.Any evidence = 1;
_4
}

QueryEvidenceRequest

QueryEvidenceRequest is the request type for the Query/AllEvidence RPC

query.proto
Copy

_4
message QueryAllEvidenceRequest {
_4
// pagination defines an optional pagination for the request.
_4
cosmos.base.query.v1beta1.PageRequest pagination = 1;
_4
}

QueryAllEvidenceResponse

QueryAllEvidenceResponse is the response type for the Query/AllEvidence RPC method.

query.proto
Copy

_7
message QueryAllEvidenceResponse {
_7
// evidence returns all evidences.
_7
repeated google.protobuf.Any evidence = 1;
_7
_7
// pagination defines the pagination in the response.
_7
cosmos.base.query.v1beta1.PageResponse pagination = 2;
_7
}