Skip to main content

PasskeyAuthenticatorProtocol

PasskeyAuthenticatorProtocol Objects​

class PasskeyAuthenticatorProtocol(typing.Protocol)

A passkey authenticator.

BCS

The BCS serialized form of this type is specified in bcs-schema.abnf.

See <https://www.w3.org/TR/webauthn-2/`dictdef`-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.

authenticator_data​

def authenticator_data() -> bytes

Opaque authenticator data for this passkey signature.

See <https://www.w3.org/TR/webauthn-2/`sctn`-authenticator-data> for more information on this field.

challenge​

def challenge() -> bytes

The parsed challenge message for this passkey signature.

This is parsed by decoding the base64url data from the client_data_json.challenge field.

client_data_json​

def client_data_json() -> str

Structured, unparsed, JSON for this passkey signature.

See <https://www.w3.org/TR/webauthn-2/`dictdef`-collectedclientdata> for more information on this field.

derive_address​

def derive_address() -> Address

Derive the Address of the passkey that produced this authenticator.

See PasskeyPublicKey::derive_address.

public_key​

def public_key() -> PasskeyPublicKey

The passkey public key.

signature​

def signature() -> SimpleSignature

The passkey signature.

to_bcs​

def to_bcs() -> bytes

Convert this type to BCS encoded bytes.

to_display_string​

def to_display_string() -> str

Render this type as human-readable text.

Some types also print this through the binding's native string conversion; this method is the spelling every object type has.

The layout is meant for reading and can change between releases. Use the JSON or BCS conversions for output that gets parsed.

to_json​

def to_json() -> str

Convert this type to a JSON encoded string.