Struct wildland_crypto::identity::signing_keypair::SigningKeypair
source · pub struct SigningKeypair(_);Implementations§
source§impl SigningKeypair
impl SigningKeypair
pub fn generate<R>(csprng: &mut R) -> Selfwhere R: CryptoRng + RngCore,
pub fn try_from_bytes_slices( pubkey: PubKey, seckey: SecKey ) -> Result<Self, CryptoError>
pub fn try_from_str( public_key: &str, secret_key: &str ) -> Result<Self, CryptoError>
pub fn try_from_secret_bytes( secret_key_bytes: &SecKey ) -> Result<Self, CryptoError>
pub fn public(&self) -> PubKey
pub fn secret(&self) -> SecKey
pub fn to_bytes(&self) -> Vec<u8>
pub fn sign(&self, msg: &[u8]) -> Signature
Trait Implementations§
source§impl Debug for SigningKeypair
impl Debug for SigningKeypair
source§impl<'de> Deserialize<'de> for SigningKeypair
impl<'de> Deserialize<'de> for SigningKeypair
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<&SigningKeypair> for SigningKeypair
impl From<&SigningKeypair> for SigningKeypair
source§fn from(other: &SigningKeypair) -> Self
fn from(other: &SigningKeypair) -> Self
Converts to this type from the input type.
source§impl PartialEq<SigningKeypair> for SigningKeypair
impl PartialEq<SigningKeypair> for SigningKeypair
source§impl Serialize for SigningKeypair
impl Serialize for SigningKeypair
Auto Trait Implementations§
impl RefUnwindSafe for SigningKeypair
impl Send for SigningKeypair
impl Sync for SigningKeypair
impl Unpin for SigningKeypair
impl UnwindSafe for SigningKeypair
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more