Passkey (Webauthn) signer
Self-custodial wallet secured by Passkeys (Webauthn)
If you want to check out a live sample app using Passkey signers, check out the live demo with RapidSafe.
Install the required dependencies#
In this sample, we'll be using the Safe smart account, with Safe7579 adapter to add support for Passkeys and session keys.
- TypeScript is optional, but highly recommended.
Implementation#
Please refer to the complete code for the Wallet UI if you want to see the full implementation of the Passkey signer.
Components:
- Check all the available
EcosystemProvider
configuration methods at EcosystemProvider SDK reference.
Configure Supported Chains#
As you can see above, its required that you configure Wagmi and the chains you plan on enabling for your wallet.
Note that, to enable transaction simulation through asset changes, the Ecosystem SDK internally requires the eth_simulateV1
JSON-RPC method, so you will need to provide an RPC endpoint that supports this method (or disable simulation through the EcosystemProvider using disableTransactionSimulation
).