Skip to content

Commit

Permalink
[#293] Document passkey signer flow
Browse files Browse the repository at this point in the history
  • Loading branch information
akshay-ap committed Mar 13, 2024
1 parent 7b3ea24 commit 464267a
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions modules/passkey/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
# Passkey

This package contains a passkey signature verifier, that can be used as an owner for a Safe, compatible with versions 1.3.0+.

## Execution flow

```mermaid
sequenceDiagram
actor U as User
participant CS as CredentialStore
participant SPF as SafeProxyFactory
participant WASF as WebAuthnSignerFactory
participant SSL as SafeSignerLaunchpad
participant SS as SafeSingleton
participant SP as SafeProxy
participant WAV as WebAuthnVerifier
participant PV as P256Verifier
actor T as Target
U->>+CS: Create Credential (User calls `create(...)`)
CS->>U: Decode public key from the return value
U->>+WASF: Get signer address (signer might not be deployed yet)
WASF->>U: Signer address
U->>+SPF: Submit Payload that calculates SafeProxy address with SafeSignerLaunchpad as singleton and corresponding initializer data
U->>+Bundler: Submit Payload that contains init code to deploy SafeProxy and callData containing initializer data and UserOp
Bundler->>SPF: Deploy SafeProxy
```

0 comments on commit 464267a

Please sign in to comment.