Type Alias SnarkAccount

Source
pub type SnarkAccount = WithLazyHash<Box<Account>>;

Aliased Type§

pub struct SnarkAccount {
    pub data: Box<Account>,
    hash: LazyValue<Fp256<FpParameters>, Witness<Fp256<FpParameters>>>,
}

Fields§

§data: Box<Account>§hash: LazyValue<Fp256<FpParameters>, Witness<Fp256<FpParameters>>>

Trait Implementations§

Source§

impl AccountInterface for SnarkAccount

Source§

type W = Witness<Fp256<FpParameters>>

Source§

type D = ZkappSingleData

Source§

type Bool = CircuitVar<Boolean>

Source§

type Balance = CheckedBalance<Fp256<FpParameters>>

Source§

type GlobalSlot = CheckedSlot<Fp256<FpParameters>>

Source§

type VerificationKeyHash = SnarkVerificationKeyHash

Source§

fn register_verification_key(&self, data: &Self::D, w: &mut Self::W)

Source§

fn get(&self) -> &Account

Source§

fn get_mut(&mut self) -> &mut Account

Source§

fn set_delegate(&mut self, new: CompressedPubKey)

Source§

fn zkapp(&self) -> MyCow<'_, ZkAppAccount>

Source§

fn zkapp_mut(&mut self) -> &mut ZkAppAccount

Source§

fn verification_key_hash(&self) -> Self::VerificationKeyHash

Source§

fn set_token_id(&mut self, token_id: TokenId)

Source§

fn is_timed(&self) -> Self::Bool

Source§

fn balance(&self) -> Self::Balance

Source§

fn set_balance(&mut self, balance: Self::Balance)

Source§

fn check_timing( &self, txn_global_slot: &Self::GlobalSlot, w: &mut Self::W, ) -> (TimingValidation<Self::Bool>, Timing)

Source§

fn make_zkapp(&mut self)

Source§

fn unmake_zkapp(&mut self)

Source§

fn proved_state(&self) -> Self::Bool

Source§

fn set_proved_state(&mut self, proved_state: Self::Bool)

Source§

fn app_state(&self) -> [Fp; 8]

Source§

fn last_action_slot(&self) -> Self::GlobalSlot

Source§

fn set_last_action_slot(&mut self, slot: Self::GlobalSlot)