Class: PasskeyAuthenticator
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.
Extends
UniffiAbstractObject
Implements
Properties
[destructorGuardSymbol]
readonly [destructorGuardSymbol]: UniffiGcObject;
[pointerLiteralSymbol]
readonly [pointerLiteralSymbol]: bigint;
[uniffiTypeNameSymbol]
readonly [uniffiTypeNameSymbol]: "PasskeyAuthenticator" = "PasskeyAuthenticator";
Methods
authenticatorData()
authenticatorData(): ArrayBuffer;
Opaque authenticator data for this passkey signature.
See https://www.w3.org/TR/webauthn-2/#sctn-authenticator-data for more information on this field.
Returns
ArrayBuffer
Implementation of
PasskeyAuthenticatorLike.authenticatorData
challenge()
challenge(): ArrayBuffer;
The parsed challenge message for this passkey signature.
This is parsed by decoding the base64url data from the client_data_json.challenge field.
Returns
ArrayBuffer
Implementation of
PasskeyAuthenticatorLike.challenge
clientDataJson()
clientDataJson(): string;
Structured, unparsed, JSON for this passkey signature.
See https://www.w3.org/TR/webauthn-2/#dictdef-collectedclientdata for more information on this field.
Returns
string
Implementation of
PasskeyAuthenticatorLike.clientDataJson
deriveAddress()
deriveAddress(): AddressLike;
Derive the Address of the passkey that produced this authenticator.
See PasskeyPublicKey::derive_address.
Returns
Implementation of
PasskeyAuthenticatorLike.deriveAddress
equals()
equals(other): boolean;
Parameters
other
PasskeyAuthenticator
Returns
boolean
publicKey()
publicKey(): PasskeyPublicKeyLike;
The passkey public key.
Returns
Implementation of
PasskeyAuthenticatorLike.publicKey
signature()
signature(): SimpleSignatureLike;
The passkey signature.
Returns
Implementation of
PasskeyAuthenticatorLike.signature
toBcs()
toBcs(): ArrayBuffer;
Convert this type to BCS encoded bytes.
Returns
ArrayBuffer
Implementation of
PasskeyAuthenticatorLike.toBcs
toDebugString()
toDebugString(): string;
Returns
string
toDisplayString()
toDisplayString(): string;
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.
Returns
string
Implementation of
PasskeyAuthenticatorLike.toDisplayString
toJson()
toJson(): string;
Convert this type to a JSON encoded string.
Returns
string
Implementation of
PasskeyAuthenticatorLike.toJson
toString()
toString(): string;
Returns a string representation of an object.
Returns
string
uniffiDestroy()
uniffiDestroy(): void;
Explicitly tell Rust to destroy the native peer that backs this object.
Once this method has been called, any following method calls will throw an error.
Can be called more than once.
Returns
void
Overrides
UniffiAbstractObject.uniffiDestroy
uniffiUse()
uniffiUse<T>(block): T;
A convenience method to use this object, then destroy it after its use.
Type Parameters
T
T
Parameters
block
(obj) => T
Returns
T
Inherited from
UniffiAbstractObject.uniffiUse
fromBcs()
static fromBcs(bcs): PasskeyAuthenticatorLike;
Create this type from BCS encoded bytes.
Parameters
bcs
ArrayBuffer
Returns
fromJson()
static fromJson(json): PasskeyAuthenticatorLike;
Create this type from a JSON encoded string.
Parameters
json
string
Returns
instanceOf()
static instanceOf(obj_): obj_ is PasskeyAuthenticator;
Parameters
obj_
any
Returns
obj_ is PasskeyAuthenticator