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
sourceimpl<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
sourceimpl<A> Eject for ViewKey<A> where
A: Aleo,
impl<A> Eject for ViewKey<A> where
A: Aleo,
sourcefn eject_mode(&self) -> Mode
fn eject_mode(&self) -> Mode
Ejects the mode of the view key.
sourcefn 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>
sourcefn eject(&self) -> (Mode, Self::Primitive)
fn eject(&self) -> (Mode, Self::Primitive)
Ejects the mode and primitive value of the circuit type. Read more
sourcefn is_constant(&self) -> bool
fn is_constant(&self) -> bool
Returns true
if the circuit is a constant. Read more
sourcefn is_private(&self) -> bool
fn is_private(&self) -> bool
Returns true
if the circuit is a private. Read more
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more