Expose note types and make note modules private
This commit is contained in:
parent
d795b8bfd9
commit
31d98248ab
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue