Expand description
§sapling
§Nomenclature
All types in the sapling-crypto crate, unless otherwise specified, are
Sapling-specific types. For example, PaymentAddress is documented as being a
shielded payment address; we implicitly mean it is an Sapling payment address (as
opposed to e.g. an Orchard payment address, which is also shielded).
§Feature flags
circuit(enabled by default) — Enables creation of Sapling proofsmulticore(enabled by default) — Enables multithreading support for creating proofs.test-dependencies— Exposes APIs that are useful for testing, such aspropteststrategies.
Re-exports§
pub use bundle::Bundle;pub use keys::Diversifier;pub use keys::NullifierDerivingKey;pub use keys::ProofGenerationKey;pub use keys::SaplingIvk;pub use keys::ViewingKey;pub use note::Note;pub use note::Rseed;
Modules§
- builder
- Types and functions for building Sapling transaction components.
- bundle
- circuit
circuit - The Sapling circuits.
- constants
- Various constants used by the Sapling protocol.
- group_
hash - Implementation of group hashing into Jubjub.
- keys
- Sapling key components.
- note
- note_
encryption - Implementation of in-band secret distribution for Zcash transactions.
- pczt
- PCZT support for Sapling.
- pedersen_
hash - Implementation of the Pedersen hash function used in Sapling.
- prover
circuit - Abstractions over the proving system and parameters.
- testing
test-dependencies - util
- value
- Monetary values within the Sapling shielded pool.
- zip32
- Sapling key derivation according to ZIP 32 and ZIP 316
Structs§
- Anchor
- The root of a Sapling commitment tree.
- Batch
Validator circuit - Batch validation context for Sapling.
- Node
- A node within the Sapling commitment tree.
- Nullifier
- Typesafe wrapper for nullifier values.
- Payment
Address - A Sapling payment address.
- Sapling
Verification Context circuit - A context object for verifying the Sapling components of a single Zcash transaction.
Constants§
Functions§
- merkle_
hash - Compute a parent node in the Sapling commitment tree given its two children.