Enum ddoresolver_rs::key::KeyPair
source · [−]pub enum KeyPair {
Ed25519(AsymmetricKey<PublicKey, SecretKey>),
X25519(AsymmetricKey<PublicKey, StaticSecret>),
P256(AsymmetricKey<VerifyingKey<NistP256>, SigningKey<NistP256>>),
Bls12381G1G2(AsymmetricKey<CyclicGroup, SecretKey>),
Secp256k1(AsymmetricKey<PublicKey, SecretKey>),
}
Variants
Ed25519(AsymmetricKey<PublicKey, SecretKey>)
X25519(AsymmetricKey<PublicKey, StaticSecret>)
P256(AsymmetricKey<VerifyingKey<NistP256>, SigningKey<NistP256>>)
Bls12381G1G2(AsymmetricKey<CyclicGroup, SecretKey>)
Secp256k1(AsymmetricKey<PublicKey, SecretKey>)
Trait Implementations
sourceimpl Fingerprint for KeyPair
impl Fingerprint for KeyPair
fn fingerprint(&self) -> String
sourceimpl<'_> From<&'_ VerificationMethod> for KeyPair
impl<'_> From<&'_ VerificationMethod> for KeyPair
sourcefn from(vm: &VerificationMethod) -> KeyPair
fn from(vm: &VerificationMethod) -> KeyPair
Converts to this type from the input type.
sourceimpl From<AsymmetricKey<CyclicGroup, SecretKey>> for KeyPair
impl From<AsymmetricKey<CyclicGroup, SecretKey>> for KeyPair
sourcefn from(key_pair: AsymmetricKey<CyclicGroup, SecretKey>) -> KeyPair
fn from(key_pair: AsymmetricKey<CyclicGroup, SecretKey>) -> KeyPair
Converts to this type from the input type.
sourceimpl From<AsymmetricKey<PublicKey, SecretKey>> for KeyPair
impl From<AsymmetricKey<PublicKey, SecretKey>> for KeyPair
sourcefn from(key_pair: AsymmetricKey<PublicKey, SecretKey>) -> KeyPair
fn from(key_pair: AsymmetricKey<PublicKey, SecretKey>) -> KeyPair
Converts to this type from the input type.
sourceimpl From<AsymmetricKey<PublicKey, SecretKey>> for KeyPair
impl From<AsymmetricKey<PublicKey, SecretKey>> for KeyPair
sourcefn from(key_pair: AsymmetricKey<PublicKey, SecretKey>) -> KeyPair
fn from(key_pair: AsymmetricKey<PublicKey, SecretKey>) -> KeyPair
Converts to this type from the input type.
sourceimpl From<AsymmetricKey<PublicKey, StaticSecret>> for KeyPair
impl From<AsymmetricKey<PublicKey, StaticSecret>> for KeyPair
sourcefn from(key_pair: AsymmetricKey<PublicKey, StaticSecret>) -> KeyPair
fn from(key_pair: AsymmetricKey<PublicKey, StaticSecret>) -> KeyPair
Converts to this type from the input type.
sourceimpl From<AsymmetricKey<VerifyingKey<NistP256>, SigningKey<NistP256>>> for KeyPair
impl From<AsymmetricKey<VerifyingKey<NistP256>, SigningKey<NistP256>>> for KeyPair
sourcefn from(
key_pair: AsymmetricKey<VerifyingKey<NistP256>, SigningKey<NistP256>>
) -> KeyPair
fn from(
key_pair: AsymmetricKey<VerifyingKey<NistP256>, SigningKey<NistP256>>
) -> KeyPair
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for KeyPair
impl Send for KeyPair
impl Sync for KeyPair
impl Unpin for KeyPair
impl UnwindSafe for KeyPair
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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