Crate iroh_db_core

Crate iroh_db_core 

Source
Expand description

Deterministic identifiers, schemas, commits, and CRDT semantics for iroh-db.

Structs§

AuthorId
A cryptographic device identity, represented independently from the iroh adapter.
BlobHash
The BLAKE3 content hash of any immutable iroh blob.
CapabilityId
The stable hash of a canonical capability certificate.
CollectionId
The stable identifier of a typed collection.
CommitBody
A decrypted atomic domain transaction.
CommitEnvelope
An immutable signed commit blob.
CommitHeader
Public authenticated metadata for an encrypted commit body.
CommitId
The content hash of an immutable commit blob.
CommitSignature
The Ed25519 signature attached to a commit envelope.
DomainId
An isolated authorization, encryption, replication, and transaction boundary.
Dot
The unique, deterministic identity of an operation in a domain.
EqualityFilter
A type-checked equality predicate over canonical visible field values.
FieldDescriptor
The stable replicated contract for one record field.
GrowOnlySet
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.
MigrationId
A stable identifier for one domain-local schema migration attempt.
MultiValue
A register retaining every causally maximal assignment.
Operation
One field or record operation in an atomic commit.
OrSet
An add-wins observed-remove set.
OrderedList
A replicated growable ordered list with stable element dots.
PnCounter
A state-based positive/negative counter with per-author components.
RangeFilter
A type-checked ordered predicate over canonical visible field values.
RecordFields
Strictly decoded stable field-state map.
SchemaActivation
The atomic publication marker for a complete staged migration.
SchemaDescriptor
A validated, versioned collection schema.
SchemaId
The stable hash of a canonical record schema.
SchemaStage
One bounded, invisible target record in a causal schema migration.
SnapshotId
The content hash of an immutable snapshot blob.
TransactionId
A unique identifier for one domain-local transaction.
TypedField
Compile-time metadata for one strongly typed query field.
VersionVector
A canonical summary of the highest observed commit sequence for each author.

Enums§

CausalRelation
The causal relationship between two histories.
CommitCodecError
Commit format validation or decoding failure.
CrdtError
A deterministic CRDT operation or merge failure.
CrdtKind
A built-in deterministic replicated-field strategy.
FixedIdError
An error returned when parsing a fixed-size protocol identifier.
MigrationCodecError
Validation or canonical-codec failure for migration protocol objects.
OperationKind
The stable operation opcode applied by the materializer.
RangeOperator
One supported ordered comparison.
RecordError
A typed-record schema or canonical codec failure.
SchemaError
Schema validation or decoding failure.

Traits§

FieldState
Canonical state codec and schema metadata for a replicated field.
IrohRecord
Strongly typed record contract generated by #[derive(IrohRecord)].
Merge
Deterministically combines state from another replica.
RecordKey
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.