pub trait RescueHashParams<E: Engine>: RescueParamsInternal<E> {
type SBox0: PlonkCsSBox<E>;
type SBox1: PlonkCsSBox<E>;
Show 13 methods
// Required methods
fn capacity(&self) -> u32;
fn rate(&self) -> u32;
fn num_rounds(&self) -> u32;
fn round_constants(&self, round: u32) -> &[E::Fr];
fn mds_matrix_row(&self, row: u32) -> &[E::Fr];
fn security_level(&self) -> u32;
fn sbox_0(&self) -> &Self::SBox0;
fn sbox_1(&self) -> &Self::SBox1;
// Provided methods
fn state_width(&self) -> u32 { ... }
fn output_len(&self) -> u32 { ... }
fn absorbtion_cycle_len(&self) -> u32 { ... }
fn compression_rate(&self) -> u32 { ... }
fn can_use_custom_gates(&self) -> bool { ... }
}
Required Associated Types§
type SBox0: PlonkCsSBox<E>
type SBox1: PlonkCsSBox<E>
Required Methods§
fn capacity(&self) -> u32
fn rate(&self) -> u32
fn num_rounds(&self) -> u32
fn round_constants(&self, round: u32) -> &[E::Fr]
fn mds_matrix_row(&self, row: u32) -> &[E::Fr]
fn security_level(&self) -> u32
fn sbox_0(&self) -> &Self::SBox0
fn sbox_1(&self) -> &Self::SBox1
Provided Methods§
fn state_width(&self) -> u32
fn output_len(&self) -> u32
fn absorbtion_cycle_len(&self) -> u32
fn compression_rate(&self) -> u32
fn can_use_custom_gates(&self) -> bool
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.