C 8d321e451f Let a caller say which day an entry takes effect 3 дней назад
..
src 8d321e451f Let a caller say which day an entry takes effect 3 дней назад
Cargo.toml 7e7cfde94d Introduce Kuatia, an append-only, auditable multi-asset ledger 4 месяцев назад
README.md 2e22e01d71 Retire the reservation model and the API shapes it left behind 4 дней назад

README.md

kuatia-core

Pure, sans-IO decision logic for the kuatia ledger.

No async runtime, no IO, near-zero dependencies. Deterministic and testable with golden vectors. Depends only on kuatia-types and sha2.

Modules

Module Purpose
validate validate_and_plan() — single entry point for all invariant checks
hash Double-SHA256, content-addressed transfer IDs, account snapshot hashing
posting_selection Greedy largest-first posting selection for the intent layer

Validation invariants

validate_and_plan() checks, in order:

  1. Non-empty transfer
  2. No duplicate consumed postings
  3. All consumed postings exist
  4. All consumed postings exist in the immutable record
  5. All accounts exist, not frozen, not closed
  6. Account snapshot pinning (OCC)
  7. Book policy (if a book is loaded): referenced assets/accounts/flags allowed
  8. Per-asset conservation: sum(consumed) == sum(created)
  9. Negative postings forbidden only on NoOverdraft (allowed on overdraft/system/external)
  10. Account policy enforcement (overdraft limits)

Returns a Plan on success, or a ValidationError describing the violation.