dusk_poseidon/
lib.rs

1// This Source Code Form is subject to the terms of the Mozilla Public
2// License, v. 2.0. If a copy of the MPL was not distributed with this
3// file, You can obtain one at http://mozilla.org/MPL/2.0/.
4//
5// Copyright (c) DUSK NETWORK. All rights reserved.
6
7#![no_std]
8#![doc = include_str!("../README.md")]
9#![deny(missing_docs)]
10
11extern crate alloc;
12
13mod error;
14pub use error::Error;
15
16mod hades;
17pub use hades::WIDTH as HADES_WIDTH;
18
19mod hash;
20#[cfg(feature = "zk")]
21pub use hash::gadget::HashGadget;
22pub use hash::{Domain, Hash};
23
24#[cfg(feature = "encryption")]
25mod encryption;
26
27#[cfg(feature = "encryption")]
28#[cfg(feature = "zk")]
29pub use encryption::gadget::{decrypt_gadget, encrypt_gadget};
30#[cfg(feature = "encryption")]
31pub use encryption::{decrypt, encrypt};