[][src]Struct snarkos_dpc::base_dpc::outer_circuit::outer_circuit::OuterCircuit

pub struct OuterCircuit<C: BaseDPCComponents> { /* fields omitted */ }

Implementations

impl<C: BaseDPCComponents> OuterCircuit<C>[src]

pub fn blank(
    system_parameters: &SystemParameters<C>,
    ledger_parameters: &C::MerkleParameters,
    inner_snark_vk: &<C::InnerSNARK as SNARK>::VerificationParameters,
    inner_snark_proof: &<C::InnerSNARK as SNARK>::Proof,
    program_snark_vk_and_proof: &PrivateProgramInput
) -> Self
[src]

pub fn new(
    system_parameters: &SystemParameters<C>,
    ledger_parameters: &C::MerkleParameters,
    ledger_digest: &MerkleTreeDigest<C::MerkleParameters>,
    old_serial_numbers: &Vec<<C::AccountSignature as SignatureScheme>::PublicKey>,
    new_commitments: &Vec<<C::RecordCommitment as CommitmentScheme>::Output>,
    new_encrypted_record_hashes: &[<C::EncryptedRecordCRH as CRH>::Output],
    memo: &[u8; 32],
    value_balance: AleoAmount,
    network_id: u8,
    inner_snark_vk: &<C::InnerSNARK as SNARK>::VerificationParameters,
    inner_snark_proof: &<C::InnerSNARK as SNARK>::Proof,
    old_private_program_inputs: &[PrivateProgramInput],
    new_private_program_inputs: &[PrivateProgramInput],
    program_commitment: &<C::ProgramVerificationKeyCommitment as CommitmentScheme>::Output,
    program_randomness: &<C::ProgramVerificationKeyCommitment as CommitmentScheme>::Randomness,
    local_data_root: &<C::LocalDataCRH as CRH>::Output,
    inner_snark_id: &<C::InnerSNARKVerificationKeyCRH as CRH>::Output
) -> Self
[src]

Trait Implementations

impl<C: BaseDPCComponents> Clone for OuterCircuit<C> where
    C: BaseDPCComponents
[src]

impl<C: BaseDPCComponents> ConstraintSynthesizer<<C as DPCComponents>::OuterField> for OuterCircuit<C> where
    <C::AccountCommitment as CommitmentScheme>::Parameters: ToConstraintField<C::InnerField>,
    <C::AccountCommitment as CommitmentScheme>::Output: ToConstraintField<C::InnerField>,
    <C::AccountEncryption as EncryptionScheme>::Parameters: ToConstraintField<C::InnerField>,
    <C::AccountSignature as SignatureScheme>::Parameters: ToConstraintField<C::InnerField>,
    <C::AccountSignature as SignatureScheme>::PublicKey: ToConstraintField<C::InnerField>,
    <C::RecordCommitment as CommitmentScheme>::Parameters: ToConstraintField<C::InnerField>,
    <C::RecordCommitment as CommitmentScheme>::Output: ToConstraintField<C::InnerField>,
    <C::EncryptedRecordCRH as CRH>::Parameters: ToConstraintField<C::InnerField>,
    <C::EncryptedRecordCRH as CRH>::Output: ToConstraintField<C::InnerField>,
    <C::SerialNumberNonceCRH as CRH>::Parameters: ToConstraintField<C::InnerField>,
    <C::ProgramVerificationKeyCommitment as CommitmentScheme>::Parameters: ToConstraintField<C::InnerField>,
    <C::ProgramVerificationKeyCommitment as CommitmentScheme>::Output: ToConstraintField<C::InnerField>,
    <C::LocalDataCRH as CRH>::Parameters: ToConstraintField<C::InnerField>,
    <C::LocalDataCRH as CRH>::Output: ToConstraintField<C::InnerField>,
    <<C::MerkleParameters as MerkleParameters>::H as CRH>::Parameters: ToConstraintField<C::InnerField>,
    MerkleTreeDigest<C::MerkleParameters>: ToConstraintField<C::InnerField>, 
