redjubjub/src/lib.rs

27 lines
640 B
Rust
Raw Normal View History

2019-12-02 21:32:38 -08:00
#![cfg_attr(feature = "nightly", feature(external_doc))]
#![cfg_attr(feature = "nightly", doc(include = "../README.md"))]
2019-12-02 21:36:47 -08:00
#![deny(missing_docs)]
2019-12-02 21:32:38 -08:00
//! Docs require the `nightly` feature until RFC 1990 lands.
2019-12-02 21:36:47 -08:00
mod error;
2019-12-02 21:32:38 -08:00
mod public_key;
mod secret_key;
mod signature;
2019-12-02 22:32:55 -08:00
/// An element of the JubJub scalar field used for randomization of public and secret keys.
pub type Randomizer = jubjub::Fr;
2019-12-02 21:36:47 -08:00
pub use error::Error;
2019-12-02 21:58:19 -08:00
pub use public_key::{PublicKey, PublicKeyBytes};
pub use secret_key::{SecretKey, SecretKeyBytes};
pub use signature::Signature;
2019-12-02 21:32:38 -08:00
2019-12-02 14:12:06 -08:00
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
assert_eq!(2 + 2, 4);
}
}