WebAuthnSignature

class WebAuthnSignature(signature: ByteArray, authenticatorData: ByteArray, clientDataJson: ByteArray) : Signature

A WebAuthn assertion in the exact Aptos BCS layout.

Credential acquisition stays application-owned; this type validates the assertion and packages it for a SingleKey authenticator.

Constructors

Link copied to clipboard
constructor(signature: ByteArray, authenticatorData: ByteArray, clientDataJson: ByteArray)
constructor(signature: HexInput, authenticatorData: HexInput, clientDataJson: HexInput)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun toBcs(): ByteArray
Link copied to clipboard
open override fun toByteArray(): ByteArray

Get the raw signature bytes

Link copied to clipboard
fun verify(publicKey: Secp256r1PublicKey, signingMessage: ByteArray, options: WebAuthnVerificationOptions = WebAuthnVerificationOptions()): Boolean