zerodevapp / sdk

MIT License
38 stars 36 forks source link

Passkey plugin - Calls to passkey-server during message signing seem to be redundant #152

Closed hjornigur closed 4 months ago

hjornigur commented 4 months ago

Normally there is a need to verify a signature on a backend when the challenge signed was issued on the backend as well. This is not the case with signing a user operation.

In fact, all of the things required to sign and send a user operation are already present in passkey validator.

Removing the calls to sign-* endpoints would greatly simplify integrations with custom passkey servers.

How to get all the necessary data without reaching out to the passkey-server? For the sign options:

For the encoded signature object: