[][src]Crate filecoin_proofs

Re-exports

pub use constants::SINGLE_PARTITION_PROOF_LEN;
pub use types::*;

Modules

constants
error
fr32
param
parameters
post_adapter
serde_big_array
singletons
types

Structs

SealOutput

Functions

generate_post

Generates a proof-of-spacetime, returning and detected storage faults. Accepts as input a challenge seed, configuration struct, and a vector of sealed sector file-path plus CommR tuples.

get_unsealed_range

Unseals the sector at sealed_path and returns the bytes for a piece whose first (unpadded) byte begins at offset and ends at offset plus num_bytes, inclusive. Note that the entire sector is unsealed each time this function is called.

seal

Seals the staged sector at in_path in place, saving the resulting replica to out_path.

verify_post

Verifies a proof-of-spacetime.

verify_seal

Verifies the output of some previously-run seal operation.

Type Definitions

ChallengeSeed
Commitment
FrSafe

FrSafe is an array of the largest whole number of bytes guaranteed not to overflow the field.