Enum blockify::KeyPairAlgorithm
source · pub enum KeyPairAlgorithm {
Ed25519,
Ecdsa256256Fixed,
RsaPKCS1256,
}Expand description
An enum representing the different algorithms that can be used to generate key pairs.
The following algorithms are supported:
Ed25519: An elliptic curve digital signature algorithm.Ecdsa256256Fixed: An elliptic curve digital signature algorithm with a fixed curve.RsaPKCS1256: A Rivest–Shamir–Adleman algorithm with a 256-bit modulus.
Variants§
Implementations§
source§impl KeyPairAlgorithm
impl KeyPairAlgorithm
pub fn verify( self, msg: &[u8], signature: &DigitalSignature, signer: &[u8] ) -> Result<(), VerificationError>
Trait Implementations§
source§impl Clone for KeyPairAlgorithm
impl Clone for KeyPairAlgorithm
source§fn clone(&self) -> KeyPairAlgorithm
fn clone(&self) -> KeyPairAlgorithm
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for KeyPairAlgorithm
impl Debug for KeyPairAlgorithm
source§impl<'de> Deserialize<'de> for KeyPairAlgorithm
impl<'de> Deserialize<'de> for KeyPairAlgorithm
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 Hash for KeyPairAlgorithm
impl Hash for KeyPairAlgorithm
source§impl PartialEq<KeyPairAlgorithm> for KeyPairAlgorithm
impl PartialEq<KeyPairAlgorithm> for KeyPairAlgorithm
source§fn eq(&self, other: &KeyPairAlgorithm) -> bool
fn eq(&self, other: &KeyPairAlgorithm) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for KeyPairAlgorithm
impl Serialize for KeyPairAlgorithm
impl Copy for KeyPairAlgorithm
impl Eq for KeyPairAlgorithm
impl StructuralEq for KeyPairAlgorithm
impl StructuralPartialEq for KeyPairAlgorithm
Auto Trait Implementations§
impl RefUnwindSafe for KeyPairAlgorithm
impl Send for KeyPairAlgorithm
impl Sync for KeyPairAlgorithm
impl Unpin for KeyPairAlgorithm
impl UnwindSafe for KeyPairAlgorithm
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