aztec-nr - easy_private_state

Struct EasyPrivateUint

pub struct EasyPrivateUint<Context>
{ /* private fields */ }

@deprecated (soon) (https://github.com/AztecProtocol/aztec-packages/issues/15959) because:

An example private state variable, representing a Field that can be:

Implementations

impl EasyPrivateUint<UtilityContext>

pub unconstrained fn get_value(self) -> Field

impl<Context> EasyPrivateUint<Context>

pub fn new(context: Context, storage_slot: Field) -> Self

impl EasyPrivateUint<&mut PrivateContext>

pub fn add(self, addend: u64, owner: AztecAddress) pub fn sub(self, subtrahend: u64, owner: AztecAddress)

Trait implementations

impl<Context> HasStorageSlot<1> for EasyPrivateUint<Context>

pub fn get_storage_slot(self) -> Field