f-23 / react-native-passkey

Passkeys for React Native
MIT License
135 stars 31 forks source link

How to sign an arbitrary message with a passkey? #37

Closed akshay-rr closed 2 months ago

akshay-rr commented 4 months ago

The README mentions the steps required to register a new passkey and authenticate with an existing passkey. How can I sign arbitrary data using the private key of a stored passkey on a user's device?

f-23 commented 2 months ago

AFAIK this is not possible the way you described it. You may want to have a look at the PRF extension, although this will only work on Android with react-native-passkey 3.0.0-beta.