Trait storage_proofs_porep::PoRep [−][src]
pub trait PoRep<'a, H: Hasher, G: Hasher>: ProofScheme<'a> { type Tau; type ProverAux; fn replicate(
pub_params: &'a Self::PublicParams,
replica_id: &H::Domain,
data: Data<'a>,
data_tree: Option<BinaryMerkleTree<G>>,
config: StoreConfig,
replica_path: PathBuf
) -> Result<(Self::Tau, Self::ProverAux)>; fn extract_all(
pub_params: &'a Self::PublicParams,
replica_id: &H::Domain,
data: &mut [u8],
config: Option<StoreConfig>
) -> Result<()>; fn extract(
pub_params: &'a Self::PublicParams,
replica_id: &H::Domain,
data: &mut [u8],
node: usize,
config: Option<StoreConfig>
) -> Result<()>; }
Associated Types
Required methods
fn replicate(
pub_params: &'a Self::PublicParams,
replica_id: &H::Domain,
data: Data<'a>,
data_tree: Option<BinaryMerkleTree<G>>,
config: StoreConfig,
replica_path: PathBuf
) -> Result<(Self::Tau, Self::ProverAux)>
fn extract_all(
pub_params: &'a Self::PublicParams,
replica_id: &H::Domain,
data: &mut [u8],
config: Option<StoreConfig>
) -> Result<()>
Implementors
impl<'a, 'c, Tree: 'static + MerkleTreeTrait, G: 'static + Hasher> PoRep<'a, <Tree as MerkleTreeTrait>::Hasher, G> for StackedDrg<'a, Tree, G>