Struct sov_modules_api::default_context::DefaultContext
source · pub struct DefaultContext {
pub sender: Address,
}
Fields§
§sender: Address
Trait Implementations§
source§impl Clone for DefaultContext
impl Clone for DefaultContext
source§fn clone(&self) -> DefaultContext
fn clone(&self) -> DefaultContext
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Context for DefaultContext
impl Context for DefaultContext
source§impl Debug for DefaultContext
impl Debug for DefaultContext
source§impl<'de> Deserialize<'de> for DefaultContext
impl<'de> Deserialize<'de> for DefaultContext
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<DefaultContext> for DefaultContext
impl PartialEq<DefaultContext> for DefaultContext
source§fn eq(&self, other: &DefaultContext) -> bool
fn eq(&self, other: &DefaultContext) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for DefaultContext
impl Serialize for DefaultContext
source§impl Spec for DefaultContext
impl Spec for DefaultContext
§type Address = Address
type Address = Address
The Address type used on the rollup. Typically calculated as the hash of a public key.
§type Storage = ProverStorage<DefaultStorageSpec>
type Storage = ProverStorage<DefaultStorageSpec>
Authenticated state storage used by the rollup. Typically some variant of a merkle-patricia trie.
§type PublicKey = DefaultPublicKey
type PublicKey = DefaultPublicKey
The public key used for digital signatures
§type Hasher = CoreWrapper<CtVariableCoreWrapper<Sha256VarCore, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, OidSha256>>
type Hasher = CoreWrapper<CtVariableCoreWrapper<Sha256VarCore, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, OidSha256>>
The hasher preferred by the rollup, such as Sha256 or Poseidon.
§type Signature = DefaultSignature
type Signature = DefaultSignature
The digital signature scheme used by the rollup
§type Witness = ArrayWitness
type Witness = ArrayWitness
A structure containing the non-deterministic inputs from the prover to the zk-circuit
impl StructuralPartialEq for DefaultContext
Auto Trait Implementations§
impl RefUnwindSafe for DefaultContext
impl Send for DefaultContext
impl Sync for DefaultContext
impl Unpin for DefaultContext
impl UnwindSafe for DefaultContext
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