Function download_sapling_parameters

Source
pub fn download_sapling_parameters(
    timeout: Option<u64>,
) -> Result<SaplingParameterPaths, Error>
Available on crate feature download-params only.
Expand description

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.

This mirrors the behaviour of the fetch-params.sh script from zcashd.

Use timeout to set a timeout in seconds for each file download. If timeout is None, a timeout can be set using the MINREQ_TIMEOUT environmental variable.

Returns the paths to the downloaded files.