Expose note types and make note modules private

This commit is contained in:
Deirdre Connolly 2020-08-28 04:14:58 -04:00 committed by Deirdre Connolly
parent d795b8bfd9
commit 31d98248ab
2 changed files with 10 additions and 10 deletions

View File

@ -2,21 +2,20 @@
mod address; mod address;
mod commitment; mod commitment;
mod note;
mod output; mod output;
mod spend; mod spend;
#[cfg(test)]
pub use output::Output; mod tests;
pub use spend::Spend;
// XXX clean up these modules // XXX clean up these modules
pub mod keys; pub mod keys;
pub mod note;
pub mod tree; pub mod tree;
#[cfg(test)]
mod tests;
pub use address::Address; pub use address::Address;
pub use commitment::{CommitmentRandomness, NoteCommitment, ValueCommitment}; pub use commitment::{CommitmentRandomness, NoteCommitment, ValueCommitment};
pub use keys::Diversifier; pub use keys::Diversifier;
pub use note::{EncryptedNote, Note, Nullifier, WrappedNoteKey};
pub use output::Output;
pub use spend::Spend;

View File

@ -1,7 +1,8 @@
//! Sprout-related functionality. //! Sprout-related functionality.
mod joinsplit; mod joinsplit;
pub use joinsplit::JoinSplit; #[cfg(test)]
mod tests;
// XXX clean up these modules // XXX clean up these modules
@ -11,5 +12,5 @@ pub mod keys;
pub mod note; pub mod note;
pub mod tree; pub mod tree;
#[cfg(test)] pub use joinsplit::JoinSplit;
mod tests; pub use note::{EncryptedNote, Note, Nullifier};