-
Notifications
You must be signed in to change notification settings - Fork 255
Expand file tree
/
Copy pathevidence.go
More file actions
21 lines (18 loc) · 795 Bytes
/
evidence.go
File metadata and controls
21 lines (18 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package types
import (
"time"
// TODO: either copy the vanilla abci types (or the protos) into this repo
// or, import the vanilla tendermint types instead.
abci "github.com/lazyledger/lazyledger-core/abci/types"
)
// Evidence represents any provable malicious activity by a validator.
// Verification logic for each evidence is part of the evidence module.
type Evidence interface {
ABCI() []abci.Evidence // forms individual evidence to be sent to the application
Bytes() []byte // bytes which comprise the evidence
Hash() []byte // hash of the evidence
Height() int64 // height of the infraction
String() string // string format of the evidence
Time() time.Time // time of the infraction
ValidateBasic() error // basic consistency check
}