[src]

Auto Trait Implementations

impl<C> RefUnwindSafe for OuterCircuit<C> where
    <C as DPCComponents>::AccountCommitment: RefUnwindSafe,
    <C as DPCComponents>::AccountEncryption: RefUnwindSafe,
    <C as DPCComponents>::AccountSignature: RefUnwindSafe + SignatureScheme,
    <C as DPCComponents>::EncryptedRecordCRH: CRH + RefUnwindSafe,
    <<C as BaseDPCComponents>::MerkleParameters as MerkleParameters>::H: CRH,
    <C as BaseDPCComponents>::InnerSNARK: SNARK,
    <C as DPCComponents>::InnerSNARKVerificationKeyCRH: CRH + RefUnwindSafe,
    <C as DPCComponents>::LocalDataCRH: CRH + RefUnwindSafe,
    <C as DPCComponents>::LocalDataCommitment: RefUnwindSafe,
    <C as BaseDPCComponents>::MerkleParameters: MerkleParameters + RefUnwindSafe,
    <<C as DPCComponents>::EncryptedRecordCRH as CRH>::Output: RefUnwindSafe,
    <<<C as BaseDPCComponents>::MerkleParameters as MerkleParameters>::H as CRH>::Output: RefUnwindSafe,
    <<C as DPCComponents>::InnerSNARKVerificationKeyCRH as CRH>::Output: RefUnwindSafe,
    <<C as DPCComponents>::LocalDataCRH as CRH>::Output: RefUnwindSafe,
    <<C as DPCComponents>::ProgramVerificationKeyCommitment as CommitmentScheme>::Output: RefUnwindSafe,
    <<C as DPCComponents>::RecordCommitment as CommitmentScheme>::Output: RefUnwindSafe,
    <C as DPCComponents>::ProgramVerificationKeyCRH: RefUnwindSafe,
    <C as DPCComponents>::ProgramVerificationKeyCommitment: CommitmentScheme + RefUnwindSafe,
    <<C as BaseDPCComponents>::InnerSNARK as SNARK>::Proof: RefUnwindSafe,
    <<C as DPCComponents>::AccountSignature as SignatureScheme>::PublicKey: RefUnwindSafe,
    <<C as DPCComponents>::ProgramVerificationKeyCommitment as CommitmentScheme>::Randomness: RefUnwindSafe,
    <C as DPCComponents>::RecordCommitment: CommitmentScheme + RefUnwindSafe,
    <C as DPCComponents>::SerialNumberNonceCRH: RefUnwindSafe,
    <<C as BaseDPCComponents>::InnerSNARK as SNARK>::VerificationParameters: RefUnwindSafe

impl<C> Send for OuterCircuit<C> where
    <C as DPCComponents>::AccountCommitment: Send,
    <C as DPCComponents>::AccountEncryption: Send,
    <C as DPCComponents>::AccountSignature: Send + SignatureScheme,
    <C as DPCComponents>::EncryptedRecordCRH: CRH + Send,
    <<C as BaseDPCComponents>::MerkleParameters as MerkleParameters>::H: CRH,
    <C as BaseDPCComponents>::InnerSNARK: SNARK,
    <C as DPCComponents>::InnerSNARKVerificationKeyCRH: CRH + Send,
    <C as DPCComponents>::LocalDataCRH: CRH + Send,
    <C as DPCComponents>::LocalDataCommitment: Send,
    <C as BaseDPCComponents>::MerkleParameters: MerkleParameters + Send,
    <<C as DPCComponents>::EncryptedRecordCRH as CRH>::Output: Send,
    <<<C as BaseDPCComponents>::MerkleParameters as MerkleParameters>::H as CRH>::Output: Send,
    <<C as DPCComponents>::InnerSNARKVerificationKeyCRH as CRH>::Output: Send,
    <<C as DPCComponents>::LocalDataCRH as CRH>::Output: Send,
    <<C as DPCComponents>::ProgramVerificationKeyCommitment as CommitmentScheme>::Output: Send,
    <<C as DPCComponents>::RecordCommitment as CommitmentScheme>::Output: Send,
    <C as DPCComponents>::ProgramVerificationKeyCRH: Send,
    <C as DPCComponents>::ProgramVerificationKeyCommitment: CommitmentScheme + Send,
    <<C as BaseDPCComponents>::InnerSNARK as SNARK>::Proof: Send,
    <<C as DPCComponents>::AccountSignature as SignatureScheme>::PublicKey: Send,
    <<C as DPCComponents>::ProgramVerificationKeyCommitment as CommitmentScheme>::Randomness: Send,
    <C as DPCComponents>::RecordCommitment: CommitmentScheme + Send,
    <C as DPCComponents>::SerialNumberNonceCRH: Send,
    <<C as BaseDPCComponents>::InnerSNARK as SNARK>::VerificationParameters: Send

