Crate canic_utils

Crate canic_utils 

Source
Expand description

Small deterministic helpers used across Canic.

This crate intentionally stays lightweight: helpers are designed to be replica-friendly and predictable, and avoid pulling in higher-level Canic orchestration concerns.

Modules:

  • case – string casing helpers.
  • [format] – small formatting helpers for logs/UI.
  • hash – fast xxHash3 hashing (non-cryptographic).
  • instructions – formatting helpers for instruction counts.
  • rand – ChaCha20 PRNG seeded via the management canister raw_rand.

Modules§

case
format
Small formatting helpers shared across logs and UI responses.
hash
xxHash3 hashing utilities.
instructions
Helpers for formatting raw instruction counts into friendly strings.
rand
Thread-local PRNG seeded externally (raw_rand recommended).