//! JCS (RFC 8785) canonical hashing helpers for calculator inputs and outputs.
//!
//! These back the input/output hashes stored in a [`CalculationReceipt`], so an
//! auditor can confirm the same inputs deterministically produce the same outputs.
//!
//! [`CalculationReceipt`]: super::receipt::CalculationReceipt
use CalcError;
/// SHA-256 of the JCS (RFC 8785) canonical JSON serialisation of `value`.
///
/// Fails if `value` cannot be serialized to JCS — returns the error rather
/// than silently hashing empty bytes.
/// SHA-256 of the JCS canonical JSON of calculator inputs — alias for [`jcs_hash`].