[−][src]Struct wagyu_monero::private_key::MoneroPrivateKey
Represents a Monero private key
Methods
impl<N: MoneroNetwork> MoneroPrivateKey<N>
[src]
pub fn from_seed(
seed: &str,
format: &MoneroFormat
) -> Result<Self, PrivateKeyError>
[src]
seed: &str,
format: &MoneroFormat
) -> Result<Self, PrivateKeyError>
Returns a private key given seed bytes.
pub fn from_private_spend_key(
private_spend_key: &str,
format: &MoneroFormat
) -> Result<Self, PrivateKeyError>
[src]
private_spend_key: &str,
format: &MoneroFormat
) -> Result<Self, PrivateKeyError>
Returns a private key given a private spend key.
pub fn to_subaddress_private_view_key(&self, major: u32, minor: u32) -> [u8; 32]
[src]
Update the private key format and returns a subaddress private view key.
pub fn to_private_spend_key(&self) -> [u8; 32]
[src]
Returns the private spend key of the Monero private key.
pub fn to_private_view_key(&self) -> [u8; 32]
[src]
Returns the private spend key of the Monero private key.
pub fn format(&self) -> MoneroFormat
[src]
Returns the format of the Monero address.
Trait Implementations
impl<N: Clone + MoneroNetwork> Clone for MoneroPrivateKey<N>
[src]
fn clone(&self) -> MoneroPrivateKey<N>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<N: Debug + MoneroNetwork> Debug for MoneroPrivateKey<N>
[src]
impl<N: MoneroNetwork> Display for MoneroPrivateKey<N>
[src]
impl<N: Eq + MoneroNetwork> Eq for MoneroPrivateKey<N>
[src]
impl<N: MoneroNetwork> FromStr for MoneroPrivateKey<N>
[src]
type Err = PrivateKeyError
The associated error which can be returned from parsing.
fn from_str(seed: &str) -> Result<Self, PrivateKeyError>
[src]
impl<N: Ord + MoneroNetwork> Ord for MoneroPrivateKey<N>
[src]
fn cmp(&self, other: &MoneroPrivateKey<N>) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<N: PartialEq + MoneroNetwork> PartialEq<MoneroPrivateKey<N>> for MoneroPrivateKey<N>
[src]
fn eq(&self, other: &MoneroPrivateKey<N>) -> bool
[src]
fn ne(&self, other: &MoneroPrivateKey<N>) -> bool
[src]
impl<N: PartialOrd + MoneroNetwork> PartialOrd<MoneroPrivateKey<N>> for MoneroPrivateKey<N>
[src]
fn partial_cmp(&self, other: &MoneroPrivateKey<N>) -> Option<Ordering>
[src]
fn lt(&self, other: &MoneroPrivateKey<N>) -> bool
[src]
fn le(&self, other: &MoneroPrivateKey<N>) -> bool
[src]
fn gt(&self, other: &MoneroPrivateKey<N>) -> bool
[src]
fn ge(&self, other: &MoneroPrivateKey<N>) -> bool
[src]
impl<N: MoneroNetwork> PrivateKey for MoneroPrivateKey<N>
[src]
type Address = MoneroAddress<N>
type Format = MoneroFormat
type PublicKey = MoneroPublicKey<N>
fn new<R: Rng>(rng: &mut R) -> Result<Self, PrivateKeyError>
[src]
Returns a randomly-generated Monero private key.
fn to_public_key(&self) -> Self::PublicKey
[src]
Returns the public key of the corresponding Monero private key.
fn to_address(
&self,
format: &Self::Format
) -> Result<Self::Address, AddressError>
[src]
&self,
format: &Self::Format
) -> Result<Self::Address, AddressError>
Returns the address of the corresponding Monero private key.
impl<N: MoneroNetwork> StructuralEq for MoneroPrivateKey<N>
[src]
impl<N: MoneroNetwork> StructuralPartialEq for MoneroPrivateKey<N>
[src]
Auto Trait Implementations
impl<N> RefUnwindSafe for MoneroPrivateKey<N> where
N: RefUnwindSafe,
N: RefUnwindSafe,
impl<N> Send for MoneroPrivateKey<N>
impl<N> Sync for MoneroPrivateKey<N>
impl<N> Unpin for MoneroPrivateKey<N> where
N: Unpin,
N: Unpin,
impl<N> UnwindSafe for MoneroPrivateKey<N> where
N: UnwindSafe,
N: UnwindSafe,
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>,
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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,