Struct snarkvm_circuit::view_key::ViewKey
source · pub struct ViewKey<A>(_)
where
A: Aleo;
Expand description
The account view key is able to decrypt records and ciphertext.
Implementations§
source§impl<A> ViewKey<A>where
A: Aleo,
impl<A> ViewKey<A>where
A: Aleo,
sourcepub fn from_private_key(private_key: &PrivateKey<A>) -> ViewKey<A>
pub fn from_private_key(private_key: &PrivateKey<A>) -> ViewKey<A>
Returns the account view key for this account private key.
Trait Implementations§
source§impl<A> Eject for ViewKey<A>where
A: Aleo,
impl<A> Eject for ViewKey<A>where
A: Aleo,
source§fn eject_mode(&self) -> Mode
fn eject_mode(&self) -> Mode
Ejects the mode of the view key.
source§fn eject_value(&self) -> <ViewKey<A> as Eject>::Primitive
fn eject_value(&self) -> <ViewKey<A> as Eject>::Primitive
Ejects the view key as a scalar field element.
type Primitive = ViewKey<<A as Environment>::Network>
source§fn eject(&self) -> (Mode, Self::Primitive)
fn eject(&self) -> (Mode, Self::Primitive)
Ejects the mode and primitive value of the circuit type. Read more
source§fn is_constant(&self) -> bool
fn is_constant(&self) -> bool
Returns
true
if the circuit is a constant. Read moresource§fn is_private(&self) -> bool
fn is_private(&self) -> bool
Returns
true
if the circuit is a private. Read more