Enum snarkvm_circuit_program::Owner
source · pub enum Owner<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: Aleo, Private: Visibility<A>> Owner<A, Private>
impl<A: Aleo, Private: Visibility<A>> Owner<A, Private>
sourcepub fn is_private(&self) -> Boolean<A>
pub fn is_private(&self) -> Boolean<A>
Returns true
if self
is private.
Trait Implementations§
source§impl<A: Aleo> Inject for Owner<A, Ciphertext<A>>
impl<A: Aleo> Inject for Owner<A, Ciphertext<A>>
source§impl<A: Aleo> Inject for Owner<A, Plaintext<A>>
impl<A: Aleo> Inject for Owner<A, Plaintext<A>>
source§impl<A: Aleo> ToBits for Owner<A, Ciphertext<A>>
impl<A: Aleo> ToBits for Owner<A, Ciphertext<A>>
source§fn to_bits_le(&self) -> Vec<Boolean<A>>
fn to_bits_le(&self) -> Vec<Boolean<A>>
Returns self
as a boolean vector in little-endian order.
source§fn to_bits_be(&self) -> Vec<Boolean<A>>
fn to_bits_be(&self) -> Vec<Boolean<A>>
Returns self
as a boolean vector in big-endian order.