pub struct Address<E>where
    E: Environment,
{ /* private fields */ }

Implementations§

Initializes an address from a group element.

👎Deprecated since 0.1.0: This is used for testing purposes

Initializes a zero address.

👎Deprecated since 0.1.0: This is used for testing purposes

Initializes a “random” address.

Methods from Deref<Target = Group<E>>§

Returns the x-coordinate in the affine coordinates of the group.

Returns the x-coordinate and y-coordinate in the affine coordinates of the group.

Returns the y-coordinate in the affine coordinates of the group.

Returns self * COFACTOR.

Returns self / COFACTOR.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Returns true if self is less than other.

Returns true if self is greater than other.

Returns true if self is less than or equal to other.

Returns true if self is greater than or equal to other.

Formats the value using the given formatter. Read more

Returns the address as a group element.

The resulting type after dereferencing.

Deserializes an account address from a string or bytes.

Writes an account address as a bech32m string.

Returns true if self and other are equal.

Returns true if self and other are not equal.

Initializes a new address by recovering the x-coordinate of an affine group from a list of little-endian bits.

Initializes a new address by recovering the x-coordinate of an affine group from a list of big-endian bits.

Reads in an account address from a buffer.

Returns Self from a byte array in little-endian order.

Initializes a new address by recovering the x-coordinate of an affine group from a field element.

Initializes a new address by recovering the x-coordinate of an affine group from a field element.

Reads in an account address string.

The associated error which can be returned from parsing.
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more

Parses a string into an address.

This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Serializes an account address into a string or as bytes.

Returns the address size in bits.

Returns the address size in bytes.

Returns first if condition is true, otherwise returns second.

Outputs the little-endian bit representation of self.to_x_coordinate() without trailing zeros.

Outputs the big-endian bit representation of self.to_x_coordinate() without leading zeros.

Writes an account address to a buffer.

Returns self as a byte array in little-endian order.

Returns the address as a field element.

Returns the address as field elements.

Returns the type name as a string.

Returns the number of field elements to encode self.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.