lib.rs 633 B

123456789101112131415161718
  1. //! Pure, sans-IO decision logic for the ledger.
  2. //!
  3. //! This crate contains no IO, no async runtime, and near-zero dependencies so that
  4. //! the auditable heart of the ledger can be tested with golden vectors, replayed
  5. //! deterministically, and embedded anywhere.
  6. pub mod hash;
  7. pub mod posting_selection;
  8. pub mod validate;
  9. pub use kuatia_types::*;
  10. pub use hash::{
  11. account_canonical_bytes, account_hash, account_snapshot_id, canonical_bytes, content_hash,
  12. double_sha256, envelope_id,
  13. };
  14. pub use posting_selection::{SelectionError, select_postings};
  15. pub use validate::{Plan, PlanInput, ValidationError, validate_and_plan};