pub struct PasskeyAuthenticator { /* private fields */ }Expand description
A passkey authenticator.
§BCS
The BCS serialized form for this type is defined by the following ABNF:
passkey-bcs = bytes ; where the contents of the bytes are
; defined by <passkey>
passkey = passkey-flag
bytes ; passkey authenticator data
client-data-json ; valid json
simple-signature ; required to be a secp256r1 signature
client-data-json = string ; valid jsonSee CollectedClientData for
the required json-schema for the client-data-json rule. In addition, IOTA
currently requires that the CollectedClientData.type field is required to
be webauthn.get.
Note: Due to historical reasons, signatures are serialized slightly
different from the majority of the types in IOTA. In particular if a
signature is ever embedded in another structure it generally is serialized
as bytes meaning it has a length prefix that defines the length of
the completely serialized signature.
Implementations§
Source§impl PasskeyAuthenticator
impl PasskeyAuthenticator
Sourcepub fn authenticator_data(&self) -> &[u8] ⓘ
pub fn authenticator_data(&self) -> &[u8] ⓘ
Opaque authenticator data for this passkey signature.
See Authenticator Data for more information on this field.
Sourcepub fn client_data_json(&self) -> &str
pub fn client_data_json(&self) -> &str
Structured, unparsed, JSON for this passkey signature.
See CollectedClientData for more information on this field.
Sourcepub fn challenge(&self) -> &[u8] ⓘ
pub fn challenge(&self) -> &[u8] ⓘ
The parsed challenge message for this passkey signature.
This is parsed by decoding the base64url data from the
client_data_json.challenge field.
Sourcepub fn signature(&self) -> SimpleSignature
pub fn signature(&self) -> SimpleSignature
The passkey signature.
Sourcepub fn public_key(&self) -> PasskeyPublicKey
pub fn public_key(&self) -> PasskeyPublicKey
The passkey public key
Trait Implementations§
Source§impl Arbitrary for PasskeyAuthenticator
Available on crate feature proptest only.
impl Arbitrary for PasskeyAuthenticator
proptest only.Source§type Parameters = ()
type Parameters = ()
arbitrary_with accepts for configuration
of the generated Strategy. Parameters must implement Default.Source§type Strategy = BoxedStrategy<PasskeyAuthenticator>
type Strategy = BoxedStrategy<PasskeyAuthenticator>
Strategy used to generate values of type Self.Source§fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
Source§impl Clone for PasskeyAuthenticator
impl Clone for PasskeyAuthenticator
Source§fn clone(&self) -> PasskeyAuthenticator
fn clone(&self) -> PasskeyAuthenticator
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PasskeyAuthenticator
impl Debug for PasskeyAuthenticator
Source§impl<'de> Deserialize<'de> for PasskeyAuthenticator
Available on crate feature serde only.
impl<'de> Deserialize<'de> for PasskeyAuthenticator
serde only.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>,
Source§impl JsonSchema for PasskeyAuthenticator
Available on crate feature serde only.
impl JsonSchema for PasskeyAuthenticator
serde only.Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read moreSource§impl PartialEq for PasskeyAuthenticator
impl PartialEq for PasskeyAuthenticator
Source§impl Serialize for PasskeyAuthenticator
Available on crate feature serde only.
impl Serialize for PasskeyAuthenticator
serde only.impl Eq for PasskeyAuthenticator
impl StructuralPartialEq for PasskeyAuthenticator
Auto Trait Implementations§
impl Freeze for PasskeyAuthenticator
impl RefUnwindSafe for PasskeyAuthenticator
impl Send for PasskeyAuthenticator
impl Sync for PasskeyAuthenticator
impl Unpin for PasskeyAuthenticator
impl UnwindSafe for PasskeyAuthenticator
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more