pub struct AcvmExecutor;Expand description
Executor for Noir ACIR/Brillig bytecode via the ACVM.
Implementations§
Source§impl AcvmExecutor
impl AcvmExecutor
Sourcepub async fn execute_private(
artifact: &ContractArtifact,
function_name: &str,
initial_witness_fields: &[Fr],
oracle: &mut dyn OracleCallback,
) -> Result<AcvmExecutionOutput, Error>
pub async fn execute_private( artifact: &ContractArtifact, function_name: &str, initial_witness_fields: &[Fr], oracle: &mut dyn OracleCallback, ) -> Result<AcvmExecutionOutput, Error>
Execute a constrained (private) function from a contract artifact.
Returns the raw ACVM output. The caller (oracle) is responsible for
assembling side effects into a PrivateCallExecutionResult.
Sourcepub async fn execute_utility(
artifact: &ContractArtifact,
function_name: &str,
args: &[Fr],
oracle: &mut dyn OracleCallback,
) -> Result<UtilityResult, Error>
pub async fn execute_utility( artifact: &ContractArtifact, function_name: &str, args: &[Fr], oracle: &mut dyn OracleCallback, ) -> Result<UtilityResult, Error>
Execute a utility (unconstrained/Brillig) function.
Auto Trait Implementations§
impl Freeze for AcvmExecutor
impl RefUnwindSafe for AcvmExecutor
impl Send for AcvmExecutor
impl Sync for AcvmExecutor
impl Unpin for AcvmExecutor
impl UnwindSafe for AcvmExecutor
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more