Struct snarkvm_circuit_account::view_key::ViewKey
source · pub struct ViewKey<A: Aleo>(_, _);
Expand description
The account view key is able to decrypt records and ciphertext.
Implementations§
source§impl<A: Aleo> ViewKey<A>
impl<A: Aleo> ViewKey<A>
sourcepub fn from_private_key(private_key: &PrivateKey<A>) -> Self
pub fn from_private_key(private_key: &PrivateKey<A>) -> Self
Returns the account view key for this account private key.
Trait Implementations§
source§impl<A: Aleo> Eject for ViewKey<A>
impl<A: Aleo> Eject for ViewKey<A>
source§fn eject_mode(&self) -> Mode
fn eject_mode(&self) -> Mode
Ejects the mode of the view key.
source§fn eject_value(&self) -> Self::Primitive
fn eject_value(&self) -> Self::Primitive
Ejects the view key as a scalar field element.
type Primitive = ViewKey<<A as Environment>::Network>
§fn is_constant(&self) -> bool
fn is_constant(&self) -> bool
Returns
true
if the circuit is a constant.§fn is_private(&self) -> bool
fn is_private(&self) -> bool
Returns
true
if the circuit is a private.Auto Trait Implementations§
impl<A> RefUnwindSafe for ViewKey<A>where <A as Environment>::BaseField: UnwindSafe + RefUnwindSafe,
impl<A> !Send for ViewKey<A>
impl<A> !Sync for ViewKey<A>
impl<A> Unpin for ViewKey<A>where <A as Environment>::BaseField: Unpin,
impl<A> UnwindSafe for ViewKey<A>where <A as Environment>::BaseField: UnwindSafe + RefUnwindSafe,
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