pub struct ZkpProver {}
Expand description
Prover for creating zero-knowledge proofs
Implementations§
Source§impl ZkpProver
impl ZkpProver
Sourcepub fn prove_secret_value(
&mut self,
_secret: &[u8],
_public_statement: &[u8],
) -> Result<ZkpProof>
pub fn prove_secret_value( &mut self, _secret: &[u8], _public_statement: &[u8], ) -> Result<ZkpProof>
Prove knowledge of a secret value without revealing it
Sourcepub fn prove_computation(
&mut self,
_computation: &Computation,
_inputs: &[u8],
_outputs: &[u8],
) -> Result<ZkpProof>
pub fn prove_computation( &mut self, _computation: &Computation, _inputs: &[u8], _outputs: &[u8], ) -> Result<ZkpProof>
Prove that a computation was performed correctly
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ZkpProver
impl RefUnwindSafe for ZkpProver
impl Send for ZkpProver
impl Sync for ZkpProver
impl Unpin for ZkpProver
impl UnwindSafe for ZkpProver
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