[−][src]Struct storage_proofs::hasher::pedersen::PedersenDomain
Trait Implementations
impl Domain for PedersenDomain
[src]
fn serialize(&self) -> Vec<u8>
[src]
fn into_bytes(&self) -> Vec<u8>
[src]
fn try_from_bytes(raw: &[u8]) -> Result<Self>
[src]
fn write_bytes(&self, dest: &mut [u8]) -> Result<()>
[src]
impl HashFunction<PedersenDomain> for PedersenFunction
[src]
fn hash(data: &[u8]) -> PedersenDomain
[src]
fn hash_leaf_circuit<E: JubjubEngine, CS: ConstraintSystem<E>>(
cs: CS,
left: &[Boolean],
right: &[Boolean],
height: usize,
params: &E::Params
) -> Result<AllocatedNum<E>, SynthesisError>
[src]
cs: CS,
left: &[Boolean],
right: &[Boolean],
height: usize,
params: &E::Params
) -> Result<AllocatedNum<E>, SynthesisError>
fn hash_circuit<E: JubjubEngine, CS: ConstraintSystem<E>>(
cs: CS,
bits: &[Boolean],
params: &E::Params
) -> Result<AllocatedNum<E>, SynthesisError>
[src]
cs: CS,
bits: &[Boolean],
params: &E::Params
) -> Result<AllocatedNum<E>, SynthesisError>
fn hash_leaf(data: &dyn LightHashable<Self>) -> T
[src]
fn hash_single_node(data: &dyn LightHashable<Self>) -> T
[src]
impl Vdf<PedersenDomain> for Sloth
[src]
type SetupParams = SetupParams
type PublicParams = PublicParams
type Proof = Proof
fn setup(sp: &Self::SetupParams) -> Result<Self::PublicParams>
[src]
fn eval(
pp: &Self::PublicParams,
x: &PedersenDomain
) -> Result<(PedersenDomain, Self::Proof)>
[src]
pp: &Self::PublicParams,
x: &PedersenDomain
) -> Result<(PedersenDomain, Self::Proof)>
fn verify(
pp: &Self::PublicParams,
x: &PedersenDomain,
proof: &Self::Proof
) -> Result<bool>
[src]
pp: &Self::PublicParams,
x: &PedersenDomain,
proof: &Self::Proof
) -> Result<bool>
fn key(pp: &PublicParams) -> PedersenDomain
[src]
fn rounds(pp: &PublicParams) -> usize
[src]
fn extract_output(proof: &Proof) -> PedersenDomain
[src]
impl From<Fr> for PedersenDomain
[src]
impl From<FrRepr> for PedersenDomain
[src]
impl From<PedersenDomain> for Fr
[src]
fn from(val: PedersenDomain) -> Self
[src]
impl PartialEq<PedersenDomain> for PedersenDomain
[src]
fn eq(&self, other: &PedersenDomain) -> bool
[src]
fn ne(&self, other: &PedersenDomain) -> bool
[src]
impl Clone for PedersenDomain
[src]
fn clone(&self) -> PedersenDomain
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl AsRef<[u8]> for PedersenDomain
[src]
impl Default for PedersenDomain
[src]
fn default() -> PedersenDomain
[src]
impl PartialOrd<PedersenDomain> for PedersenDomain
[src]
fn partial_cmp(&self, other: &PedersenDomain) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Eq for PedersenDomain
[src]
impl Ord for PedersenDomain
[src]
fn cmp(&self, other: &PedersenDomain) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
fn clamp(self, min: Self, max: Self) -> Self
[src]
clamp
)Restrict a value to a certain interval. Read more
impl Copy for PedersenDomain
[src]
impl Debug for PedersenDomain
[src]
impl Serialize for PedersenDomain
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for PedersenDomain
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Rand for PedersenDomain
[src]
impl Hashable<PedersenFunction> for PedersenDomain
[src]
fn hash(&self, state: &mut PedersenFunction)
[src]
fn hash_slice(data: &[Self], state: &mut H)
[src]
Feeds a slice of this type into the given [Hasher
]. Read more
impl Algorithm<PedersenDomain> for PedersenFunction
[src]
fn hash(&mut self) -> PedersenDomain
[src]
fn reset(&mut self)
[src]
fn leaf(&mut self, leaf: PedersenDomain) -> PedersenDomain
[src]
fn node(
&mut self,
left: PedersenDomain,
right: PedersenDomain,
height: usize
) -> PedersenDomain
[src]
&mut self,
left: PedersenDomain,
right: PedersenDomain,
height: usize
) -> PedersenDomain
impl Element for PedersenDomain
[src]
Auto Trait Implementations
impl Unpin for PedersenDomain
impl Sync for PedersenDomain
impl Send for PedersenDomain
impl RefUnwindSafe for PedersenDomain
impl UnwindSafe for PedersenDomain
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,