INNER CODE UNIT · JavaScript
end
mylofi/webauthn-local-client · src/walc.js:605
let end = start + 1;
while (end < authData.byteLength) {
try {
publicKey = CBOR.decode(remainingBytes.slice(start,end).buffer);
break;
}
catch (err) {
end++;
}
}
// public-key was successfully decoded?
if (publicKey != null) {
// public-key in OKP (typically EdDSA) form?
if (
publicKey[1] == 1 &&
publicKey[3] == -8
) {