Wallet Infrastructure
Wallet Architecture, Handles & Custody
How FurlPay connects self-custodial wallets, Circle user-controlled wallets, embedded/smart wallet abstractions, WebAuthn device passkeys, multi-chain balance indexing, and payment handle reservations (name.furlpay.com).
Key custody model
Wallet tiers & abstractions
- Non-custodial linked wallets: Challenge-signed ownership verification across EVM and Solana addresses persisted with Postgres RLS isolation. Users sign all transfers directly in their own wallet.
- Circle user-controlled wallets (MPC): SDK-driven wallet initialization and PIN/biometric transaction challenges via Circle W3S (in development; requires configured
CIRCLE_W3S_API_KEYand app ID). - Smart wallets & ERC-4337 Account Abstraction: Architecture packages in
packages/account-kitprepare smart-account and EIP-7702 / Paymaster patterns; production smart-wallet relaying remains gated pending bundler and paymaster credentials.
Payment handles, address book & transfers
Users can reserve human-readable handles backed by atomic Postgres claims on the Wallet surface and maintain screened destination contacts via /api/contacts. Wallet-to-wallet transfers evaluate syntax, sanctions screening, and permissions before signing or routing.
Permissions, recovery & monitoring
Sensitive wallet operations — linking external chain keys, authorizing smart permissions, or updating recovery settings — require fresh WebAuthn or OTP step-up verification.packages/wallet-intel provides address risk and behavioral screening prior to recording beneficiaries or executing transfers.
| Capability | Status | Evidence |
|---|---|---|
| Passkey authentication & challenge verification | VERIFIED_PRODUCTION | WebAuthn registration and assertion run in production via /api/auth/passkey/*. |
| Payment handle reservation (name.furlpay.com) | IMPLEMENTED_NOT_DEPLOYED | In development: backed by atomic Postgres handle uniqueness constraints pending production schema rollout. |
| Circle user-controlled MPC wallets | IMPLEMENTED_NOT_DEPLOYED | Pending: returns 503 unless CIRCLE_W3S_API_KEY and CIRCLE_W3S_APP_ID are provisioned. |
| ERC-4337 gasless paymaster sponsorship | PLANNED | Not enabled for arbitrary public execution without configured paymaster/bundler infrastructure. |
Wallet endpoints
| Method | Path | Description |
|---|---|---|
| GET | /api/wallet/balances | Read multi-chain wallet and cached ledger balances. |
| POST | /api/wallet/link/verify | Verify cryptographic signature proving self-custody wallet ownership. |
| POST | /api/wallet/chains/verify | Verify additional EVM/Solana chain address attestation. |
| GET | /api/wallets/circle | Fetch Circle W3S wallet status (503 when credentials unset). |
| GET | /api/contacts | List screened recipient address book entries. |
