pub trait Fragment: Serialize + Deserialize {
    type Id: FragmentId;
    fn id(&self) -> Self::Id;
}
Expand description

A fragment is some item contained in a block, such as a transaction, a delegation-related certificate, an update proposal, and so on. Fragments can be serialized (so that they can be concatenated to form a binary block( and have a unique ID (typically the hash of their serialization).

Associated Types

Required methods

Return the message’s identifier.

Implementors