pub enum CallStack<N: Network> {
Authorize(Vec<Request<N>>, Option<PrivateKey<N>>, Authorization<N>),
AuthorizeMocked(Vec<Request<N>>, Address<N>, Authorization<N>),
Synthesize(Vec<Request<N>>, PrivateKey<N>, Authorization<N>),
CheckDeployment(Vec<Request<N>>, PrivateKey<N>, Assignments<N>, Option<u64>, Option<u64>),
Evaluate(Authorization<N>),
Execute(Authorization<N>, Arc<RwLock<Trace<N>>>, Translations<N>),
PackageRun(Vec<Request<N>>, PrivateKey<N>, Assignments<N>),
}Expand description
The CallStack is used to track the current state of the program execution.
Variants§
Authorize(Vec<Request<N>>, Option<PrivateKey<N>>, Authorization<N>)
Authorize an Execute transaction.
AuthorizeMocked(Vec<Request<N>>, Address<N>, Authorization<N>)
Mock an evaluation for cost estimation.
Synthesize(Vec<Request<N>>, PrivateKey<N>, Authorization<N>)
Synthesize a function circuit before a Deploy transaction.
CheckDeployment(Vec<Request<N>>, PrivateKey<N>, Assignments<N>, Option<u64>, Option<u64>)
Validate a Deploy transaction’s function circuit.
Evaluate(Authorization<N>)
Evaluate a function.
Execute(Authorization<N>, Arc<RwLock<Trace<N>>>, Translations<N>)
Execute a function and produce a proof.
PackageRun(Vec<Request<N>>, PrivateKey<N>, Assignments<N>)
Execute a function and create the circuit assignment.
Implementations§
Source§impl<N: Network> CallStack<N>
impl<N: Network> CallStack<N>
Sourcepub fn evaluate(authorization: Authorization<N>) -> Result<Self>
pub fn evaluate(authorization: Authorization<N>) -> Result<Self>
Initializes a call stack as Self::Evaluate.
Sourcepub fn execute(
authorization: Authorization<N>,
trace: Arc<RwLock<Trace<N>>>,
translations: Translations<N>,
) -> Result<Self>
pub fn execute( authorization: Authorization<N>, trace: Arc<RwLock<Trace<N>>>, translations: Translations<N>, ) -> Result<Self>
Initializes a call stack as Self::Execute.
Trait Implementations§
Auto Trait Implementations§
impl<N> Freeze for CallStack<N>where
<N as Environment>::Projective: Freeze,
<N as Environment>::Field: Freeze,
<N as Environment>::Scalar: Freeze,
impl<N> !RefUnwindSafe for CallStack<N>
impl<N> Send for CallStack<N>
impl<N> Sync for CallStack<N>
impl<N> Unpin for CallStack<N>where
<N as Environment>::Projective: Unpin,
<N as Environment>::Field: Unpin,
<N as Environment>::Scalar: Unpin,
N: Unpin,
impl<N> UnsafeUnpin for CallStack<N>where
<N as Environment>::Projective: UnsafeUnpin,
<N as Environment>::Field: UnsafeUnpin,
<N as Environment>::Scalar: UnsafeUnpin,
impl<N> !UnwindSafe for CallStack<N>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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