synedrion

Trait ProtocolResult

Source
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§

Source

type Success

The result obtained on successful termination of the protocol.

Source

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.

Source

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.

Implementors§

Source§

impl<P: SchemeParams, I: Ord + Debug> ProtocolResult for KeyResharingResult<P, I>

Source§

impl<P: SchemeParams, I: Debug + Ord> ProtocolResult for AuxGenResult<P, I>

Source§

impl<P: SchemeParams, I: Debug + Ord> ProtocolResult for KeyGenResult<P, I>

Source§

impl<P: SchemeParams, I: Debug + Ord> ProtocolResult for KeyInitResult<P, I>

Source§

impl<P: SchemeParams, I: Debug + Ord> ProtocolResult for KeyRefreshResult<P, I>

Source§

type Success = (KeyShareChange<P, I>, AuxInfo<P, I>)

Source§

type ProvableError = KeyRefreshError<P>

Source§

type CorrectnessProof = ()

Source§

impl<P: SchemeParams, I: Debug> ProtocolResult for InteractiveSigningResult<P, I>

Source§

impl<P: SchemeParams, I: Debug> ProtocolResult for PresigningResult<P, I>

Source§

impl<P: SchemeParams, I: Debug> ProtocolResult for SigningResult<P, I>