pub struct PreimageRelationWithoutInput {}Expand description
Preimage relation : H(preimage)=hash where:
- hash : public input
- preimage : private witness
Implementations§
Source§impl PreimageRelationWithoutInput
impl PreimageRelationWithoutInput
pub fn new() -> Self
pub fn hash(&self) -> Result<&CircuitField, SynthesisError>
pub fn preimage(&self) -> Result<&CircuitField, SynthesisError>
Trait Implementations§
Source§impl Clone for PreimageRelationWithoutInput
impl Clone for PreimageRelationWithoutInput
Source§fn clone(&self) -> PreimageRelationWithoutInput
fn clone(&self) -> PreimageRelationWithoutInput
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ConstraintSynthesizer<Fp256<FrParameters>> for PreimageRelationWithoutInput
Available on crate feature circuit only.
impl ConstraintSynthesizer<Fp256<FrParameters>> for PreimageRelationWithoutInput
Available on crate feature
circuit only.Source§fn generate_constraints(self, cs: ConstraintSystemRef<Fr>) -> Result<()>
fn generate_constraints(self, cs: ConstraintSystemRef<Fr>) -> Result<()>
Drives generation of new constraints inside
cs.Source§impl Debug for PreimageRelationWithoutInput
impl Debug for PreimageRelationWithoutInput
Source§impl From<PreimageRelationWithPublicInput> for PreimageRelationWithoutInput
impl From<PreimageRelationWithPublicInput> for PreimageRelationWithoutInput
Source§fn from(obj: PreimageRelationWithPublicInput) -> Self
fn from(obj: PreimageRelationWithPublicInput) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PreimageRelationWithoutInput
impl RefUnwindSafe for PreimageRelationWithoutInput
impl Send for PreimageRelationWithoutInput
impl Sync for PreimageRelationWithoutInput
impl Unpin for PreimageRelationWithoutInput
impl UnwindSafe for PreimageRelationWithoutInput
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