Struct snarkvm_dpc::circuits::outer_circuit::OuterCircuit
source · [−]pub struct OuterCircuit<N: Network> { /* private fields */ }
Implementations
sourceimpl<N: Network> OuterCircuit<N>
impl<N: Network> OuterCircuit<N>
pub fn blank(
inner_verifying_key: <N::InnerSNARK as SNARK>::VerifyingKey,
inner_proof: N::InnerProof,
execution: Execution<N>
) -> Self
pub fn new(
public: OuterPublicVariables<N>,
private: OuterPrivateVariables<N>
) -> Self
Trait Implementations
sourceimpl<N: Network> Clone for OuterCircuit<N> where
N: Network,
impl<N: Network> Clone for OuterCircuit<N> where
N: Network,
sourceimpl<N: Network> ConstraintSynthesizer<<N as Network>::OuterScalarField> for OuterCircuit<N>
impl<N: Network> ConstraintSynthesizer<<N as Network>::OuterScalarField> for OuterCircuit<N>
sourcefn generate_constraints<CS: ConstraintSystem<N::OuterScalarField>>(
&self,
cs: &mut CS
) -> Result<(), SynthesisError>
fn generate_constraints<CS: ConstraintSystem<N::OuterScalarField>>(
&self,
cs: &mut CS
) -> Result<(), SynthesisError>
Drives generation of new constraints inside CS
.
Auto Trait Implementations
impl<N> RefUnwindSafe for OuterCircuit<N> where
<N as Network>::InnerCircuitID: RefUnwindSafe,
<N as Network>::InnerProof: RefUnwindSafe,
<N as Network>::LedgerRoot: RefUnwindSafe,
<N as Network>::OuterScalarField: RefUnwindSafe,
<N as Network>::ProgramID: RefUnwindSafe,
<N as Network>::ProgramIDParameters: RefUnwindSafe,
<N as Network>::ProgramProof: RefUnwindSafe,
<N as Network>::ProgramVerifyingKey: RefUnwindSafe,
<N as Network>::TransactionID: RefUnwindSafe,
<N as Network>::TransitionID: RefUnwindSafe,
<<N as Network>::InnerSNARK as SNARK>::VerifyingKey: RefUnwindSafe,
impl<N> Send for OuterCircuit<N>
impl<N> Sync for OuterCircuit<N>
impl<N> Unpin for OuterCircuit<N> where
<N as Network>::InnerCircuitID: Unpin,
<N as Network>::InnerProof: Unpin,
<N as Network>::LedgerRoot: Unpin,
<N as Network>::OuterScalarField: Unpin,
<N as Network>::ProgramID: Unpin,
<N as Network>::ProgramProof: Unpin,
<N as Network>::ProgramVerifyingKey: Unpin,
<N as Network>::TransactionID: Unpin,
<N as Network>::TransitionID: Unpin,
<<N as Network>::InnerSNARK as SNARK>::VerifyingKey: Unpin,
impl<N> UnwindSafe for OuterCircuit<N> where
<N as Network>::InnerCircuitID: UnwindSafe,
<N as Network>::InnerProof: UnwindSafe,
<N as Network>::LedgerRoot: UnwindSafe,
<N as Network>::OuterScalarField: UnwindSafe,
<N as Network>::ProgramID: UnwindSafe,
<N as Network>::ProgramIDParameters: RefUnwindSafe,
<N as Network>::ProgramProof: UnwindSafe,
<N as Network>::ProgramVerifyingKey: UnwindSafe,
<N as Network>::TransactionID: UnwindSafe,
<N as Network>::TransitionID: UnwindSafe,
<<N as Network>::InnerSNARK as SNARK>::VerifyingKey: UnwindSafe,
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
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