orchard/src/lib.rs

44 lines
1.1 KiB
Rust
Raw Normal View History

2021-01-08 08:32:36 -08:00
//! # orchard
//!
//! ## Nomenclature
//!
//! All types in the `orchard` crate, unless otherwise specified, are Orchard-specific
//! types. For example, [`Address`] is documented as being a shielded payment address; we
//! implicitly mean it is an Orchard payment address (as opposed to e.g. a Sapling payment
//! address, which is also shielded).
2020-10-20 14:12:37 -07:00
2020-10-20 14:44:33 -07:00
#![cfg_attr(docsrs, feature(doc_cfg))]
// Temporary until we have more of the crate implemented.
#![allow(dead_code)]
2020-10-20 14:44:33 -07:00
// Catch documentation errors caused by code changes.
#![deny(rustdoc::broken_intra_doc_links)]
2020-10-20 14:12:37 -07:00
#![deny(missing_debug_implementations)]
#![deny(missing_docs)]
#![deny(unsafe_code)]
2021-01-20 10:54:00 -08:00
mod action;
2021-01-20 10:54:00 -08:00
mod address;
pub mod builder;
2021-01-20 12:30:35 -08:00
pub mod bundle;
pub mod circuit;
2021-03-05 15:25:45 -08:00
mod constants;
2021-01-20 10:54:00 -08:00
pub mod keys;
2021-05-05 13:05:17 -07:00
pub mod note;
pub mod note_encryption;
2021-01-20 12:35:54 -08:00
pub mod primitives;
2021-03-05 15:25:45 -08:00
mod spec;
pub mod tree;
2021-01-20 12:09:09 -08:00
pub mod value;
pub mod zip32;
2021-01-20 10:54:00 -08:00
2021-05-28 03:57:21 -07:00
#[cfg(test)]
mod test_vectors;
pub use action::Action;
2021-01-20 10:54:00 -08:00
pub use address::Address;
pub use bundle::Bundle;
pub use circuit::Proof;
pub use constants::MERKLE_DEPTH_ORCHARD as NOTE_COMMITMENT_TREE_DEPTH;
pub use note::Note;
pub use tree::Anchor;