Struct wildland_crypto::identity::signing_keypair::SigningKeypair
source · [−]pub struct SigningKeypair(_);Implementations
sourceimpl 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
sourceimpl Debug for SigningKeypair
impl Debug for SigningKeypair
sourceimpl<'de> Deserialize<'de> for SigningKeypair
impl<'de> Deserialize<'de> for SigningKeypair
sourcefn 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
sourceimpl From<&SigningKeypair> for SigningKeypair
impl From<&SigningKeypair> for SigningKeypair
sourcefn from(other: &SigningKeypair) -> Self
fn from(other: &SigningKeypair) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<SigningKeypair> for SigningKeypair
impl PartialEq<SigningKeypair> for SigningKeypair
sourceimpl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more