pub struct ComputeKey<N: Network> { /* private fields */ }
Implementations§
Source§impl<N: Network> ComputeKey<N>
impl<N: Network> ComputeKey<N>
Sourcepub fn to_address(&self) -> Address<N>
pub fn to_address(&self) -> Address<N>
Returns the address corresponding to the compute key.
Trait Implementations§
Source§impl<N: Clone + Network> Clone for ComputeKey<N>
impl<N: Clone + Network> Clone for ComputeKey<N>
Source§fn clone(&self) -> ComputeKey<N>
fn clone(&self) -> ComputeKey<N>
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<'de, N: Network> Deserialize<'de> for ComputeKey<N>
impl<'de, N: Network> Deserialize<'de> for ComputeKey<N>
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserializes an account compute key from bytes.
Source§impl<N: Network> Equal for ComputeKey<N>
impl<N: Network> Equal for ComputeKey<N>
Source§impl<N: Network> FromBits for ComputeKey<N>
impl<N: Network> FromBits for ComputeKey<N>
Source§fn from_bits_le(bits_le: &[bool]) -> Result<Self>
fn from_bits_le(bits_le: &[bool]) -> Result<Self>
Initializes a new compute key from a list of little-endian bits.
Source§fn from_bits_be(bits_be: &[bool]) -> Result<Self>
fn from_bits_be(bits_be: &[bool]) -> Result<Self>
Initializes a new compute key from a list of big-endian bits.
Source§impl<N: Network> FromBytes for ComputeKey<N>
impl<N: Network> FromBytes for ComputeKey<N>
Source§impl<N: Network> Serialize for ComputeKey<N>
impl<N: Network> Serialize for ComputeKey<N>
Source§impl<N: Network> SizeInBits for ComputeKey<N>
impl<N: Network> SizeInBits for ComputeKey<N>
Source§fn size_in_bits() -> usize
fn size_in_bits() -> usize
Returns the compute key size in bits.
Source§impl<N: Network> SizeInBytes for ComputeKey<N>
impl<N: Network> SizeInBytes for ComputeKey<N>
Source§fn size_in_bytes() -> usize
fn size_in_bytes() -> usize
Returns the compute key size in bytes.
Source§impl<N: Network> Ternary for ComputeKey<N>
impl<N: Network> Ternary for ComputeKey<N>
Source§impl<N: Network> ToBits for ComputeKey<N>
impl<N: Network> ToBits for ComputeKey<N>
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
fn write_bits_le(&self, vec: &mut Vec<bool>)
Returns the little-endian bits of the compute key.
Source§fn write_bits_be(&self, vec: &mut Vec<bool>)
fn write_bits_be(&self, vec: &mut Vec<bool>)
Returns the big-endian bits of the compute key.
Source§fn to_bits_le(&self) -> Vec<bool>
fn to_bits_le(&self) -> Vec<bool>
Returns
self
as a boolean array in little-endian order.Source§fn to_bits_be(&self) -> Vec<bool>
fn to_bits_be(&self) -> Vec<bool>
Returns
self
as a boolean array in big-endian order.Source§impl<N: Network> ToBytes for ComputeKey<N>
impl<N: Network> ToBytes for ComputeKey<N>
Source§impl<N: Network> ToFields for ComputeKey<N>
impl<N: Network> ToFields for ComputeKey<N>
Source§impl<N: Network> TryFrom<&PrivateKey<N>> for ComputeKey<N>
impl<N: Network> TryFrom<&PrivateKey<N>> for ComputeKey<N>
Source§impl<N: Network> TryFrom<PrivateKey<N>> for ComputeKey<N>
impl<N: Network> TryFrom<PrivateKey<N>> for ComputeKey<N>
impl<N: Copy + Network> Copy for ComputeKey<N>
impl<N: Eq + Network> Eq for ComputeKey<N>
impl<N: Network> StructuralPartialEq for ComputeKey<N>
Auto Trait Implementations§
impl<N> Freeze for ComputeKey<N>
impl<N> RefUnwindSafe for ComputeKey<N>
impl<N> Send for ComputeKey<N>
impl<N> Sync for ComputeKey<N>
impl<N> Unpin for ComputeKey<N>
impl<N> UnwindSafe for ComputeKey<N>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'de, T> DeserializeExt<'de> for Twhere
T: DeserializeOwned,
impl<'de, T> DeserializeExt<'de> for Twhere
T: DeserializeOwned,
fn take_from_value<D>(
value: &mut Value,
field: &str,
) -> Result<T, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more