04 — Convergence
Nexus
Multi-writer convergence without chain finality. Define a view over many Strands — Nexus orders, dedupes, and exposes it as a single deterministic feed. Governance is a per-view contract, not a global protocol.
A closer lookSeparate histories. A coherent view.
Writer histories contribute to an ordered view, under rules chosen by the application.
- 01Read each history
- 02Apply the ordering rules
- 03Build a common view
01 — Concepts
01
Define a view over many writer Strands.
02
Deterministic ordering and dedup per-view.
03
Per-view governance — not a global protocol.
04
No chain finality required.
02 — Code
A handful of lines.
use nexus::{Nexus, ViewSpec};
let view = Nexus::open(ViewSpec::new("team/feed")
.add_writer(alice_pk)
.add_writer(bob_pk)
.order_by(nexus::OrderBy::SignedTime))
.await?;
for evt in view.iter().take(50) {
println!("{} → {:?}", evt.signer_short(), evt.payload);
}