This minimalistic example application demonstrates a Safe{Core} Smart Account deployment leveraging 4337 and Passkeys. It uses unaudited (at the moment of writing) contracts: SafeWebAuthnSharedSigner. The SafeWebAuthnSharedSigner allows specifying any signature verifier, including the precompile, but the app chooses to use FreshCryptoLib verifier under the hood.
git clone https://github.com/safe-global/safe-modules.git
cd safe-modulespnpm installcp .env.example .envand fill in the variables in .env file.
Helpful links:
- 4337 Bundler: https://www.pimlico.io/
- WalletConnect: https://cloud.walletconnect.com/
pnpm run --filter @safe-global/safe-modules-example-4337-passkeys devThe application depends on a specific set of contracts deployed on a specific network. If you want to use your own contracts, you need to adjust the configuration in src/config.ts file.