pub struct Address<E>where
E: Environment,{ /* private fields */ }
Implementations§
Source§impl<E> Address<E>where
E: Environment,
impl<E> Address<E>where
E: Environment,
Methods from Deref<Target = Group<E>>§
Sourcepub fn to_x_coordinate(&self) -> Field<E>
pub fn to_x_coordinate(&self) -> Field<E>
Returns the x-coordinate in the affine coordinates of the group.
Sourcepub fn to_xy_coordinates(&self) -> (Field<E>, Field<E>)
pub fn to_xy_coordinates(&self) -> (Field<E>, Field<E>)
Returns the x-coordinate and y-coordinate in the affine coordinates of the group.
Sourcepub fn to_y_coordinate(&self) -> Field<E>
pub fn to_y_coordinate(&self) -> Field<E>
Returns the y-coordinate in the affine coordinates of the group.
pub const EDWARDS_A: Field<E> = _
pub const EDWARDS_D: Field<E> = _
pub const MONTGOMERY_A: Field<E> = _
pub const MONTGOMERY_B: Field<E> = _
Sourcepub fn mul_by_cofactor(&self) -> Group<E>
pub fn mul_by_cofactor(&self) -> Group<E>
Returns self * COFACTOR
.
Sourcepub fn div_by_cofactor(&self) -> Group<E>
pub fn div_by_cofactor(&self) -> Group<E>
Returns self / COFACTOR
.
Trait Implementations§
Source§impl<E> Compare for Address<E>where
E: Environment,
impl<E> Compare for Address<E>where
E: Environment,
Source§fn is_less_than(&self, other: &Address<E>) -> <Address<E> as Compare>::Output
fn is_less_than(&self, other: &Address<E>) -> <Address<E> as Compare>::Output
Returns true
if self
is less than other
.
Source§fn is_greater_than(&self, other: &Address<E>) -> <Address<E> as Compare>::Output
fn is_greater_than(&self, other: &Address<E>) -> <Address<E> as Compare>::Output
Returns true
if self
is greater than other
.
Source§fn is_less_than_or_equal(
&self,
other: &Address<E>,
) -> <Address<E> as Compare>::Output
fn is_less_than_or_equal( &self, other: &Address<E>, ) -> <Address<E> as Compare>::Output
Returns true
if self
is less than or equal to other
.
Source§fn is_greater_than_or_equal(
&self,
other: &Address<E>,
) -> <Address<E> as Compare>::Output
fn is_greater_than_or_equal( &self, other: &Address<E>, ) -> <Address<E> as Compare>::Output
Returns true
if self
is greater than or equal to other
.
type Output = Boolean<E>
Source§impl<E> Debug for Address<E>where
E: Environment,
impl<E> Debug for Address<E>where
E: Environment,
Source§impl<E> Deref for Address<E>where
E: Environment,
impl<E> Deref for Address<E>where
E: Environment,
Source§impl<'de, E> Deserialize<'de> for Address<E>where
E: Environment,
impl<'de, E> Deserialize<'de> for Address<E>where
E: Environment,
Source§fn deserialize<D>(
deserializer: D,
) -> Result<Address<E>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<Address<E>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserializes an account address from a string or bytes.
Source§impl<E> Display for Address<E>where
E: Environment,
impl<E> Display for Address<E>where
E: Environment,
Source§impl<E> Distribution<Address<E>> for Standardwhere
E: Environment,
impl<E> Distribution<Address<E>> for Standardwhere
E: Environment,
Source§impl<E> Equal for Address<E>where
E: Environment,
impl<E> Equal for Address<E>where
E: Environment,
Source§impl<E> FromBits for Address<E>where
E: Environment,
impl<E> FromBits for Address<E>where
E: Environment,
Source§impl<E> FromBytes for Address<E>where
E: Environment,
impl<E> FromBytes for Address<E>where
E: Environment,
Source§impl<E> FromField for Address<E>where
E: Environment,
impl<E> FromField for Address<E>where
E: Environment,
Source§impl<E> FromFields for Address<E>where
E: Environment,
impl<E> FromFields for Address<E>where
E: Environment,
Source§impl<E> FromStr for Address<E>where
E: Environment,
impl<E> FromStr for Address<E>where
E: Environment,
Source§impl<E> Parser for Address<E>where
E: Environment,
impl<E> Parser for Address<E>where
E: Environment,
Source§impl<E> Serialize for Address<E>where
E: Environment,
impl<E> Serialize for Address<E>where
E: Environment,
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serializes an account address into a string or as bytes.
Source§impl<E> SizeInBits for Address<E>where
E: Environment,
impl<E> SizeInBits for Address<E>where
E: Environment,
Source§fn size_in_bits() -> usize
fn size_in_bits() -> usize
Returns the address size in bits.
Source§impl<E> SizeInBytes for Address<E>where
E: Environment,
impl<E> SizeInBytes for Address<E>where
E: Environment,
Source§fn size_in_bytes() -> usize
fn size_in_bytes() -> usize
Returns the address size in bytes.
Source§impl<E> Ternary for Address<E>where
E: Environment,
impl<E> Ternary for Address<E>where
E: Environment,
Source§impl<E> ToBits for Address<E>where
E: Environment,
impl<E> ToBits for Address<E>where
E: Environment,
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
fn write_bits_le(&self, vec: &mut Vec<bool>)
Outputs the little-endian bit representation of self.to_x_coordinate()
without trailing zeros.
Source§fn write_bits_be(&self, vec: &mut Vec<bool>)
fn write_bits_be(&self, vec: &mut Vec<bool>)
Outputs the big-endian bit representation of self.to_x_coordinate()
without leading zeros.
Source§fn to_bits_le(&self) -> Vec<bool>
fn to_bits_le(&self) -> Vec<bool>
self
as a boolean array in little-endian order.Source§fn to_bits_be(&self) -> Vec<bool>
fn to_bits_be(&self) -> Vec<bool>
self
as a boolean array in big-endian order.Source§impl<E> ToBytes for Address<E>where
E: Environment,
impl<E> ToBytes for Address<E>where
E: Environment,
Source§impl<E> ToField for Address<E>where
E: Environment,
impl<E> ToField for Address<E>where
E: Environment,
Source§impl<E> ToFields for Address<E>where
E: Environment,
impl<E> ToFields for Address<E>where
E: Environment,
Source§impl<E> TypeName for Address<E>where
E: Environment,
impl<E> TypeName for Address<E>where
E: Environment,
Source§impl<E> Visibility for Address<E>where
E: Environment,
impl<E> Visibility for Address<E>where
E: Environment,
impl<E> AddressTrait for Address<E>where
E: Environment,
impl<E> Copy for Address<E>where
E: Copy + Environment,
impl<E> Eq for Address<E>where
E: Eq + Environment,
impl<E> StructuralPartialEq for Address<E>where
E: Environment,
Auto Trait Implementations§
impl<E> Freeze for Address<E>
impl<E> RefUnwindSafe for Address<E>
impl<E> Send for Address<E>
impl<E> Sync for Address<E>
impl<E> Unpin for Address<E>
impl<E> UnwindSafe for Address<E>
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
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
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> ⓘ
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> ⓘ
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