[−][src]Struct monero::util::key::PrivateKey
Monero private key
Fields
scalar: Scalar
The actual Ed25519 scalar
Methods
impl PrivateKey
[src]
pub fn as_bytes(&self) -> &[u8]
[src]
Serialize a public key as bytes
pub fn to_bytes(&self) -> [u8; 32]
[src]
Serialize a public key to bytes
pub fn from_slice(data: &[u8]) -> Result<PrivateKey, Error>
[src]
Deserialize a private key from a slice
pub fn from_scalar(scalar: Scalar) -> PrivateKey
[src]
Create a secret key from a raw curve25519 scalar
Trait Implementations
impl<S: Encoder> Encodable<S> for PrivateKey
[src]
impl<D: Decoder> Decodable<D> for PrivateKey
[src]
fn consensus_decode(d: &mut D) -> Result<PrivateKey, Error>
[src]
impl Eq for PrivateKey
[src]
impl Copy for PrivateKey
[src]
impl PartialEq<PrivateKey> for PrivateKey
[src]
fn eq(&self, other: &PrivateKey) -> bool
[src]
fn ne(&self, other: &PrivateKey) -> bool
[src]
impl Clone for PrivateKey
[src]
fn clone(&self) -> PrivateKey
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Display for PrivateKey
[src]
impl Debug for PrivateKey
[src]
impl<'a, 'b> Add<&'b PrivateKey> for &'a PrivateKey
[src]
type Output = PrivateKey
The resulting type after applying the +
operator.
fn add(self, other: &'b PrivateKey) -> Self::Output
[src]
impl<'a> Add<PrivateKey> for &'a PrivateKey
[src]
type Output = PrivateKey
The resulting type after applying the +
operator.
fn add(self, other: PrivateKey) -> Self::Output
[src]
impl<'b> Add<&'b PrivateKey> for PrivateKey
[src]
type Output = PrivateKey
The resulting type after applying the +
operator.
fn add(self, other: &'b PrivateKey) -> Self::Output
[src]
impl Add<PrivateKey> for PrivateKey
[src]
type Output = PrivateKey
The resulting type after applying the +
operator.
fn add(self, other: PrivateKey) -> Self::Output
[src]
impl<'b> Mul<&'b PublicKey> for PrivateKey
[src]
type Output = PublicKey
The resulting type after applying the *
operator.
fn mul(self, other: &'b PublicKey) -> Self::Output
[src]
impl<'a, 'b> Mul<&'b PublicKey> for &'a PrivateKey
[src]
type Output = PublicKey
The resulting type after applying the *
operator.
fn mul(self, other: &'b PublicKey) -> Self::Output
[src]
impl<'b> Mul<&'b PrivateKey> for PublicKey
[src]
type Output = PublicKey
The resulting type after applying the *
operator.
fn mul(self, other: &'b PrivateKey) -> Self::Output
[src]
impl Index<RangeFull> for PrivateKey
[src]
impl FromStr for PrivateKey
[src]
Auto Trait Implementations
impl Send for PrivateKey
impl Sync for PrivateKey
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
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> From for T
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto 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> Same for T
type Output = T
Should always be Self