pub enum Owner<A, Private>where
A: Aleo,
Private: Visibility<A>,{
Public(Address<A>),
Private(Private),
}
Expand description
A value stored in program data.
Variants§
Public(Address<A>)
A publicly-visible value.
Private(Private)
A private value is encrypted under the account owner’s address.
Implementations§
Source§impl<A, Private> Owner<A, Private>where
A: Aleo,
Private: Visibility<A>,
impl<A, Private> Owner<A, Private>where
A: Aleo,
Private: Visibility<A>,
Trait Implementations§
Source§impl<A, Private> Equal for Owner<A, Private>where
A: Aleo,
Private: Visibility<A>,
impl<A, Private> Equal for Owner<A, Private>where
A: Aleo,
Private: Visibility<A>,
Source§fn is_equal(
&self,
other: &Owner<A, Private>,
) -> <Owner<A, Private> as Equal>::Output
fn is_equal( &self, other: &Owner<A, Private>, ) -> <Owner<A, Private> as Equal>::Output
Returns true
if self
and other
are equal.
Source§fn is_not_equal(
&self,
other: &Owner<A, Private>,
) -> <Owner<A, Private> as Equal>::Output
fn is_not_equal( &self, other: &Owner<A, Private>, ) -> <Owner<A, Private> as Equal>::Output
Returns true
if self
and other
are not equal.
type Output = Boolean<A>
Source§impl<A> Inject for Owner<A, Ciphertext<A>>where
A: Aleo,
impl<A> Inject for Owner<A, Ciphertext<A>>where
A: Aleo,
Source§fn new(
_: Mode,
owner: <Owner<A, Ciphertext<A>> as Inject>::Primitive,
) -> Owner<A, Ciphertext<A>>
fn new( _: Mode, owner: <Owner<A, Ciphertext<A>> as Inject>::Primitive, ) -> Owner<A, Ciphertext<A>>
Initializes ciphertext owner from a primitive.
type Primitive = Owner<<A as Environment>::Network, Ciphertext<<A as Environment>::Network>>
Source§impl<A> Inject for Owner<A, Plaintext<A>>where
A: Aleo,
impl<A> Inject for Owner<A, Plaintext<A>>where
A: Aleo,
Source§impl<A> ToBits for Owner<A, Ciphertext<A>>where
A: Aleo,
impl<A> ToBits for Owner<A, Ciphertext<A>>where
A: Aleo,
Source§fn write_bits_le(&self, vec: &mut Vec<Boolean<A>>)
fn write_bits_le(&self, vec: &mut Vec<Boolean<A>>)
Returns self
as a boolean vector in little-endian order.
Source§fn write_bits_be(&self, vec: &mut Vec<Boolean<A>>)
fn write_bits_be(&self, vec: &mut Vec<Boolean<A>>)
Returns self
as a boolean vector in big-endian order.
type Boolean = Boolean<A>
Source§fn to_bits_le(&self) -> Vec<Self::Boolean>
fn to_bits_le(&self) -> Vec<Self::Boolean>
Returns the little-endian bits of the circuit.
Source§fn to_bits_be(&self) -> Vec<Self::Boolean>
fn to_bits_be(&self) -> Vec<Self::Boolean>
Returns the big-endian bits of the circuit.
Source§impl<A> ToBits for Owner<A, Plaintext<A>>where
A: Aleo,
impl<A> ToBits for Owner<A, Plaintext<A>>where
A: Aleo,
Source§fn write_bits_le(&self, vec: &mut Vec<Boolean<A>>)
fn write_bits_le(&self, vec: &mut Vec<Boolean<A>>)
Returns self
as a boolean vector in little-endian order.
Source§fn write_bits_be(&self, vec: &mut Vec<Boolean<A>>)
fn write_bits_be(&self, vec: &mut Vec<Boolean<A>>)
Returns self
as a boolean vector in big-endian order.
type Boolean = Boolean<A>
Source§fn to_bits_le(&self) -> Vec<Self::Boolean>
fn to_bits_le(&self) -> Vec<Self::Boolean>
Returns the little-endian bits of the circuit.
Source§fn to_bits_be(&self) -> Vec<Self::Boolean>
fn to_bits_be(&self) -> Vec<Self::Boolean>
Returns the big-endian bits of the circuit.
Auto Trait Implementations§
impl<A, Private> !Freeze for Owner<A, Private>
impl<A, Private> RefUnwindSafe for Owner<A, Private>
impl<A, Private> Send for Owner<A, Private>where
Private: Send,
impl<A, Private> !Sync for Owner<A, Private>
impl<A, Private> Unpin for Owner<A, Private>
impl<A, Private> UnwindSafe for Owner<A, Private>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more