pub trait ProtocolResult: Debug {
type Success;
type ProvableError: Debug;
type CorrectnessProof: Debug;
}
Expand description
Typed outcomes of a protocol, specific for each protocol (in addition to non-specific errors common for all protocols).
Required Associated Types§
Sourcetype ProvableError: Debug
type ProvableError: Debug
A collection of data which, in combination with the messages received, can be used to prove malicious behavior of a remote node.
Sourcetype CorrectnessProof: Debug
type CorrectnessProof: Debug
A collection of data which, in combination with the messages received, can be used to prove correct behavior of this node.
That is, on errors where the culprit cannot be immediately identified, each node will have to provide the correctness proof for itself.