Trait cardano_serialization_lib::chain_core::property::Fragment
source · [−]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).