Struct storage_proofs_porep::stacked::PublicInputs [−][src]
pub struct PublicInputs<T: Domain, S: Domain> { pub replica_id: T, pub seed: [u8; 32], pub tau: Option<Tau<T, S>>, pub k: Option<usize>, }
Fields
replica_id: T
seed: [u8; 32]
tau: Option<Tau<T, S>>
k: Option<usize>
Partition index
Implementations
pub fn challenges(
&self,
layer_challenges: &LayerChallenges,
leaves: usize,
partition_k: Option<usize>
) -> Vec<usize>
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<T: PartialEq + Domain, S: PartialEq + Domain> PartialEq<PublicInputs<T, S>> for PublicInputs<T, S>
impl<T: PartialEq + Domain, S: PartialEq + Domain> PartialEq<PublicInputs<T, S>> for PublicInputs<T, S>
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<T, S> RefUnwindSafe for PublicInputs<T, S> where
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, S> Send for PublicInputs<T, S>
impl<T, S> Sync for PublicInputs<T, S>
impl<T, S> Unpin for PublicInputs<T, S> where
S: Unpin,
T: Unpin,
impl<T, S> UnwindSafe for PublicInputs<T, S> where
S: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self