[−][src]Struct wagyu_zcash::address::ZcashAddress
Represents a Zcash address
Methods
impl<N: ZcashNetwork> ZcashAddress<N>
[src]
pub fn p2pkh(public_key: &P2PKHViewingKey) -> Self
[src]
Returns a transparent address from a given Zcash public key.
pub fn p2sh() -> Self
[src]
Returns a P2SH address.
pub fn sprout(public_key: &SproutViewingKey) -> Result<Self, AddressError>
[src]
Returns a shielded address from a given Zcash public key.
pub fn sapling(
public_key: &SaplingFullViewingKey<N>,
format: &ZcashFormat
) -> Result<Self, AddressError>
[src]
public_key: &SaplingFullViewingKey<N>,
format: &ZcashFormat
) -> Result<Self, AddressError>
Returns a shielded address from a given Zcash public key.
pub fn to_diversifier(&self) -> Option<String>
[src]
Returns the diversifier of a Zcash Sapling address.
pub fn get_diversifier(address: &str) -> Result<[u8; 11], AddressError>
[src]
Returns the diversifier of a specified Zcash Sapling address.
pub fn format(&self) -> ZcashFormat
[src]
Returns the format of the Monero address.
Trait Implementations
impl<N: Eq + ZcashNetwork> Eq for ZcashAddress<N>
[src]
impl<N: Clone + ZcashNetwork> Clone for ZcashAddress<N>
[src]
fn clone(&self) -> ZcashAddress<N>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<N: PartialOrd + ZcashNetwork> PartialOrd<ZcashAddress<N>> for ZcashAddress<N>
[src]
fn partial_cmp(&self, other: &ZcashAddress<N>) -> Option<Ordering>
[src]
fn lt(&self, other: &ZcashAddress<N>) -> bool
[src]
fn le(&self, other: &ZcashAddress<N>) -> bool
[src]
fn gt(&self, other: &ZcashAddress<N>) -> bool
[src]
fn ge(&self, other: &ZcashAddress<N>) -> bool
[src]
impl<N: PartialEq + ZcashNetwork> PartialEq<ZcashAddress<N>> for ZcashAddress<N>
[src]
fn eq(&self, other: &ZcashAddress<N>) -> bool
[src]
fn ne(&self, other: &ZcashAddress<N>) -> bool
[src]
impl<N: Ord + ZcashNetwork> Ord for ZcashAddress<N>
[src]
fn cmp(&self, other: &ZcashAddress<N>) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<N: Hash + ZcashNetwork> Hash for ZcashAddress<N>
[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<N: Debug + ZcashNetwork> Debug for ZcashAddress<N>
[src]
impl<N: ZcashNetwork> Display for ZcashAddress<N>
[src]
impl<'a, N: ZcashNetwork> TryFrom<&'a str> for ZcashAddress<N>
[src]
type Error = AddressError
The type returned in the event of a conversion error.
fn try_from(address: &'a str) -> Result<Self, Self::Error>
[src]
impl<N: ZcashNetwork> FromStr for ZcashAddress<N>
[src]
type Err = AddressError
The associated error which can be returned from parsing.
fn from_str(address: &str) -> Result<Self, Self::Err>
[src]
impl<N: ZcashNetwork> Address for ZcashAddress<N>
[src]
type Format = ZcashFormat
type PrivateKey = ZcashPrivateKey<N>
type PublicKey = ZcashPublicKey<N>
fn from_private_key(
private_key: &Self::PrivateKey,
format: &Self::Format
) -> Result<Self, AddressError>
[src]
private_key: &Self::PrivateKey,
format: &Self::Format
) -> Result<Self, AddressError>
Returns the address corresponding to the given Zcash private key.
fn from_public_key(
public_key: &Self::PublicKey,
format: &Self::Format
) -> Result<Self, AddressError>
[src]
public_key: &Self::PublicKey,
format: &Self::Format
) -> Result<Self, AddressError>
Returns the address corresponding to the given Zcash public key.
Auto Trait Implementations
impl<N> Send for ZcashAddress<N>
impl<N> Unpin for ZcashAddress<N> where
N: Unpin,
N: Unpin,
impl<N> Sync for ZcashAddress<N>
impl<N> UnwindSafe for ZcashAddress<N> where
N: UnwindSafe,
N: UnwindSafe,
impl<N> RefUnwindSafe for ZcashAddress<N> where
N: RefUnwindSafe,
N: RefUnwindSafe,
Blanket Implementations
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, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,