Enum snarkvm_circuit::Balance
source · pub enum Balance<A, Private>where
A: Aleo,
Private: Visibility<A>,{
Public(Integer<A, u64>),
Private(Private),
}
Expand description
A value stored in program data.
Variants§
Public(Integer<A, u64>)
A publicly-visible value.
Private(Private)
A private value is encrypted under the account owner’s address.
Implementations§
source§impl<A, Private> Balance<A, Private>where
A: Aleo,
Private: Visibility<A>,
impl<A, Private> Balance<A, Private>where A: Aleo, Private: Visibility<A>,
Trait Implementations§
source§impl<A, Private> Clone for Balance<A, Private>where
A: Clone + Aleo,
Private: Clone + Visibility<A>,
impl<A, Private> Clone for Balance<A, Private>where A: Clone + Aleo, Private: Clone + Visibility<A>,
source§impl<A, Private> Equal<Balance<A, Private>> for Balance<A, Private>where
A: Aleo,
Private: Visibility<A>,
impl<A, Private> Equal<Balance<A, Private>> for Balance<A, Private>where A: Aleo, Private: Visibility<A>,
source§fn is_equal(
&self,
other: &Balance<A, Private>
) -> <Balance<A, Private> as Equal<Balance<A, Private>>>::Output
fn is_equal( &self, other: &Balance<A, Private> ) -> <Balance<A, Private> as Equal<Balance<A, Private>>>::Output
Returns true
if self
and other
are equal.
source§fn is_not_equal(
&self,
other: &Balance<A, Private>
) -> <Balance<A, Private> as Equal<Balance<A, Private>>>::Output
fn is_not_equal( &self, other: &Balance<A, Private> ) -> <Balance<A, Private> as Equal<Balance<A, Private>>>::Output
Returns true
if self
and other
are not equal.
type Output = Boolean<A>
source§impl<A> Inject for Balance<A, Ciphertext<A>>where
A: Aleo,
impl<A> Inject for Balance<A, Ciphertext<A>>where A: Aleo,
source§fn new(
_: Mode,
owner: <Balance<A, Ciphertext<A>> as Inject>::Primitive
) -> Balance<A, Ciphertext<A>>
fn new( _: Mode, owner: <Balance<A, Ciphertext<A>> as Inject>::Primitive ) -> Balance<A, Ciphertext<A>>
Initializes ciphertext balance from a primitive.