impl<C> Sync for OuterCircuit<C> where
    <C as DPCComponents>::AccountCommitment: Sync,
    <C as DPCComponents>::AccountEncryption: Sync,
    <C as DPCComponents>::AccountSignature: SignatureScheme + Sync,
    <C as DPCComponents>::EncryptedRecordCRH: CRH + Sync,
    <<C as BaseDPCComponents>::MerkleParameters as MerkleParameters>::H: CRH,
    <C as BaseDPCComponents>::InnerSNARK: SNARK,
    <C as DPCComponents>::InnerSNARKVerificationKeyCRH: CRH + Sync,
    <C as DPCComponents>::LocalDataCRH: CRH + Sync,
    <C as DPCComponents>::LocalDataCommitment: Sync,
    <C as BaseDPCComponents>::MerkleParameters: MerkleParameters + Sync,
    <<C as DPCComponents>::EncryptedRecordCRH as CRH>::Output: Sync,
    <<<C as BaseDPCComponents>::MerkleParameters as MerkleParameters>::H as CRH>::Output: Sync,
    <<C as DPCComponents>::InnerSNARKVerificationKeyCRH as CRH>::Output: Sync,
    <<C as DPCComponents>::LocalDataCRH as CRH>::Output: Sync,
    <<C as DPCComponents>::ProgramVerificationKeyCommitment as CommitmentScheme>::Output: Sync,
    <<C as DPCComponents>::RecordCommitment as CommitmentScheme>::Output: Sync,
    <C as DPCComponents>::ProgramVerificationKeyCRH: Sync,
    <C as DPCComponents>::ProgramVerificationKeyCommitment: CommitmentScheme + Sync,
    <<C as BaseDPCComponents>::InnerSNARK as SNARK>::Proof: Sync,
    <<C as DPCComponents>::AccountSignature as SignatureScheme>::PublicKey: Sync,
    <<C as DPCComponents>::ProgramVerificationKeyCommitment as CommitmentScheme>::Randomness: Sync,
    <C as DPCComponents>::RecordCommitment: CommitmentScheme + Sync,
    <C as DPCComponents>::SerialNumberNonceCRH: Sync,
    <<C as BaseDPCComponents>::InnerSNARK as SNARK>::VerificationParameters: Sync

