[−][src]Trait snarkvm_models::dpc::program::Program
Associated Types
type LocalData[src]
type PublicInput[src]
type PrivateWitness[src]
type ProvingParameters[src]
type VerificationParameters[src]
Required methods
pub fn execute<R: Rng>(
&self,
proving_key: &Self::ProvingParameters,
verification_key: &Self::VerificationParameters,
local_data: &Self::LocalData,
position: u8,
rng: &mut R
) -> Result<Self::PrivateWitness, DPCError>[src]
&self,
proving_key: &Self::ProvingParameters,
verification_key: &Self::VerificationParameters,
local_data: &Self::LocalData,
position: u8,
rng: &mut R
) -> Result<Self::PrivateWitness, DPCError>
Executes and returns the program proof
pub fn evaluate(
&self,
primary: &Self::PublicInput,
witness: &Self::PrivateWitness
) -> bool[src]
&self,
primary: &Self::PublicInput,
witness: &Self::PrivateWitness
) -> bool
Returns the evaluation of the program on given input and witness.
pub fn into_compact_repr(&self) -> Vec<u8>[src]
Returns the program identity