pub struct Commitment<C: ProjectiveCurve, W: Window> { /* private fields */ }Trait Implementations§
Source§impl<C: ProjectiveCurve, W: Window> CommitmentScheme for Commitment<C, W>
impl<C: ProjectiveCurve, W: Window> CommitmentScheme for Commitment<C, W>
type Parameters = Parameters<C>
type Randomness = Randomness<C>
type Output = <C as ProjectiveCurve>::Affine
fn setup<R: Rng>(rng: &mut R) -> Result<Self::Parameters, Error>
fn commit( parameters: &Self::Parameters, input: &[u8], randomness: &Self::Randomness, ) -> Result<Self::Output, Error>
Auto Trait Implementations§
impl<C, W> Freeze for Commitment<C, W>
impl<C, W> RefUnwindSafe for Commitment<C, W>where
C: RefUnwindSafe,
W: RefUnwindSafe,
impl<C, W> Send for Commitment<C, W>where
W: Send,
impl<C, W> Sync for Commitment<C, W>where
W: Sync,
impl<C, W> Unpin for Commitment<C, W>
impl<C, W> UnwindSafe for Commitment<C, W>where
C: UnwindSafe,
W: UnwindSafe,
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