//! Commitment chain hash function trait and SHA-256 implementation.
pub use Sha256ChainHasher;
use Debug;
/// Swappable hash function for commitment chains.
///
/// The commitment chain hashes pairs of 32-byte values to produce
/// a new 32-byte commitment. Different hash functions provide different
/// trade-offs: SHA-256 is fast and universal; Poseidon is ZK-friendly.