pub struct BHPCRH<G: ProjectiveCurve, const NUM_WINDOWS: usize, const WINDOW_SIZE: usize> {
pub bases: Arc<Vec<Vec<G>>>,
/* private fields */
}
Fields
bases: Arc<Vec<Vec<G>>>
Implementations
sourceimpl<G: ProjectiveCurve, const NUM_WINDOWS: usize, const WINDOW_SIZE: usize> BHPCRH<G, NUM_WINDOWS, WINDOW_SIZE>
impl<G: ProjectiveCurve, const NUM_WINDOWS: usize, const WINDOW_SIZE: usize> BHPCRH<G, NUM_WINDOWS, WINDOW_SIZE>
Trait Implementations
sourceimpl<G: ProjectiveCurve, const NUM_WINDOWS: usize, const WINDOW_SIZE: usize> CRH for BHPCRH<G, NUM_WINDOWS, WINDOW_SIZE>
impl<G: ProjectiveCurve, const NUM_WINDOWS: usize, const WINDOW_SIZE: usize> CRH for BHPCRH<G, NUM_WINDOWS, WINDOW_SIZE>
type Output = <G::Affine as AffineCurve>::BaseField
type Parameters = Arc<Vec<Vec<G>>>
fn setup(message: &str) -> Self
fn hash_bits(&self, input: &[bool]) -> Result<Self::Output, CRHError>
fn parameters(&self) -> &Self::Parameters
fn hash(&self, input: &[u8]) -> Result<Self::Output, CRHError>
fn hash_field_elements<F: PrimeField>(
&self,
input: &[F]
) -> Result<Self::Output, CRHError>
sourceimpl<G: Clone + ProjectiveCurve, const NUM_WINDOWS: usize, const WINDOW_SIZE: usize> Clone for BHPCRH<G, NUM_WINDOWS, WINDOW_SIZE>
impl<G: Clone + ProjectiveCurve, const NUM_WINDOWS: usize, const WINDOW_SIZE: usize> Clone for BHPCRH<G, NUM_WINDOWS, WINDOW_SIZE>
sourceimpl<G: Debug + ProjectiveCurve, const NUM_WINDOWS: usize, const WINDOW_SIZE: usize> Debug for BHPCRH<G, NUM_WINDOWS, WINDOW_SIZE>
impl<G: Debug + ProjectiveCurve, const NUM_WINDOWS: usize, const WINDOW_SIZE: usize> Debug for BHPCRH<G, NUM_WINDOWS, WINDOW_SIZE>
sourceimpl<G: ProjectiveCurve, const NUM_WINDOWS: usize, const WINDOW_SIZE: usize> From<Arc<Vec<Vec<G, Global>, Global>>> for BHPCRH<G, NUM_WINDOWS, WINDOW_SIZE>
impl<G: ProjectiveCurve, const NUM_WINDOWS: usize, const WINDOW_SIZE: usize> From<Arc<Vec<Vec<G, Global>, Global>>> for BHPCRH<G, NUM_WINDOWS, WINDOW_SIZE>
sourceimpl<G: ProjectiveCurve, const NUM_WINDOWS: usize, const WINDOW_SIZE: usize> FromBytes for BHPCRH<G, NUM_WINDOWS, WINDOW_SIZE>
impl<G: ProjectiveCurve, const NUM_WINDOWS: usize, const WINDOW_SIZE: usize> FromBytes for BHPCRH<G, NUM_WINDOWS, WINDOW_SIZE>
sourceimpl<G: PartialEq + ProjectiveCurve, const NUM_WINDOWS: usize, const WINDOW_SIZE: usize> PartialEq<BHPCRH<G, NUM_WINDOWS, WINDOW_SIZE>> for BHPCRH<G, NUM_WINDOWS, WINDOW_SIZE>
impl<G: PartialEq + ProjectiveCurve, const NUM_WINDOWS: usize, const WINDOW_SIZE: usize> PartialEq<BHPCRH<G, NUM_WINDOWS, WINDOW_SIZE>> for BHPCRH<G, NUM_WINDOWS, WINDOW_SIZE>
sourceimpl<G: ProjectiveCurve, const NUM_WINDOWS: usize, const WINDOW_SIZE: usize> ToBytes for BHPCRH<G, NUM_WINDOWS, WINDOW_SIZE>
impl<G: ProjectiveCurve, const NUM_WINDOWS: usize, const WINDOW_SIZE: usize> ToBytes for BHPCRH<G, NUM_WINDOWS, WINDOW_SIZE>
sourceimpl<F: Field, G: ProjectiveCurve + ToConstraintField<F>, const NUM_WINDOWS: usize, const WINDOW_SIZE: usize> ToConstraintField<F> for BHPCRH<G, NUM_WINDOWS, WINDOW_SIZE>
impl<F: Field, G: ProjectiveCurve + ToConstraintField<F>, const NUM_WINDOWS: usize, const WINDOW_SIZE: usize> ToConstraintField<F> for BHPCRH<G, NUM_WINDOWS, WINDOW_SIZE>
fn to_field_elements(&self) -> Result<Vec<F>, ConstraintFieldError>
impl<G: Eq + ProjectiveCurve, const NUM_WINDOWS: usize, const WINDOW_SIZE: usize> Eq for BHPCRH<G, NUM_WINDOWS, WINDOW_SIZE>
impl<G: ProjectiveCurve, const NUM_WINDOWS: usize, const WINDOW_SIZE: usize> StructuralEq for BHPCRH<G, NUM_WINDOWS, WINDOW_SIZE>
impl<G: ProjectiveCurve, const NUM_WINDOWS: usize, const WINDOW_SIZE: usize> StructuralPartialEq for BHPCRH<G, NUM_WINDOWS, WINDOW_SIZE>
Auto Trait Implementations
impl<G, const NUM_WINDOWS: usize, const WINDOW_SIZE: usize> RefUnwindSafe for BHPCRH<G, NUM_WINDOWS, WINDOW_SIZE> where
G: UnwindSafe + RefUnwindSafe,
impl<G, const NUM_WINDOWS: usize, const WINDOW_SIZE: usize> Send for BHPCRH<G, NUM_WINDOWS, WINDOW_SIZE>
impl<G, const NUM_WINDOWS: usize, const WINDOW_SIZE: usize> Sync for BHPCRH<G, NUM_WINDOWS, WINDOW_SIZE>
impl<G, const NUM_WINDOWS: usize, const WINDOW_SIZE: usize> Unpin for BHPCRH<G, NUM_WINDOWS, WINDOW_SIZE> where
G: Unpin,
impl<G, const NUM_WINDOWS: usize, const WINDOW_SIZE: usize> UnwindSafe for BHPCRH<G, NUM_WINDOWS, WINDOW_SIZE> where
G: UnwindSafe + RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcepub fn equivalent(&self, key: &K) -> bool
pub fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more