Skip to main content

RawEvent

Type Alias RawEvent 

Source
pub type RawEvent = MerkleNode<EventBody>;
Expand description

Foreign bytes decode to this untrusted Merkle node before Event::admit.

Aliased Type§

pub struct RawEvent {
    pub payload: EventBody,
    pub parents: BTreeSet<ContentId>,
}

Fields§

§payload: EventBody

The node’s content.

The field key string "payload" is load-bearing for the node’s id and part of the (non-frozen) byte layout — see the module docs.

§parents: BTreeSet<ContentId>

The causal parent links, as a deterministically-ordered, deduplicated set of [ContentId]s.

Each element serializes as a dag-cbor tag-42 link. The field key string "parents" is load-bearing for the node’s id and part of the (non-frozen) byte layout — see the module docs.