|
|
2 주 전 | |
|---|---|---|
| .. | ||
| src | 3 일 전 | |
| Cargo.toml | 3 일 전 | |
| README.md | 3 일 전 | |
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.
| 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 |
validate_and_plan() checks, in order:
sum(consumed) == sum(created)NoOverdraft (allowed on overdraft/system/external)Returns a Plan on success, or a ValidationError describing the violation.