impl<C> Unpin for OuterCircuit<C> where
    <C as DPCComponents>::AccountCommitment: Unpin,
    <C as DPCComponents>::AccountEncryption: Unpin,
    <C as DPCComponents>::AccountSignature: SignatureScheme + Unpin,
    <C as DPCComponents>::EncryptedRecordCRH: CRH + Unpin,
    <<C as BaseDPCComponents>::MerkleParameters as MerkleParameters>::H: CRH,
    <C as BaseDPCComponents>::InnerSNARK: SNARK,
    <C as DPCComponents>::InnerSNARKVerificationKeyCRH: CRH + Unpin,
    <C as DPCComponents>::LocalDataCRH: CRH + Unpin,
    <C as DPCComponents>::LocalDataCommitment: Unpin,
    <C as BaseDPCComponents>::MerkleParameters: MerkleParameters + Unpin,
    <<C as DPCComponents>::EncryptedRecordCRH as CRH>::Output: Unpin,
    <<<C as BaseDPCComponents>::MerkleParameters as MerkleParameters>::H as CRH>::Output: Unpin,
    <<C as DPCComponents>::InnerSNARKVerificationKeyCRH as CRH>::Output: Unpin,
    <<C as DPCComponents>::LocalDataCRH as CRH>::Output: Unpin,
    <<C as DPCComponents>::ProgramVerificationKeyCommitment as CommitmentScheme>::Output: Unpin,
    <<C as DPCComponents>::RecordCommitment as CommitmentScheme>::Output: Unpin,
    <C as DPCComponents>::ProgramVerificationKeyCRH: Unpin,
    <C as DPCComponents>::ProgramVerificationKeyCommitment: CommitmentScheme + Unpin,
    <<C as BaseDPCComponents>::InnerSNARK as SNARK>::Proof: Unpin,
    <<C as DPCComponents>::AccountSignature as SignatureScheme>::PublicKey: Unpin,
    <<C as DPCComponents>::ProgramVerificationKeyCommitment as CommitmentScheme>::Randomness: Unpin,
    <C as DPCComponents>::RecordCommitment: CommitmentScheme + Unpin,
    <C as DPCComponents>::SerialNumberNonceCRH: Unpin,
    <<C as BaseDPCComponents>::InnerSNARK as SNARK>::VerificationParameters: Unpin

impl<C> UnwindSafe for OuterCircuit<C> where
    <C as DPCComponents>::AccountCommitment: UnwindSafe,
    <C as DPCComponents>::AccountEncryption: UnwindSafe,
    <C as DPCComponents>::AccountSignature: SignatureScheme + UnwindSafe,
    <C as DPCComponents>::EncryptedRecordCRH: CRH + UnwindSafe,
    <<C as BaseDPCComponents>::MerkleParameters as MerkleParameters>::H: CRH,
    <C as BaseDPCComponents>::InnerSNARK: SNARK,
    <C as DPCComponents>::InnerSNARKVerificationKeyCRH: CRH + UnwindSafe,
    <C as DPCComponents>::LocalDataCRH: CRH + UnwindSafe,
    <C as DPCComponents>::LocalDataCommitment: UnwindSafe,
    <C as BaseDPCComponents>::MerkleParameters: MerkleParameters + UnwindSafe,
    <<C as DPCComponents>::EncryptedRecordCRH as CRH>::Output: UnwindSafe,
    <<<C as BaseDPCComponents>::MerkleParameters as MerkleParameters>::H as CRH>::Output: UnwindSafe,
    <<C as DPCComponents>::InnerSNARKVerificationKeyCRH as CRH>::Output: UnwindSafe,
    <<C as DPCComponents>::LocalDataCRH as CRH>::Output: UnwindSafe,
    <<C as DPCComponents>::ProgramVerificationKeyCommitment as CommitmentScheme>::Output: UnwindSafe,
    <<C as DPCComponents>::RecordCommitment as CommitmentScheme>::Output: UnwindSafe,
    <C as DPCComponents>::ProgramVerificationKeyCRH: UnwindSafe,
    <C as DPCComponents>::ProgramVerificationKeyCommitment: CommitmentScheme + UnwindSafe,
    <<C as BaseDPCComponents>::InnerSNARK as SNARK>::Proof: UnwindSafe,
    <<C as DPCComponents>::AccountSignature as SignatureScheme>::PublicKey: UnwindSafe,
    <<C as DPCComponents>::ProgramVerificationKeyCommitment as CommitmentScheme>::Randomness: UnwindSafe,
    <C as DPCComponents>::RecordCommitment: CommitmentScheme + UnwindSafe,
    <C as DPCComponents>::SerialNumberNonceCRH: UnwindSafe,
    <<C as BaseDPCComponents>::InnerSNARK as SNARK>::VerificationParameters: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,