C 6da2946aaf Write the documentation in Simplified Technical English hace 3 horas
..
adr 6da2946aaf Write the documentation in Simplified Technical English hace 1 hora
examples 6da2946aaf Write the documentation in Simplified Technical English hace 1 hora
README.md 6da2946aaf Write the documentation in Simplified Technical English hace 1 hora
SUMMARY.md 6da2946aaf Write the documentation in Simplified Technical English hace 1 hora
accounting-mapping.md 6da2946aaf Write the documentation in Simplified Technical English hace 1 hora
accounts.md 6da2946aaf Write the documentation in Simplified Technical English hace 1 hora
architecture.md 6da2946aaf Write the documentation in Simplified Technical English hace 1 hora
changelog.md ca752e859f Render the doc tree as a book so its diagrams and nav are usable hace 2 semanas
crates.md 6da2946aaf Write the documentation in Simplified Technical English hace 1 hora
glossary.md 6da2946aaf Write the documentation in Simplified Technical English hace 1 hora
inflight.md 6da2946aaf Write the documentation in Simplified Technical English hace 1 hora
journaling.md 6da2946aaf Write the documentation in Simplified Technical English hace 1 hora
pending-states.md 6da2946aaf Write the documentation in Simplified Technical English hace 1 hora
storage-schema.md 6da2946aaf Write the documentation in Simplified Technical English hace 1 hora
transfers.md 6da2946aaf Write the documentation in Simplified Technical English hace 1 hora

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, where exactly one account owns each posting. A transfer atomically consumes the postings that exist and creates new ones. Per-asset conservation holds over every transfer: sum(consumed) == sum(created). Double-entry bookkeeping gives the same safety guarantee as Σ debits = Σ credits, and Kuatia states it over signed postings. There is no mutable balance field, 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 that touches many accounts. It can also touch many assets, because each asset balances on its own. The append-only transfer log is the accounting journal. A replay of that log reconstructs every balance, so the ledger is auditable by construction.

How this book is laid out

Concepts covers the model: the architecture and the reason for its shape, accounts, transfers with the resolve algorithm, and inflight holds.

Examples are worked cases: overdraft and the shortfall posting, a currency exchange, and a retail point of sale. The runnable programs start with cargo run.

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

Reference is the crate reference, the SQL storage schema and the glossary, which defines every term.

Decisions is the ADR log. It holds every significant, hard-to-reverse design decision, with the options that it rejected and the reason for each. Nobody edits an ADR to reverse a decision. A later ADR supersedes it.