pub struct ChannelEvent {
pub seq: u64,
pub ts: DateTime<Utc>,
pub actor: ChannelActor,
pub kind: EventKind,
pub payload: Value,
pub idempotency_key: Option<String>,
pub sig: Option<String>,
pub key_version: Option<u32>,
pub prev_hash: Option<String>,
}Expand description
One append-only line in ~/.mur/channels/<id>/events.jsonl.
Fields§
§seq: u64§ts: DateTime<Utc>§actor: ChannelActor§kind: EventKind§payload: Value§idempotency_key: Option<String>§sig: Option<String>Detached Ed25519 signature (multibase) by the channel’s WRITER over the
canonical sign-input {v, channel_id, actor, kind, payload, idempotency_key} — EXCLUDING the store-assigned seq/ts (see
mur-channel sign::sign_input). None for legacy/unsigned events.
key_version: Option<u32>RESERVED — key version for the signing key (v3d).
prev_hash: Option<String>Hex SHA-256 of the previous raw line in events.jsonl (or the genesis
constant for the first line). Set only on sig-input v2 events, which
sign over it; None for v1 (externally signed) and unsigned events.
Implementations§
Source§impl ChannelEvent
impl ChannelEvent
Sourcepub fn is_human_message(&self) -> bool
pub fn is_human_message(&self) -> bool
True for a human-authored Message: something the user typed. Other
human kinds (OwnerKeyEnrolled, HitlResponse, Retract) are control
lines, so a history reader that replays or previews human turns takes
only these (at-mention phase 2, C7).