pub enum EncodedScriptArgs {
Word(Word),
Preimage(Vec<Felt>),
}Expand description
Encoded transaction-script arguments produced by ScriptArgs::encode.
Variants§
Word(Word)
The encoding statically fits the TX_SCRIPT_ARGS word and is packed into it directly,
zero-padded.
Preimage(Vec<Felt>)
The type uses commitment mode (a longer or variable-length encoding): these felts
(zero-padded to a whole number of words) are the advice-map preimage of the args word.
The host hashes them with Poseidon2::hash_elements — the Miden VM’s native hash — to
obtain the args word, and registers (args_word, felts) in the advice map.
Trait Implementations§
Source§impl Clone for EncodedScriptArgs
impl Clone for EncodedScriptArgs
Source§fn clone(&self) -> EncodedScriptArgs
fn clone(&self) -> EncodedScriptArgs
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EncodedScriptArgs
impl Debug for EncodedScriptArgs
impl Eq for EncodedScriptArgs
Source§impl PartialEq for EncodedScriptArgs
impl PartialEq for EncodedScriptArgs
impl StructuralPartialEq for EncodedScriptArgs
Auto Trait Implementations§
impl Freeze for EncodedScriptArgs
impl RefUnwindSafe for EncodedScriptArgs
impl Send for EncodedScriptArgs
impl Sync for EncodedScriptArgs
impl Unpin for EncodedScriptArgs
impl UnsafeUnpin for EncodedScriptArgs
impl UnwindSafe for EncodedScriptArgs
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