Function download_sprout_parameters

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

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.

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

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

Returns the path to the downloaded file.