Skip to content

Commit eb7d198

Browse files
Re-export types (#62)
This PR re-exports types to facilitate easier use of the public API.
1 parent ce98ebc commit eb7d198

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,10 @@
6363
//! # extern crate alloc;
6464
//! use alloc::sync::Arc;
6565
//!
66-
//! # use triptych::parameters::Parameters;
6766
//! use curve25519_dalek::RistrettoPoint;
6867
//! use merlin::Transcript;
6968
//! use rand_core::OsRng;
70-
//! # use triptych::statement::InputSet;
71-
//! # use triptych::statement::Statement;
72-
//! # use triptych::witness::Witness;
73-
//! # use triptych::proof::Proof;
69+
//! use triptych::*;
7470
//!
7571
//! let mut rng = OsRng;
7672
//!
@@ -119,11 +115,15 @@ extern crate alloc;
119115
pub(crate) mod gray;
120116
/// Public parameters used for generating and verifying Triptych proofs.
121117
pub mod parameters;
118+
pub use parameters::Parameters;
122119
/// Triptych proofs.
123120
pub mod proof;
121+
pub use proof::Proof;
124122
/// Triptych proof statements.
125123
pub mod statement;
124+
pub use statement::{InputSet, Statement};
126125
/// Various utility functionality.
127126
pub(crate) mod util;
128127
/// Triptych proof witnesses.
129128
pub mod witness;
129+
pub use witness::Witness;

0 commit comments

Comments
 (0)