We don't belong in your reality, your real life. In your reality, your real life, you can merely meet our avatars in any version. So, stay alert and beware of scams!
Revision D β October 13, 2025First Version: Web3 Login Implementation DraftStatus: Draft for sign-off (clean, single-source)
Owners: Prof. NOTA (Product/Architecture), Yuku (Tech Owner), BGC Γ iBLOOMING Eng/DevOps
We operate on a single, unified credentials database (already in production) for BGC and iBLOOMING. Users can sign up and log in to any app (BGC Web, iBLOOMING Web, iBLOOMING Mobile) with the same username/password and, during rollout, may also authenticate with a Passkey (WebAuthn) as a first-class method.
After login, users complete Wallet Setup by either:
Create EOA (Embedded/In-App) β auto-provision a Smart Account (AA); or
Connect existing wallet (SIWE) β auto-provision a Smart Account (AA).
This standardizes on-chain identity to one EOA and one Smart Account (AA) per user per chain, enabling consistent features (rewards, receipts, payments) across the BGC/iB ecosystem with minimal friction and predictable costs.
Bridging Web2 β Web3. If a user does not yet have a BGC/iB account, they must first sign up for a BGC/iB account and then log in (via username/password or Passkey). Only after a successful login is Wallet Setup available: either Create an embedded EOA β auto-provision AA or Connect an existing Web3 wallet β auto-provision AA. Web3-native users who already have a BGC/iB account simply log in and proceed to Wallet Setup.
Partner signal. A single, passkey-enabled login and post-login Smart Account bootstrap operating across apps demonstrates concrete momentum while tokenomics is finalized.
In scope: identity model, wallet binding, AA provisioning, SIWE, Passkey support, security, DevOps, and Thirdweb implementation.
Out of scope: tokenomics/ledger rules, analytics dashboards, and non-auth product features.
Single credentials auth for the BGC/iB ecosystem.
Passkey (WebAuthn) as a first-class login method (rolling out), with username/password fallback.
Post-login Wallet Setup (Create or Connect), not pre-login.
Constraints
Unified DB & identity
Single credentials store across BGC/iB; no per-app user tables.
One on-chain identity per user per chain: exactly 1 EOA + 1 AA.
Non-Goals
No separate user tables per app within the BGC/iB ecosystem.
No server-side plaintext key handling for wallets (embedded/MPC only).
5.1 New User (no BGC/iB account yet)
Sign up a BGC/iB account (username/password; offer Passkey registration during or after signup).
Log in using credentials or Passkey (MFA optional per policy).
Wallet Setup (post-login): choose Create or Connect.
CI/CD: build/lint/typecheck; E2E flows (Create & Connect); smoke tests for JWT issuance, SIWE verify, AA deploy.
Observability: metrics (login success/error, passkey adoption, SIWE failures, AA deployment success), logs, traces; alerts for gas spend and failure spikes.
Inventory current user stores; pick the source of truth (users).
Deduplicate historic BGC/iB accounts into unified users; preserve audit mapping.
Soft-launch Wallet Setup behind a feature flag (only users without a wallet see it).
Note (SMS): Thirdwebβs pricing notes international SMS may incur extra fees (country-dependent). If you avoid Phone OTP and use Email OTP for βCreate Walletβ, this line item is $0.
If you enable Phone OTP for wallet creation, budget per SMS by destination. For example, Indonesia outbound via Twilio is $0.4414 per SMS segment as of Oct-2025; US starts around $0.0083. (Using Email OTP keeps this at $0.)
SMS monthly estimate = # of SMS OTP Γ local_rate.
Reference fee level: recent data shows Base average tx fee β $0.03 per transaction. Use this as a baseline for simple, sponsored actions.
AA (smart account) deploy: budget β 2Γ average tx (contract deployment & init overhead) β β $0.06 per new wallet. (Rough planning factor.)
Paymaster surcharge (if using thirdweb paymaster):+2.5% on sponsored gas.
Real costs vary with network gas, calldata size, and ETH price on the day. You can reduce spend via lazy AA deployment (create AA on first action) and by sponsoring only onboarding operations.
Thirdweb platform (Starter): ~$5
In-App Wallet MAU, AA user-ops, RPC: $0 (within free tiers).
Gas sponsorship (Base):~$9β$111 depending on onboarding volume & sponsored actions (see table).
With some Phone OTP (ID): add ~$0.44 per SMS used.
Prefer Email OTP; keep Phone OTP as fallback only.
Lazy deploy smart accounts; sponsor first action only; set budget caps in paymaster rules.
End of document.
P.S. Read this document freely for information and guidance. Do not redistribute or restateβno quotes, summaries, paraphrases, or derivativesβwithout prior written permission from . Sharing the link is allowed. So, share the link, not the text. Do not discuss or re-tell the contents in any formβwritten, spoken, or recordedβwithout prior written permission.