C ca752e859f Render the doc tree as a book so its diagrams and nav are usable 1 هفته پیش
..
adr db22dc4cd6 Store amounts in a form the database can add up exactly 2 ماه پیش
README.md ca752e859f Render the doc tree as a book so its diagrams and nav are usable 6 روز پیش
SUMMARY.md ca752e859f Render the doc tree as a book so its diagrams and nav are usable 6 روز پیش
accounting-mapping.md 0f25920ae3 Remove the vestigial UserData type and the orphaned withdraw saga step 4 ماه پیش
accounts.md ca752e859f Render the doc tree as a book so its diagrams and nav are usable 6 روز پیش
architecture.md db22dc4cd6 Store amounts in a form the database can add up exactly 2 ماه پیش
changelog.md ca752e859f Render the doc tree as a book so its diagrams and nav are usable 6 روز پیش
crates.md db22dc4cd6 Store amounts in a form the database can add up exactly 2 ماه پیش
glossary.md 8bf5f4c00e Commit each transfer in one store transaction instead of a saga 3 ماه پیش
inflight.md 651a7dd5d6 Squashed commit of the following: 4 ماه پیش
journaling.md 68eae4ed72 Document journaling support and record the framing decision 4 ماه پیش
storage-schema.md db22dc4cd6 Store amounts in a form the database can add up exactly 2 ماه پیش
transfers.md db22dc4cd6 Store amounts in a form the database can add up exactly 2 ماه پیش

README.md

Kuatia

kuatia (kuatiʼa) is Guaraní for paper, document, writing.

An append-only, auditable, multi-asset UTXO-style ledger library in Rust.

Kuatia models value as postings: signed amounts of one asset owned by exactly one account. A transfer atomically consumes existing postings and creates new ones, enforcing per-asset conservation (sum(consumed) == sum(created)). That is the same safety guarantee as double-entry bookkeeping, Σ debits = Σ credits, expressed over signed postings. There are no mutable balance fields, so an account's balance is always the sum of its live postings.

A committed transfer is a journal entry. A transfer with several movements is a compound entry, one balanced event touching many accounts and, since each asset balances independently, many assets. The append-only transfer log is the accounting journal: replaying it reconstructs every balance, so the ledger is auditable by construction.

How this book is laid out

Concepts covers the model: the architecture and why it is shaped that way, accounts, transfers and the resolve algorithm, and inflight holds.

Accounting maps the model onto practice, both as journaling and as a term-by-term mapping from classical double-entry.

Reference is the crate reference and the SQL storage schema. The glossary defines every term and carries two worked examples, a currency exchange and a retail point of sale.

Decisions is the ADR log: every significant, hard-to-reverse design decision, with the options that were rejected and why. An ADR is never edited to reverse a decision; a later one supersedes it.