pub struct Address {
    pub network: Network,
    pub addr_type: AddressType,
    pub public_spend: PublicKey,
    pub public_view: PublicKey,
}
Expand description

A complete Wownero typed address valid for a specific network.

Fields

network: Network

The network on which the address is valid and should be used.

addr_type: AddressType

The address type.

public_spend: PublicKey

The address spend public key.

public_view: PublicKey

The address view public key.

Implementations

Create a standard address which is valid on the given network.

Create a sub-address which is valid on the given network.

Create an address with an integrated payment id which is valid on the given network.

Create a standard address from a view pair which is valid on the given network.

Create a standard address from a key pair which is valid on the given network.

Parse an address from a vector of bytes, fail if the magic byte is incorrect, if public keys are not valid points, if payment id is invalid, and if checksums missmatch.

Serialize the address as a vector of bytes.

Serialize the address as an hexadecimal string.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Decode an object with a well-defined format.

Deserialize this value from the given Serde deserializer. Read more

Formats the value using the given formatter. Read more

Encode an object with a well-defined format, should only ever error if the underlying Encoder errors. Read more

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

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.

Should always be Self

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.