[−][src]Struct sapling_crypto_ce::poseidon::bn256::Bn256PoseidonParams
Methods
impl Bn256PoseidonParams
[src]
pub fn new<H: GroupHasher>() -> Self
[src]
pub fn new_for_quartic_tree<H: GroupHasher>() -> Self
[src]
pub fn new_for_params<H: GroupHasher>(
t: u32,
r_f: u32,
r_p: u32,
security_level: u32
) -> Self
[src]
t: u32,
r_f: u32,
r_p: u32,
security_level: u32
) -> Self
Trait Implementations
impl PoseidonHashParams<Bn256> for Bn256PoseidonParams
[src]
fn t(&self) -> u32
[src]
fn r_f(&self) -> u32
[src]
fn r_p(&self) -> u32
[src]
fn full_round_key(&self, round: u32) -> &[Fr]
[src]
fn partial_round_key(&self, round: u32) -> &[Fr]
[src]
fn mds_matrix_row(&self, row: u32) -> &[Fr]
[src]
fn security_level(&self) -> u32
[src]
fn output_len(&self) -> u32
[src]
fn absorbtion_cycle_len(&self) -> u32
[src]
fn compression_rate(&self) -> u32
[src]
Auto Trait Implementations
impl Send for Bn256PoseidonParams
impl Sync for Bn256PoseidonParams
impl Unpin for Bn256PoseidonParams
impl UnwindSafe for Bn256PoseidonParams
impl RefUnwindSafe for Bn256PoseidonParams
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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> Same<T> for T
type Output = T
Should always be Self