pub struct Hint<P>(pub Array<Array<bool, U256>, P::K>)
where
P: SignatureParams;Tuple Fields§
§0: Array<Array<bool, U256>, P::K>Implementations§
Source§impl<P> Hint<P>where
P: SignatureParams,
impl<P> Hint<P>where
P: SignatureParams,
pub fn new(z: &Vector<BaseField, P::K>, r: &Vector<BaseField, P::K>) -> Self
pub fn hamming_weight(&self) -> usize
pub fn use_hint(&self, r: &Vector<BaseField, P::K>) -> Vector<BaseField, P::K>
pub fn bit_pack(&self) -> Array<u8, <P as SignatureParams>::HintSize>
fn monotonic(a: &[usize]) -> bool
pub fn bit_unpack( y: &Array<u8, <P as SignatureParams>::HintSize>, ) -> Option<Self>
Trait Implementations§
Source§impl<P> Default for Hint<P>where
P: SignatureParams,
impl<P> Default for Hint<P>where
P: SignatureParams,
impl<P> StructuralPartialEq for Hint<P>where
P: SignatureParams,
Auto Trait Implementations§
impl<P> Freeze for Hint<P>
impl<P> RefUnwindSafe for Hint<P>
impl<P> Send for Hint<P>
impl<P> Sync for Hint<P>
impl<P> Unpin for Hint<P>
impl<P> UnwindSafe for Hint<P>
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