Enum snarkvm_circuit::Owner
source · 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
sourceimpl<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
sourceimpl<A, Private> Clone for Owner<A, Private>where
A: Clone + Aleo,
Private: Clone + Visibility<A>,
impl<A, Private> Clone for Owner<A, Private>where
A: Clone + Aleo,
Private: Clone + Visibility<A>,
sourceimpl<A, Private> Equal<Owner<A, Private>> for Owner<A, Private>where
A: Aleo,
Private: Visibility<A>,
impl<A, Private> Equal<Owner<A, Private>> for Owner<A, Private>where
A: Aleo,
Private: Visibility<A>,
sourcefn is_equal(
&self,
other: &Owner<A, Private>
) -> <Owner<A, Private> as Equal<Owner<A, Private>>>::Output
fn is_equal(
&self,
other: &Owner<A, Private>
) -> <Owner<A, Private> as Equal<Owner<A, Private>>>::Output
Returns true
if self
and other
are equal.
sourcefn is_not_equal(
&self,
other: &Owner<A, Private>
) -> <Owner<A, Private> as Equal<Owner<A, Private>>>::Output
fn is_not_equal(
&self,
other: &Owner<A, Private>
) -> <Owner<A, Private> as Equal<Owner<A, Private>>>::Output
Returns true
if self
and other
are not equal.
type Output = Boolean<A>
sourceimpl<A> Inject for Owner<A, Ciphertext<A>>where
A: Aleo,
impl<A> Inject for Owner<A, Ciphertext<A>>where
A: Aleo,
sourcefn 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>>
sourceimpl<A> Inject for Owner<A, Plaintext<A>>where
A: Aleo,
impl<A> Inject for Owner<A, Plaintext<A>>where
A: Aleo,
sourceimpl<A> ToBits for Owner<A, Ciphertext<A>>where
A: Aleo,
impl<A> ToBits for Owner<A, Ciphertext<A>>where
A: Aleo,
sourcefn to_bits_le(&self) -> Vec<Boolean<A>, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
fn to_bits_le(&self) -> Vec<Boolean<A>, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
Returns self
as a boolean vector in little-endian order.
sourcefn to_bits_be(&self) -> Vec<Boolean<A>, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
fn to_bits_be(&self) -> Vec<Boolean<A>, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
Returns self
as a boolean vector in big-endian order.
type Boolean = Boolean<A>
sourceimpl<A> ToBits for Owner<A, Plaintext<A>>where
A: Aleo,
impl<A> ToBits for Owner<A, Plaintext<A>>where
A: Aleo,
sourcefn to_bits_le(&self) -> Vec<Boolean<A>, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
fn to_bits_le(&self) -> Vec<Boolean<A>, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
Returns self
as a boolean vector in little-endian order.
sourcefn to_bits_be(&self) -> Vec<Boolean<A>, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
fn to_bits_be(&self) -> Vec<Boolean<A>, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
Returns self
as a boolean vector in big-endian order.
type Boolean = Boolean<A>
Auto Trait Implementations
impl<A, Private> RefUnwindSafe for Owner<A, Private>where
Private: RefUnwindSafe,
<A as Environment>::BaseField: UnwindSafe + RefUnwindSafe,
impl<A, Private> !Send for Owner<A, Private>
impl<A, Private> !Sync for Owner<A, Private>
impl<A, Private> Unpin for Owner<A, Private>where
Private: Unpin,
<A as Environment>::BaseField: Unpin,
impl<A, Private> UnwindSafe for Owner<A, Private>where
Private: UnwindSafe,
<A as Environment>::BaseField: UnwindSafe + RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more