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§
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> 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>,
source§impl<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>,
source§fn 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.
source§fn 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>
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.