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
sourceimpl Address
impl Address
sourcepub fn standard(
network: Network,
public_spend: PublicKey,
public_view: PublicKey
) -> Address
pub fn standard(
network: Network,
public_spend: PublicKey,
public_view: PublicKey
) -> Address
Create a standard address which is valid on the given network.
sourcepub fn subaddress(
network: Network,
public_spend: PublicKey,
public_view: PublicKey
) -> Address
pub fn subaddress(
network: Network,
public_spend: PublicKey,
public_view: PublicKey
) -> Address
Create a sub-address which is valid on the given network.
sourcepub fn integrated(
network: Network,
public_spend: PublicKey,
public_view: PublicKey,
payment_id: PaymentId
) -> Address
pub fn integrated(
network: Network,
public_spend: PublicKey,
public_view: PublicKey,
payment_id: PaymentId
) -> Address
Create an address with an integrated payment id which is valid on the given network.
sourcepub fn from_viewpair(network: Network, keys: &ViewPair) -> Address
pub fn from_viewpair(network: Network, keys: &ViewPair) -> Address
Create a standard address from a view pair which is valid on the given network.
sourcepub fn from_keypair(network: Network, keys: &KeyPair) -> Address
pub fn from_keypair(network: Network, keys: &KeyPair) -> Address
Create a standard address from a key pair which is valid on the given network.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Address
impl<'de> Deserialize<'de> for Address
sourcefn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Address
impl Eq for Address
impl StructuralEq for Address
impl StructuralPartialEq for Address
Auto Trait Implementations
impl RefUnwindSafe for Address
impl Send for Address
impl Sync for Address
impl Unpin for Address
impl UnwindSafe for Address
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more