1 2 3 4 5 6 7 8 9 10 11 12 13
//! A Rust wrapper around both C/assembly and CUDA implementation of Sloth permutation suggested in
//! <https://eprint.iacr.org/2015/366>, extended for a proof-of-replication, and instantiated for
//! 2**256-189 modulus used in Subspace Network.
//!
//! Universal CPU implementation is always available, for CUDA support via OpenCL make sure to
//! enable `opencl` feature, have proprietary NVIDIA driver, and CUDA toolchain installed.
#![warn(rust_2018_idioms, missing_debug_implementations, missing_docs)]
#![cfg_attr(not(feature = "std"), no_std)]
pub mod cpu;
#[cfg(feature = "opencl")]
pub mod opencl;