[−][src]Struct monero::util::address::Address
A generic Monero address
Fields
network: Network
The network on which the address is valid
addr_type: AddressType
The address type
public_spend: PublicKey
The address spend public key
public_view: PublicKey
The address view public key
Implementations
impl Address
[src]
pub fn standard(
network: Network,
public_spend: PublicKey,
public_view: PublicKey
) -> Address
[src]
network: Network,
public_spend: PublicKey,
public_view: PublicKey
) -> Address
Create a standard address which is valid on the given network
pub fn subaddress(
network: Network,
public_spend: PublicKey,
public_view: PublicKey
) -> Address
[src]
network: Network,
public_spend: PublicKey,
public_view: PublicKey
) -> Address
Create a sub-address which is valid on the given network
pub fn integrated(
network: Network,
public_spend: PublicKey,
public_view: PublicKey,
payment_id: PaymentId
) -> Address
[src]
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
pub fn from_viewpair(network: Network, keys: &ViewPair) -> Address
[src]
Create a standard address from a view pair which is valid on the given network
pub fn from_keypair(network: Network, keys: &KeyPair) -> Address
[src]
Create a standard address from a key pair which is valid on the given network
pub fn from_bytes(bytes: &[u8]) -> Result<Address, Error>
[src]
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
pub fn as_bytes(&self) -> Vec<u8>
[src]
Serialize the address as a vector of bytes
pub fn as_hex(&self) -> String
[src]
Serialize the address as an hexadecimal string
Trait Implementations
impl Clone for Address
[src]
impl Copy for Address
[src]
impl Debug for Address
[src]
impl Display for Address
[src]
impl Eq for Address
[src]
impl FromStr for Address
[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl Hash for Address
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Address> for Address
[src]
impl StructuralEq for Address
[src]
impl StructuralPartialEq for Address
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,