Module filecoin_proofs_api::post
source · Expand description
Generation and verification of Proof-of-Spacetime Merkle tree and zk-SNARK proofs.
Functions§
- Generates the challenges per SectorId required for either a Window Proof-of-Spacetime or a Winning Proof-of-Spacetime.
- Generates a single vanilla proof required for either Window Proof-of-Spacetime or Winning Proof-of-Spacetime.
- Generates a Window Proof-of-Spacetime with provided vanilla proofs of a single partition.
- Generates a Window Proof-of-Spacetime.
- Generates a Window Proof-of-Spacetime with provided vanilla Merkle tree proofs.
- Generates a Winning Proof-of-Spacetime.
- Given some randomness and the length of available sectors, generates a sector challenge.
- Generates a Winning Proof-of-Spacetime with provided vanilla Merkle tree proofs.
- For window PoSt only, gets the number of partitions based on proof type.
- Merge multiple window PoSt partition proofs into a single zk-SNARK proof.
- Verifies a window Proof-of-Spacetime.
- Verifies a winning Proof-of-Spacetime.