WalletCore
WalletCore
/
wallet.core.jni
/
WebAuthn
Web
Authn
class
WebAuthn
Functions
Functions
get
Public
Key
Link copied to clipboard
open
fun
getPublicKey
(
attestationObject
:
Array
<
Byte
>
)
:
PublicKey
Converts attestation object to the public key on P256 curve
get
RSValues
Link copied to clipboard
open
fun
getRSValues
(
signature
:
Array
<
Byte
>
)
:
Array
<
Byte
>
Uses ASN parser to extract r and s values from a webauthn signature
reconstruct
Original
Message
Link copied to clipboard
open
fun
reconstructOriginalMessage
(
authenticatorData
:
Array
<
Byte
>
,
clientDataJSON
:
Array
<
Byte
>
)
:
Array
<
Byte
>
Reconstructs the original message that was signed via P256 curve.