FlexNet JSX • Sui • Workers

FlexNet JSX · Cloudflare Workers · Sui

DeGig Access Portal

Stand up a lightweight FlexNet experience that reuses the DegenVets login logic: passphrase-first account creation, Sui SDK key handling, and wallet gating that runs anywhere Cloudflare Workers run.

Login + Account Creation

Uses the existing window.signIn() flow from the main app. Users generate a 12-word passphrase (bundled @scure/bip39), derive an Ed25519 key with the Sui SDK bundle, then lock in username/password/PIN before syncing to KV via Workers.

  • Bundles run without Node; pure ES modules only.
  • Local storage keypair cache with KV backup hooks.
  • Token container selector + login gate reused from FlexNet runtime.

Onboarding Checklist

  1. Tap Start / Connect to open the token container modal.
  2. Save the generated 12-word passphrase (mandatory).
  3. Confirm passphrase → set username/password/PIN.
  4. Connect a token container or stay with the local ecosystem container.

Everything runs in the browser/Worker edge; no backend Node runtime required.

Status

Token Container: Checking…
Account Number:
Network: mainnet
SUI:
USDC:

This view is driven by token container state so it stays in sync across tabs.

Why FlexNet Here?

Cloudflare-native

No Node APIs required. All crypto and wallet flows rely on bundled ESM libraries and the Workers runtime.

Sui SDK Bundled

Uses the prebuilt /public/vendor/sui/index.js bundle for Ed25519 keys, keeping imports local and deterministic.

FlexNet Layout

BEM starter + runtime loader keep CSP-friendly event wiring and the login gate consistent with the main DegenVets surface.