-
Notifications
You must be signed in to change notification settings - Fork 108
Description
What's happening?
I'm trying to work with passkeys. I'm generating a passkey with "react-native-passkeys" https://github.com/peterferguson/react-native-passkeys, then trying to extract the coordinates and rawId with the @safe-global/protocol-kit library:
https://github.com/safe-global/safe-core-sdk/blob/main/packages/protocol-kit/src/utils/passkeys/extractPasskeyData.ts#L12
Then the code fails on this line:
https://github.com/safe-global/safe-core-sdk/blob/main/packages/protocol-kit/src/utils/passkeys/extractPasskeyData.ts#L47
with "Unknown EC import format: spki"
I can see in the source code that that spki import case has been disabled:
https://github.com/margelo/react-native-quick-crypto/blob/0.x/src/ec.ts#L146
Why?
Reproducible Code
const key = await crypto.subtle.importKey('spki', publicKey, algorithm, true, ['verify'])Relevant log output
Error: Unknown EC import format: spkiDevice
simulator iPhone Pro 16 (ios 18)
QuickCrypto Version
0.7.5
Can you reproduce this issue in the QuickCrypto Example app?
I didn't try (
Additional information
- I am using Expo
- I have read the Troubleshooting Guide
- I agree to follow this project's Code of Conduct
- I searched for similar issues in this repository and found none.
