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-modules
pnpm install
cp .env.example .env
and 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 dev
The 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.