420Docs context
Skip to content

W15.8 — 420Integrated Ecosystem Integration

Goal: Keep 420Wallet the account, signing and authorization interface for canonical Genesis applications. Status: repository-side integration; live deployed service acceptance remains W15.9; independent review remains W15.10. Physical Android/iOS acceptance remains deferred to testnet.

Authoritative sources and reused code

  • contracts/src/libraries/ServiceIds420.sol defines the Genesis identifiers; wallet/web/core/genesis-app-catalog.js already reconciles the Wallet-visible subset and documents unresolved 420Exchange, 420Commerce and 420Grow product identities without inventing Registry service IDs. wallet/web/test/genesis-app-catalog.test.js independently compares those IDs to Solidity.
  • contracts/src/apps/ProtocolRegistry.sol exposes getService(bytes32): implementation, runtime code hash, metadata hash, published revision, activation time, and active status. wallet/web/core/genesis-wallet-integration420.js hashes canonical service IDs, verifies that exact on-chain tuple and actual Registry/implementation bytecode against a chain-specific pinned deployment. Revoked, unpublished, wrong-chain, stale version, spoofed name/origin or mismatched runtime code must not produce an enabled app entry. No test fixture or locally set approved:true flag alone makes a service verified.
  • wallet/extension/service-worker.js reads the existing trusted extension configuration 420-wallet-extension-config-v1, only probes services on the currently verified chain and selected account, checks network epoch, and re-verifies Registry state on user-requested app launch. wallet/extension/popup.js delegates that launch to the trusted worker; no eth_requestAccounts, wallet_requestPermissions, capability grant, EIP-712 signature or transaction is created by navigation.

Release-controlled configuration (not a sample production deployment)

The trusted wallet extension configuration may provide ecosystemRegistry:{chainId,address,codeHash} and ecosystemServices:[{id,name,serviceId,approved,chainId,version,origin,url,implementation,codeHash,metadataHash}]. For example, serviceId:'420/service/swap/v1', id:'swap', name:'420 Swap'. All addresses and hashes must come from an independently approved exact-chain runtime manifest and the active ProtocolRegistry publication. The real chain-specific values are deliberately not supplied here. A signed/approved manifest plus matching live Registry code, version, active state, contract implementation, code hash, metadata hash and exact HTTPS origin are required; URL integrity and manifest signer provenance must be independently qualified as part of the official deployment and W15.9 testnet acceptance. Do not trust arbitrary local storage as a substitute for that publication.

The directory is opt-in via existing M11 serviceDiscovery privacy control and defaults empty. It is read-only for unconfigured/testnet-inactive services. Navigating to an authorized HTTPS URL opens a new tab but does not establish site connection, reveal eth_accounts or approve spending.

Shared authority and existing integrations retained

Original W15.8 requirement Actual repository boundary
Registry-backed canonical service discovery W14.5 canonical catalogue and new fresh ProtocolRegistry getService / code-hash / metadata-hash / active/version validation
420Names recipient anti-spoofing wallet/web/core/names-send.js, names-guided-send.js: lowercase ASCII .420, verified label hash/owner/recipient/expiry, before/after explicit review re-resolution; cannot silently retarget
420Identity account binding wallet/web/core/identity-management.js: deployed Identity420 profile/controller checks and bilateral Names↔Identity binding; metadata never becomes wallet owner/signer authority
Scoped capabilities and revocation wallet/web/core/capabilities.js, capability-management.js, existing extension Security Centre, approval lifecycle and origin-scoped eth_accounts/revocation; on-chain capability changes remain explicit owner actions
Supported 420Gas sponsorship wallet/web/core/gas-sponsorship.js, gas-quote-provider.js, qualified extension ERC-4337 execution: quote is funding-only and must match chain/account/EntryPoint and UserOperation digest, never implicit execution authorization
420Token and other token interactions wallet/web/core/token-runtime.js, token-handoff.js and wallet ERC-20 / NFT verification: pinned factory/registry/vault code-hash identity and explicit 42 native Token creation fee; navigation alone cannot create a token or approve transfers
Genesis app handoffs / consistent identity Verified service destination, selected EIP-155 chain and account, immutable launch snapshot, fresh Registry recheck and no silent grant; dApps separately request and receive existing per-origin/chain scoped approval
Developer Hub and SDK alignment The wallet's verified service IDs are protocol roles; Developer Hub navigation is not a canonical service ID. See docs/developers/wallet-genesis-connection.md and developer-hub/guides/wallet-genesis-integration.md

Offline adversarial acceptance

wallet/web/test/w15-8-genesis-integration.test.js tests canonical Solidity service identity, signed-style local approval being insufficient without on-chain Registry, malformed/revoked/stale/incorrect code/version/metadata, changing chain mid-check, URL spoof and phishing, duplicate service IDs, exact ABI selector, explicit account-bound navigation with no grant, 420Names case/unicode/retargeting, Gas sponsorship funding-only and canonical 420Token runtime.

Previously qualified Genesis client and extension signing/permission workflows remain authoritative; no RPC mock or Registry manifest asserts a deployed Genesis production service.

Testnet work remaining — W15.9, not W15.8 fake acceptance

  1. Pin the official Genesis runtime manifest, deployed ProtocolRegistry address/code, authorized metadata/origin publication, active service revisions and registry event/reorg handling. Qualify real network and service hash changes; do not enable links when source is unavailable.
  2. End-to-end 420Names/Identity verified deployments, expiry/retargeting, controller/profile/primary-name dual claims, account/chain drift and independent on-chain receipts.
  3. Real 420Gas paymaster and EntryPoint economics/failure/sponsored versus self-funded behavior; real 420Token creation / assets / fees and authorization, 420Swap/Bridge/Stake per their existing W15.9 worklists.
  4. Browser and mobile dApp sessions, origin grants/revocation, verified app deep links and WalletConnect peers on real browsers/devices, including revoked destination between page view and navigation, and post-handoff site consent.
  5. Record approved exact deployment SHA, chain ID, Registry bytecode hash, source service and version records, origin/signer provenance and redacted transaction/device evidence; external security under W15.10.

No unverified testnet applications, arbitrary websites, remote metadata, Registry records or Identity credentials may become private-key, SmartAccount, capability, session or spending authority.