pub enum KeyType {
P256Public,
P256Private,
P384Public,
P384Private,
K256Public,
K256Private,
Ed25519Public,
Ed25519Private,
}Expand description
Cryptographic key types supported for AT Protocol identity.
Variants§
P256Public
A p256 (P-256 / secp256r1 / ES256) public key. The multibase / multicodec prefix is 8024.
P256Private
A p256 (P-256 / secp256r1 / ES256) private key. The multibase / multicodec prefix is 8626.
P384Public
A p384 (P-384 / secp384r1 / ES384) public key. The multibase / multicodec prefix is 1200.
P384Private
A p384 (P-384 / secp384r1 / ES384) private key. The multibase / multicodec prefix is 1301.
K256Public
A k256 (K-256 / secp256k1 / ES256K) public key. The multibase / multicodec prefix is e701.
K256Private
A k256 (K-256 / secp256k1 / ES256K) private key. The multibase / multicodec prefix is 8126.
Ed25519Public
An Ed25519 public key. The multibase / multicodec prefix is ed01.
Ed25519Private
An Ed25519 private key. The multibase / multicodec prefix is 8026.
Trait Implementations§
impl StructuralPartialEq for KeyType
Auto Trait Implementations§
impl Freeze for KeyType
impl RefUnwindSafe for KeyType
impl Send for KeyType
impl Sync for KeyType
impl Unpin for KeyType
impl UnsafeUnpin for KeyType
impl UnwindSafe for KeyType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.