[][src]Struct snarkos_dpc::base_dpc::program::noop_program_circuit::NoopCircuit

pub struct NoopCircuit<C: BaseDPCComponents> {
    pub system_parameters: Option<SystemParameters<C>>,
    pub local_data_root: Option<<C::LocalDataCRH as CRH>::Output>,
    pub position: u8,
}

Always-accept program

Fields

system_parameters: Option<SystemParameters<C>>

System parameters

local_data_root: Option<<C::LocalDataCRH as CRH>::Output>

Commitment to the program input.

position: u8

Record position

Implementations

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

pub fn blank(system_parameters: &SystemParameters<C>) -> Self[src]

pub fn new(
    system_parameters: &SystemParameters<C>,
    local_data_root: &<C::LocalDataCRH as CRH>::Output,
    position: u8
) -> Self
[src]

Trait Implementations

impl<C: BaseDPCComponents> ConstraintSynthesizer<<C as DPCComponents>::InnerField> for NoopCircuit<C>[src]

Auto Trait Implementations

impl<C> RefUnwindSafe for NoopCircuit<C> where
    <C as DPCComponents>::AccountCommitment: RefUnwindSafe,
    <C as DPCComponents>::AccountEncryption: RefUnwindSafe,
    <C as DPCComponents>::AccountSignature: RefUnwindSafe,
    <C as DPCComponents>::EncryptedRecordCRH: RefUnwindSafe,
    <C as DPCComponents>::InnerSNARKVerificationKeyCRH: RefUnwindSafe,
    <C as DPCComponents>::LocalDataCRH: CRH + RefUnwindSafe,
    <C as DPCComponents>::LocalDataCommitment: RefUnwindSafe,
    <<C as DPCComponents>::LocalDataCRH as CRH>::Output: RefUnwindSafe,
    <C as DPCComponents>::ProgramVerificationKeyCRH: RefUnwindSafe,
    <C as DPCComponents>::ProgramVerificationKeyCommitment: RefUnwindSafe,
    <C as DPCComponents>::RecordCommitment: RefUnwindSafe,
    <C as DPCComponents>::SerialNumberNonceCRH: RefUnwindSafe

impl<C> Send for NoopCircuit<C> where
    <C as DPCComponents>::AccountCommitment: Send,
    <C as DPCComponents>::AccountEncryption: Send,
    <C as DPCComponents>::AccountSignature: Send,
    <C as DPCComponents>::EncryptedRecordCRH: Send,
    <C as DPCComponents>::InnerSNARKVerificationKeyCRH: Send,
    <C as DPCComponents>::LocalDataCRH: CRH + Send,
    <C as DPCComponents>::LocalDataCommitment: Send,
    <<C as DPCComponents>::LocalDataCRH as CRH>::Output: Send,
    <C as DPCComponents>::ProgramVerificationKeyCRH: Send,
    <C as DPCComponents>::ProgramVerificationKeyCommitment: Send,
    <C as DPCComponents>::RecordCommitment: Send,
    <C as DPCComponents>::SerialNumberNonceCRH: Send

impl<C> Sync for NoopCircuit<C> where
    <C as DPCComponents>::AccountCommitment: Sync,
    <C as DPCComponents>::AccountEncryption: Sync,
    <C as DPCComponents>::AccountSignature: Sync,
    <C as DPCComponents>::EncryptedRecordCRH: Sync,
    <C as DPCComponents>::InnerSNARKVerificationKeyCRH: Sync,
    <C as DPCComponents>::LocalDataCRH: CRH + Sync,
    <C as DPCComponents>::LocalDataCommitment: Sync,
    <<C as DPCComponents>::LocalDataCRH as CRH>::Output: Sync,
    <C as DPCComponents>::ProgramVerificationKeyCRH: Sync,
    <C as DPCComponents>::ProgramVerificationKeyCommitment: Sync,
    <C as DPCComponents>::RecordCommitment: Sync,
    <C as DPCComponents>::SerialNumberNonceCRH: Sync

impl<C> Unpin for NoopCircuit<C> where
    <C as DPCComponents>::AccountCommitment: Unpin,
    <C as DPCComponents>::AccountEncryption: Unpin,
    <C as DPCComponents>::AccountSignature: Unpin,
    <C as DPCComponents>::EncryptedRecordCRH: Unpin,
    <C as DPCComponents>::InnerSNARKVerificationKeyCRH: Unpin,
    <C as DPCComponents>::LocalDataCRH: CRH + Unpin,
    <C as DPCComponents>::LocalDataCommitment: Unpin,
    <<C as DPCComponents>::LocalDataCRH as CRH>::Output: Unpin,
    <C as DPCComponents>::ProgramVerificationKeyCRH: Unpin,
    <C as DPCComponents>::ProgramVerificationKeyCommitment: Unpin,
    <C as DPCComponents>::RecordCommitment: Unpin,
    <C as DPCComponents>::SerialNumberNonceCRH: Unpin

impl<C> UnwindSafe for NoopCircuit<C> where
    <C as DPCComponents>::AccountCommitment: UnwindSafe,
    <C as DPCComponents>::AccountEncryption: UnwindSafe,
    <C as DPCComponents>::AccountSignature: UnwindSafe,
    <C as DPCComponents>::EncryptedRecordCRH: UnwindSafe,
    <C as DPCComponents>::InnerSNARKVerificationKeyCRH: UnwindSafe,
    <C as DPCComponents>::LocalDataCRH: CRH + UnwindSafe,
    <C as DPCComponents>::LocalDataCommitment: UnwindSafe,
    <<C as DPCComponents>::LocalDataCRH as CRH>::Output: UnwindSafe,
    <C as DPCComponents>::ProgramVerificationKeyCRH: UnwindSafe,
    <C as DPCComponents>::ProgramVerificationKeyCommitment: UnwindSafe,
    <C as DPCComponents>::RecordCommitment: UnwindSafe,
    <C as DPCComponents>::SerialNumberNonceCRH: 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, 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>,