[−][src]Struct ed25519_zebra::SigningKey
An Ed25519 signing key.
This is also called a secret key by other implementations.
Implementations
impl SigningKey
[src]
pub fn new<R: RngCore + CryptoRng>(rng: R) -> SigningKey
[src]
Generate a new signing key.
pub fn sign(&self, msg: &[u8]) -> Signature
[src]
Create a signature on msg
using this key.
Trait Implementations
impl AsRef<[u8]> for SigningKey
[src]
impl Clone for SigningKey
[src]
fn clone(&self) -> SigningKey
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for SigningKey
[src]
impl Debug for SigningKey
[src]
impl<'de> Deserialize<'de> for SigningKey
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<'a> From<&'a SigningKey> for VerificationKey
[src]
fn from(sk: &'a SigningKey) -> VerificationKey
[src]
impl<'a> From<&'a SigningKey> for VerificationKeyBytes
[src]
fn from(sk: &'a SigningKey) -> VerificationKeyBytes
[src]
impl From<[u8; 32]> for SigningKey
[src]
impl From<SigningKey> for [u8; 32]
[src]
impl Serialize for SigningKey
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'_> TryFrom<&'_ [u8]> for SigningKey
[src]
Auto Trait Implementations
impl RefUnwindSafe for SigningKey
impl Send for SigningKey
impl Sync for SigningKey
impl Unpin for SigningKey
impl UnwindSafe for SigningKey
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> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
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> ToHex for T where
T: AsRef<[u8]>,
[src]
T: AsRef<[u8]>,
fn encode_hex<U>(&self) -> U where
U: FromIterator<char>,
[src]
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> U where
U: FromIterator<char>,
[src]
U: FromIterator<char>,
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> 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>,