Skip to content

Port vanity generator to Solana + Solana branding#8

Open
HODL-Community wants to merge 3 commits into
mainfrom
codex/solana-port-ui
Open

Port vanity generator to Solana + Solana branding#8
HODL-Community wants to merge 3 commits into
mainfrom
codex/solana-port-ui

Conversation

@HODL-Community

@HODL-Community HODL-Community commented Feb 12, 2026

Copy link
Copy Markdown
Owner

Summary

  • Ported the generator from Ethereum/secp256k1 to Solana/ed25519 with Base58 prefix/suffix matching.
  • Kept the same web UI structure while updating copy and behavior for wallet/program ID targets.
  • Added Solana GPU support via a hybrid backend: CPU workers generate keypairs, WebGPU compute shader performs parallel Base58 vanity matching.
  • Added full-scale app readiness tooling: unit tests, browser E2E tests, quality scripts, and CI workflow.
  • Updated theme + iconography to Solana colors/glyphs and refreshed OG/Twitter/favicons.
  • Removed obsolete Ethereum-specific codepaths for maintainability.

Functional Changes

  • src/worker/vanityWorker.ts
    • Added generate mode to emit raw Solana key batches (privKeys, pubKeys).
    • Retained CPU search mode as a fallback path.
  • src/worker/pool.ts
    • Added generate(batchSize) API alongside search(...).
    • Extended worker message routing for both result types.
  • src/webgpu/base58Matcher.wgsl
    • New compute shader for Base58 encoding + prefix/suffix matching in parallel.
  • src/webgpu/gpuMatcher.ts
    • New WebGPU matcher runtime (pipeline, buffers, dispatch, match index readback).
  • src/ui/app.ts
    • Added backend auto-benchmark/caching (GPU vs CPU).
    • Added GPU runtime path: workers generate keypairs, GPU finds matching index, then app resolves address/private key.
    • Added VITE_FORCE_BACKEND=cpu|gpu support for deterministic testing/troubleshooting.

Full-Scale Test/Prep Additions

  • vitest unit test setup:
    • vitest.config.ts
    • tests/unit/solanaAddress.test.ts
    • tests/unit/keys.test.ts
  • @playwright/test browser E2E setup:
    • playwright.config.ts
    • tests/e2e/app.spec.ts
    • Headless Chromium flow validates render/validation and real generate→match→reveal flow.
  • CI workflow:
    • .github/workflows/ci.yml
    • Runs build, test:unit, installs Chromium, then runs test:e2e.
    • Uploads Playwright artifacts.
  • Package scripts:
    • Added typecheck, test:unit, test:e2e, test, check.

UI/Branding

  • Solana palette in src/style.css.
  • Solana glyph in app header and public/favicon.svg.
  • Open Graph/Twitter cards replaced with Solana assets (public/og-image.svg, public/twitter-card.svg).
  • SEO/manifest/sitemap/robots updated for vanity-sol-gpu naming.

Cleanup

  • Removed Ethereum-only modules:
    • src/wallet/ethAddress.ts
    • src/wallet/keystoreV3.ts
    • src/worker/wasmPool.ts
    • src/worker/wasmVanityWorker.ts
    • src/webgpu/* (old secp256k1 shader path)
  • Simplified dependencies/config to Solana runtime needs and re-added WebGPU typings for the new matcher path.

Validation

  • npm run build passes.
  • npm run test:unit passes.
  • npm run test:e2e passes.
  • npm run check passes.

Notes

  • Mistakes log updated in notes/mistakes.md per repo instruction.

@vercel

vercel Bot commented Feb 12, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
vanity-eth-gpu Ready Ready Preview, Comment Feb 12, 2026 8:33pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant