[−][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<'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<'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<'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 Add<PrivateKey> for PrivateKey
[src]
type Output = PrivateKey
The resulting type after applying the +
operator.
fn add(self, other: PrivateKey) -> Self::Output
[src]
impl Clone for PrivateKey
[src]
fn clone(&self) -> PrivateKey
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for PrivateKey
[src]
impl Debug for PrivateKey
[src]
impl<D: Decoder> Decodable<D> for PrivateKey
[src]
fn consensus_decode(d: &mut D) -> Result<PrivateKey, Error>
[src]
impl Display for PrivateKey
[src]
impl<S: Encoder> Encodable<S> for PrivateKey
[src]
impl Eq for PrivateKey
[src]
impl FromStr for PrivateKey
[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl Index<RangeFull> for PrivateKey
[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<'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 Mul<PrivateKey> for PrivateKey
[src]
type Output = PrivateKey
The resulting type after applying the *
operator.
fn mul(self, other: PrivateKey) -> Self::Output
[src]
impl Mul<u8> for PrivateKey
[src]
type Output = PrivateKey
The resulting type after applying the *
operator.
fn mul(self, other: u8) -> Self::Output
[src]
impl PartialEq<PrivateKey> for PrivateKey
[src]
fn eq(&self, other: &PrivateKey) -> bool
[src]
fn ne(&self, other: &PrivateKey) -> bool
[src]
impl StructuralEq for PrivateKey
[src]
impl StructuralPartialEq for PrivateKey
[src]
Auto Trait Implementations
impl RefUnwindSafe for PrivateKey
impl Send for PrivateKey
impl Sync for PrivateKey
impl Unpin for PrivateKey
impl UnwindSafe for PrivateKey
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>,