Struct snarkvm_circuit::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.
source§fn is_constant(&self) -> bool
fn is_constant(&self) -> bool
Returns
true
if the circuit is a constant.source§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