#[non_exhaustive]pub enum PublicKeyKind {
Secp256k1Compressed,
Secp256k1Uncompressed,
Ed25519,
Secp256k1XOnly,
}Expand description
Tag describing DerivedPublicKey’s variant without carrying the bytes.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Secp256k1Compressed
secp256k1 compressed SEC1.
Secp256k1Uncompressed
secp256k1 uncompressed SEC1.
Ed25519
Ed25519 (RFC 8032).
Secp256k1XOnly
BIP-340 x-only secp256k1.
Implementations§
Trait Implementations§
Source§impl Clone for PublicKeyKind
impl Clone for PublicKeyKind
Source§fn clone(&self) -> PublicKeyKind
fn clone(&self) -> PublicKeyKind
Returns a duplicate 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 PublicKeyKind
impl Debug for PublicKeyKind
Source§impl Display for PublicKeyKind
impl Display for PublicKeyKind
Source§impl Hash for PublicKeyKind
impl Hash for PublicKeyKind
Source§impl PartialEq for PublicKeyKind
impl PartialEq for PublicKeyKind
impl Copy for PublicKeyKind
impl Eq for PublicKeyKind
impl StructuralPartialEq for PublicKeyKind
Auto Trait Implementations§
impl Freeze for PublicKeyKind
impl RefUnwindSafe for PublicKeyKind
impl Send for PublicKeyKind
impl Sync for PublicKeyKind
impl Unpin for PublicKeyKind
impl UnsafeUnpin for PublicKeyKind
impl UnwindSafe for PublicKeyKind
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