Module forest_filecoin::utils::proofs_api::parameters

source Β·
Expand description

This module contains the logic for storing and verifying the proofs parameters.

The parameters are fetched from the network and stored in the cache directory. The cache directory can be set using the PROOFS_PARAMETER_CACHE_ENV environment variable. If not set, the default directory is used.

Structs§

  • ParameterData πŸ”’
    Data structure for retrieving the proof parameter data from provided JSON.

Constants§

Functions§

  • Ensures the parameter file is downloaded and has the correct checksum. This behavior can be disabled by setting the FOREST_FORCE_TRUST_PARAMS_ENV environment variable to 1.
  • param_dir πŸ”’
  • Forest uses a set of external crates for verifying the proofs generated by the miners. These external crates require a specific set of parameter files to be located at in a specific folder. By default, it is /var/tmp/filecoin-proof-parameters but it can be overridden by the FIL_PROOFS_PARAMETER_CACHE environment variable. Forest will automatically download the parameter files from Cloudflare/IPFS and verify their validity. For consistency, Forest will prefer to download the files it’s local data directory. To this end, the FIL_PROOFS_PARAMETER_CACHE environment variable is updated before the parameters are downloaded.

Type Aliases§

  • ParameterMap πŸ”’
    Map of parameter data, to be deserialized from the parameter file.