A Rust implementation of stochastic hashing (stochash), a probabilistic primitive whose input is a buffer of bytes (each interpreted as a probability byte/256) and whose output is a bit-string of the same length, with each bit sampled independently with P(bit_i = 1) = byte_i / 256.
rust cryptography bayesian-network cargo hmac sha256 rust-library bayesian-inference ising-model mcmc gibbs-sampling rust-crate boltzmann-machine stochastic-computing verifiable-random-function vrf qubo probabilistic-computing p-bit stochastic-hash
-
Updated
Sep 5, 2026 - Rust