Crate filecoin_proofs_api
source ·Expand description
Proofs library for Filecoin open blockchain network.
This goal of the filecoin-proofs-api crate is to provide the proving and verification mechanisms used within Filecoin, to ensure Storage Providers are properly storing client data, and retaining that data over time. The ‘Proofs’ are used to assert that the work was done properly, and the nodes on the network are able to verify proofs to maintain trust across the distributed storage network. The proving system used by Filecoin is based on Groth16. Specific poofs include Proof-of-Spacetime, and Proof-of-Replication.
For further information, please see the Filecoin specification
Re-exports§
pub use fr32;
Modules§
- Generation and verification of Proof-of-Spacetime Merkle tree and zk-SNARK proofs.
- Proof-of-Replication for sealing, unsealing, and verifying data sectors
- Update data within existing sealed sectors.
Structs§
- Identifier for a single sector.
Enums§
- The ApiFeature enum is used for optional features that the network can use and recognize, but in no way is required to be used.
- The ApiVersion enum is used for mandatory changes that the network must use and recognize.
- Available aggregation of zk-SNARK proofs.
- Available PoSt proofs.
- Available seal proofs.
- Available proofs for updating sectors
- Custom error types
Constants§
Traits§
- Trait used to abstract over the way Merkle Trees are constructed and stored.
Functions§
- Get the correct parameter data for a given cache id.
- Get the correct verifying key data for a given cache id.
Type Aliases§
- An ordered set of
SectorId
s.