stealth_lib/hash/mod.rs
1//! Hash functions for stealth-lib.
2//!
3//! This module provides ZK-friendly hash functions designed for use in
4//! zero-knowledge proof circuits.
5//!
6//! # Available Hash Functions
7//!
8//! - [`MimcHasher`] - MiMC-Feistel sponge construction
9//!
10//! # Security Note
11//!
12//! These hash functions are designed for ZK circuits (e.g., Tornado Cash, Semaphore)
13//! and are **NOT** general-purpose cryptographic hash functions. They are:
14//!
15//! - **NOT constant-time** (vulnerable to timing side-channels)
16//! - **NOT suitable for password hashing**
17//! - **NOT a replacement for SHA-256, BLAKE3, etc.**
18//!
19//! For general-purpose hashing, use established crates like `sha2`, `blake3`, or `ring`.
20
21pub mod mimc;
22
23pub use mimc::MimcHasher;