getFormattedSignature

open fun getFormattedSignature(signature: Array<Byte>, challenge: Array<Byte>, authenticatorData: Array<Byte>, clientDataJSON: String): Array<Byte>

Converts the original ASN-encoded signature from webauthn to the format accepted by Barz

Return

Bytes of the formatted signature

Parameters

signature

Original signature

challenge

The original challenge that was signed

authenticatorData

Returned from Webauthn API

clientDataJSON

Returned from Webauthn API