Struct EasyPrivateUint
pub struct EasyPrivateUint<Context>
{ /* private fields */ }
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
@deprecated (soon) (https://github.com/AztecProtocol/aztec-packages/issues/15959) because:
BalanceSetAn example private state variable, representing a
Fieldthat can be: