Expand description
Deterministic identifiers, schemas, commits, and CRDT semantics for iroh-db.
Structs§
- Author
Id - A cryptographic device identity, represented independently from the iroh adapter.
- Blob
Hash - The BLAKE3 content hash of any immutable iroh blob.
- Capability
Id - The stable hash of a canonical capability certificate.
- Collection
Id - The stable identifier of a typed collection.
- Commit
Body - A decrypted atomic domain transaction.
- Commit
Envelope - An immutable signed commit blob.
- Commit
Header - Public authenticated metadata for an encrypted commit body.
- Commit
Id - The content hash of an immutable commit blob.
- Commit
Signature - The Ed25519 signature attached to a commit envelope.
- Domain
Id - An isolated authorization, encryption, replication, and transaction boundary.
- Dot
- The unique, deterministic identity of an operation in a domain.
- Equality
Filter - A type-checked equality predicate over canonical visible field values.
- Field
Descriptor - The stable replicated contract for one record field.
- Grow
Only Set - A set whose only operation is insertion.
- Immutable
- A write-once register that retains unequal concurrent initial values.
- Lww
- A causal last-writer-wins register that never uses wall-clock time.
- Migration
Id - A stable identifier for one domain-local schema migration attempt.
- Multi
Value - A register retaining every causally maximal assignment.
- Operation
- One field or record operation in an atomic commit.
- OrSet
- An add-wins observed-remove set.
- Ordered
List - A replicated growable ordered list with stable element dots.
- PnCounter
- A state-based positive/negative counter with per-author components.
- Range
Filter - A type-checked ordered predicate over canonical visible field values.
- Record
Fields - Strictly decoded stable field-state map.
- Schema
Activation - The atomic publication marker for a complete staged migration.
- Schema
Descriptor - A validated, versioned collection schema.
- Schema
Id - The stable hash of a canonical record schema.
- Schema
Stage - One bounded, invisible target record in a causal schema migration.
- Snapshot
Id - The content hash of an immutable snapshot blob.
- Transaction
Id - A unique identifier for one domain-local transaction.
- Typed
Field - Compile-time metadata for one strongly typed query field.
- Version
Vector - A canonical summary of the highest observed commit sequence for each author.
Enums§
- Causal
Relation - The causal relationship between two histories.
- Commit
Codec Error - Commit format validation or decoding failure.
- Crdt
Error - A deterministic CRDT operation or merge failure.
- Crdt
Kind - A built-in deterministic replicated-field strategy.
- Fixed
IdError - An error returned when parsing a fixed-size protocol identifier.
- Migration
Codec Error - Validation or canonical-codec failure for migration protocol objects.
- Operation
Kind - The stable operation opcode applied by the materializer.
- Range
Operator - One supported ordered comparison.
- Record
Error - A typed-record schema or canonical codec failure.
- Schema
Error - Schema validation or decoding failure.
Traits§
- Field
State - Canonical state codec and schema metadata for a replicated field.
- Iroh
Record - Strongly typed record contract generated by
#[derive(IrohRecord)]. - Merge
- Deterministically combines state from another replica.
- Record
Key - Canonical application record identifier encoding.
Functions§
- decode_
record_ fields - Strictly decodes a canonical stable field-state map.
- encode_
record_ fields - Encodes field states as a canonical CBOR map keyed by stable numeric IDs.
- staging_
digest - Hashes a complete staging set in canonical source-key order.