referrerpolicy=no-referrer-when-downgrade

Module offence

Source
Expand description

Common traits and types that are useful for describing offences for usage in environments that use staking.

Structs§

OffenceDetails
A details about an offending authority for a particular kind of offence.
OffenceSeverity
Wrapper type representing the severity of an offence.

Enums§

OffenceError
Errors that may happen on offence reports.

Traits§

Offence
A trait implemented by an offence report.
OffenceReportSystem
An abstract system to publish, check and process offence evidences.
OnOffenceHandler
A trait to take action on an offence.
ReportOffence
A trait for decoupling offence reporters from the actual handling of offence reports.

Type Aliases§

Kind
The kind of an offence, is a byte string representing some kind identifier e.g. b"im-online:offlin", b"babe:equivocatio"
OffenceCount
Number of times the offence of this authority was already reported in the past.