-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
2 changed files
with
26 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
//! Convenience re-export of common structs and traits needed for using Recrypt | ||
//! | ||
//! ``` | ||
//! use recrypt::prelude::*; | ||
//! use rand::rngs::ThreadRng; | ||
//! | ||
//! let recrypt: Recrypt<Sha256, Ed25519, RandomBytes<ThreadRng>> = Recrypt::new(); | ||
//! ``` | ||
// necessary for instantiating and storing a Recrypt as a struct member | ||
pub use crate::api::Ed25519; | ||
pub use crate::api::RandomBytes; | ||
pub use crate::api::Recrypt; | ||
pub use crate::api::Sha256; | ||
|
||
// traits that define functionality on Recrypt | ||
pub use crate::api::CryptoOps; | ||
pub use crate::api::Ed25519Ops; | ||
pub use crate::api::KeyGenOps; | ||
pub use crate::api::SchnorrOps; |