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.