Struct snarkvm_circuit_account::compute_key::ComputeKey
source · pub struct ComputeKey<A: Aleo> { /* private fields */ }
Implementations§
source§impl<A: Aleo> ComputeKey<A>
impl<A: Aleo> ComputeKey<A>
sourcepub fn from_private_key(private_key: &PrivateKey<A>) -> Self
pub fn from_private_key(private_key: &PrivateKey<A>) -> Self
Returns the account compute key for this account private key.
source§impl<A: Aleo> ComputeKey<A>
impl<A: Aleo> ComputeKey<A>
sourcepub fn to_address(&self) -> Address<A>
pub fn to_address(&self) -> Address<A>
Returns the account address for this account compute key.
Trait Implementations§
source§impl<A: Aleo> Eject for ComputeKey<A>
impl<A: Aleo> Eject for ComputeKey<A>
source§fn eject_mode(&self) -> Mode
fn eject_mode(&self) -> Mode
Ejects the mode of the compute key.
source§fn eject_value(&self) -> Self::Primitive
fn eject_value(&self) -> Self::Primitive
Ejects the compute key.
type Primitive = ComputeKey<<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.source§impl<A: Aleo> Inject for ComputeKey<A>
impl<A: Aleo> Inject for ComputeKey<A>
Auto Trait Implementations§
impl<A> RefUnwindSafe for ComputeKey<A>where <A as Environment>::BaseField: UnwindSafe + RefUnwindSafe,
impl<A> !Send for ComputeKey<A>
impl<A> !Sync for ComputeKey<A>
impl<A> Unpin for ComputeKey<A>where <A as Environment>::BaseField: Unpin,
impl<A> UnwindSafe for ComputeKey<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