Struct dup_crypto::keys::ed25519::Ed25519KeyPair [−][src]
pub struct Ed25519KeyPair { /* fields omitted */ }
Expand description
Store a ed25519 cryptographic key pair (PublicKey
+ PrivateKey
)
Implementations
impl Ed25519KeyPair
[src]
impl Ed25519KeyPair
[src]pub fn generate_random() -> Result<Self, UnspecifiedRandError>
[src]
pub fn generate_random() -> Result<Self, UnspecifiedRandError>
[src]Generate random keypair
Trait Implementations
impl Clone for Ed25519KeyPair
[src]
impl Clone for Ed25519KeyPair
[src]fn clone(&self) -> Ed25519KeyPair
[src]
fn clone(&self) -> Ed25519KeyPair
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for Ed25519KeyPair
[src]
impl Debug for Ed25519KeyPair
[src]impl Display for Ed25519KeyPair
[src]
impl Display for Ed25519KeyPair
[src]impl KeyPair for Ed25519KeyPair
[src]
impl KeyPair for Ed25519KeyPair
[src]fn generate_signator(&self) -> Self::Signator
[src]
fn generate_signator(&self) -> Self::Signator
[src]Generate signator.
fn public_key(&self) -> PublicKey
[src]
fn public_key(&self) -> PublicKey
[src]Get PublicKey
fn verify(
&self,
message: &[u8],
signature: &<<Self::Signator as Signator>::PublicKey as PublicKey>::Signature
) -> Result<(), SigError>
[src]
fn verify(
&self,
message: &[u8],
signature: &<<Self::Signator as Signator>::PublicKey as PublicKey>::Signature
) -> Result<(), SigError>
[src]Verify a signature with public key.
fn upcast(self) -> KeyPairEnum
[src]
fn upcast(self) -> KeyPairEnum
[src]Upcast to KeyPairEnum
impl PartialEq<Ed25519KeyPair> for Ed25519KeyPair
[src]
impl PartialEq<Ed25519KeyPair> for Ed25519KeyPair
[src]impl Eq for Ed25519KeyPair
[src]
impl StructuralEq for Ed25519KeyPair
[src]
Auto Trait Implementations
impl RefUnwindSafe for Ed25519KeyPair
impl Send for Ed25519KeyPair
impl Sync for Ed25519KeyPair
impl Unpin for Ed25519KeyPair
impl UnwindSafe for Ed25519KeyPair
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more