Struct snarkvm_fields::traits::PoseidonGrainLFSR
source · pub struct PoseidonGrainLFSR {
pub field_size_in_bits: u64,
pub state: [bool; 80],
pub head: usize,
}
Fields§
§field_size_in_bits: u64
§state: [bool; 80]
§head: usize
Implementations§
source§impl PoseidonGrainLFSR
impl PoseidonGrainLFSR
pub fn new( is_sbox_an_inverse: bool, field_size_in_bits: u64, state_len: u64, num_full_rounds: u64, num_partial_rounds: u64 ) -> Self
pub fn get_field_elements_rejection_sampling<F: PrimeField>( &mut self, num_elements: usize ) -> Result<Vec<F>>
pub fn get_field_elements_mod_p<F: PrimeField>( &mut self, num_elems: usize ) -> Result<Vec<F>>
Auto Trait Implementations§
impl RefUnwindSafe for PoseidonGrainLFSR
impl Send for PoseidonGrainLFSR
impl Sync for PoseidonGrainLFSR
impl Unpin for PoseidonGrainLFSR
impl UnwindSafe for PoseidonGrainLFSR
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more