01 · Local truth

Strand

A signed, append-only log per writer. Every event is hashed into a Merkle history that any peer can verify offline. No global consensus. No fork resolution. The participant's log is their truth, and replicas converge by replaying.

Concepts

What you’re working with.

  • 01Single-writer log per participant. No global ordering.
  • 02Each event is hashed and signed; verifiable offline.
  • 03Merkle history + bitfield replication — sparse, resumable.
  • 04Storage backends are pluggable (in-memory, RocksDB, custom).
Code

A handful of lines.

use strand::{Strand, StrandBuilder};

let mut strand = StrandBuilder::new("alice")
    .keypair(keypair)
    .open(".weave/alice").await?;

strand.append(b"hello, peers").await?;
let proof = strand.proof_for(0).await?;
assert!(proof.verify());

Ready to build?

Start with the SDK or load the agent context. Every library is independently documented and versioned.