Skip to content

Latest commit

 

History

History

4337-passkeys

Safe + 4337 + Passkeys example application

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.

Running the app

Clone the repository

git clone https://github.com/safe-global/safe-modules.git
cd safe-modules

Install dependencies

pnpm install

Fill in the environment variables

cp .env.example .env

and fill in the variables in .env file.

Helpful links:

Run the app in development mode

pnpm run --filter @safe-global/safe-modules-example-4337-passkeys dev

Config adjustments

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.