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: Clone + Aleo> Clone for ComputeKey<A>
impl<A: Clone + Aleo> Clone for ComputeKey<A>
source§fn clone(&self) -> ComputeKey<A>
fn clone(&self) -> ComputeKey<A>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§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> Equal for ComputeKey<A>
impl<A: Aleo> Equal for ComputeKey<A>
source§impl<A: Aleo> From<(Group<A>, Group<A>)> for ComputeKey<A>
impl<A: Aleo> From<(Group<A>, Group<A>)> for ComputeKey<A>
source§impl<A: Aleo> FromBits for ComputeKey<A>
impl<A: Aleo> FromBits for ComputeKey<A>
source§fn from_bits_le(bits_le: &[Self::Boolean]) -> Self
fn from_bits_le(bits_le: &[Self::Boolean]) -> Self
Initializes a new compute key from a list of little-endian bits.
source§fn from_bits_be(bits_be: &[Self::Boolean]) -> Self
fn from_bits_be(bits_be: &[Self::Boolean]) -> Self
Initializes a new compute key from a list of big-endian bits.
type Boolean = Boolean<A>
source§impl<A: Aleo> Inject for ComputeKey<A>
impl<A: Aleo> Inject for ComputeKey<A>
source§impl<A: Aleo> Metrics<dyn Equal<ComputeKey<A>, Output = Boolean<A>>> for ComputeKey<A>
impl<A: Aleo> Metrics<dyn Equal<ComputeKey<A>, Output = Boolean<A>>> for ComputeKey<A>
source§impl<A: Aleo> Metrics<dyn Ternary<Boolean = Boolean<A>, Output = ComputeKey<A>>> for ComputeKey<A>
impl<A: Aleo> Metrics<dyn Ternary<Boolean = Boolean<A>, Output = ComputeKey<A>>> for ComputeKey<A>
source§impl<A: Aleo> OutputMode<dyn Equal<ComputeKey<A>, Output = Boolean<A>>> for ComputeKey<A>
impl<A: Aleo> OutputMode<dyn Equal<ComputeKey<A>, Output = Boolean<A>>> for ComputeKey<A>
type Case = (Mode, Mode)
source§fn output_mode(case: &Self::Case) -> Mode
fn output_mode(case: &Self::Case) -> Mode
Returns the mode of the output.
source§impl<A: Aleo> OutputMode<dyn Ternary<Boolean = Boolean<A>, Output = ComputeKey<A>>> for ComputeKey<A>
impl<A: Aleo> OutputMode<dyn Ternary<Boolean = Boolean<A>, Output = ComputeKey<A>>> for ComputeKey<A>
type Case = (CircuitType<Boolean<A>>, Mode, Mode)
source§fn output_mode(parameter: &Self::Case) -> Mode
fn output_mode(parameter: &Self::Case) -> Mode
Returns the mode of the output.
source§impl<A: Aleo> Ternary for ComputeKey<A>
impl<A: Aleo> Ternary for ComputeKey<A>
source§impl<A: Aleo> ToBits for &ComputeKey<A>
impl<A: Aleo> ToBits for &ComputeKey<A>
source§fn write_bits_le(&self, vec: &mut Vec<Self::Boolean>)
fn write_bits_le(&self, vec: &mut Vec<Self::Boolean>)
Outputs the little-endian bit representation of the compute key without trailing zeros.
source§fn write_bits_be(&self, vec: &mut Vec<Self::Boolean>)
fn write_bits_be(&self, vec: &mut Vec<Self::Boolean>)
Outputs the big-endian bit representation of the compute key without leading zeros.
type Boolean = Boolean<A>
§fn to_bits_le(&self) -> Vec<Self::Boolean>
fn to_bits_le(&self) -> Vec<Self::Boolean>
Returns the little-endian bits of the circuit.
§fn to_bits_be(&self) -> Vec<Self::Boolean>
fn to_bits_be(&self) -> Vec<Self::Boolean>
Returns the big-endian bits of the circuit.
source§impl<A: Aleo> ToBits for ComputeKey<A>
impl<A: Aleo> ToBits for ComputeKey<A>
source§fn write_bits_le(&self, vec: &mut Vec<Self::Boolean>)
fn write_bits_le(&self, vec: &mut Vec<Self::Boolean>)
Outputs the little-endian bit representation of the compute key without trailing zeros.
source§fn write_bits_be(&self, vec: &mut Vec<Self::Boolean>)
fn write_bits_be(&self, vec: &mut Vec<Self::Boolean>)
Outputs the big-endian bit representation of the compute key without leading zeros.
type Boolean = Boolean<A>
§fn to_bits_le(&self) -> Vec<Self::Boolean>
fn to_bits_le(&self) -> Vec<Self::Boolean>
Returns the little-endian bits of the circuit.
§fn to_bits_be(&self) -> Vec<Self::Boolean>
fn to_bits_be(&self) -> Vec<Self::Boolean>
Returns the big-endian bits of the circuit.
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