diff --git a/Cargo.toml b/Cargo.toml index 51a69c6..0aeb273 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "zcash_note_encryption" -description = "TBD" +description = "Note encryption for Zcash transactions" version = "0.0.0" authors = [ "Jack Grigg ", diff --git a/src/lib.rs b/src/lib.rs index 0c3a01e..9587033 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,7 +1,16 @@ -//! Implementation of in-band secret distribution abstractions -//! for Zcash transactions. The implementations here provide -//! functionality that is shared between the Sapling and Orchard -//! protocols. +//! Note encryption for Zcash transactions. +//! +//! This crate implements the [in-band secret distribution scheme] for the Sapling and +//! Orchard protocols. It provides reusable methods that implement common note encryption +//! and trial decryption logic, and enforce protocol-agnostic verification requirements. +//! +//! Protocol-specific logic is handled via the [`Domain`] trait. Implementations of this +//! trait are provided in the [`zcash_primitives`] (for Sapling) and [`orchard`] crates; +//! users with their own existing types can similarly implement the trait themselves. +//! +//! [in-band secret distribution scheme]: https://zips.z.cash/protocol/protocol.pdf#saplingandorchardinband +//! [`zcash_primitives`]: https://crates.io/crates/zcash_primitives +//! [`orchard`]: https://crates.io/crates/orchard #![no_std] #![cfg_attr(docsrs, feature(doc_cfg))]