Crate zcash_proofs
source ·Expand description
Zcash circuits and proofs.
zcash_proofs
contains the zk-SNARK circuits used by Zcash, and the APIs for creating
and verifying proofs.
Modules
- Implementations of the Zcash circuits and Zcash-specific gadgets.
- Various constants used for the Zcash proofs.
- Abstractions over the proving system and parameters for ease of use.
- Helpers for creating Sapling proofs.
- APIs for creating and verifying Sprout proofs.
Structs
- The paths to the Sapling parameter files.
- Zcash Sprout and Sapling groth16 circuit parameters.
Constants
- The sapling output parameters file name.
- The sapling spend parameters file name.
- The sprout parameters file name.
Functions
- Returns the default folder that the Zcash proving parameters are located in.
- download_parametersDeprecatedDownload the Zcash Sapling parameters if needed, and store them in the default location. Always checks the sizes and hashes of the files, even if they didn’t need to be downloaded.
- Download the Zcash Sapling parameters if needed, and store them in the default location. Always checks the sizes and hashes of the files, even if they didn’t need to be downloaded.
- Download the Zcash Sprout parameters if needed, and store them in the default location. Always checks the size and hash of the file, even if it didn’t need to be downloaded.
- Load the specified parameters, checking the sizes and hashes of the files.
- Parse Bls12 keys from bytes as serialized by
Parameters::write
.