Omxus Authentication
Omxus Authentication
Built
Omxus uses a single shared sign-in system (auth.omxus.com). It offers email and password, a passkey, or three inputs. This page explains the three inputs: your identity is derived from them entirely client-side, and no server stores them.
How It Actually Works
With the three inputs, you enter:
- Your name
- Your birthday
- Your secret words (4 or more — your choice, you pick them, they never leave your browser)
From those inputs, your browser does this:
- Normalizes the inputs
- Generates a BIP-39 seed (the same standard Bitcoin wallets use)
- Derives a BIP-32 hierarchical key
- Produces a secp256k1 keypair
- Derives your ETH address
Same inputs = same address. Every time. On every device. No server stores your inputs. No account creation. Nobody can reset them for you, or cancel them if someone else gets them. If you remember your inputs, you have your identity, and so does anyone who learns them.
Challenge-Response Authentication
Once your address exists, logging in works like this:
- Your browser sends your ETH address to the server
- Server returns a challenge string:
omxus-auth:<random>:<timestamp> - Your browser signs the challenge with your private key
- Server recovers the address from the signature
- If it matches, you're in. Session created.
The server never sees your name, birthday, or secret words. It only ever sees your public address and your signature.
Architecture
| Component | What It Is | Status |
|---|---|---|
| Cloudflare D1 | Database (omxus-auth-db) — tables: identities, sessions |
Built |
| Auth SDK | packages/omxus-auth/ — drop-in auth for any Omxus app |
Built |
| secp256k1.js | Noble v2.2.3 IIFE bundle, 14KB | Built |
| core.js | 47KB — Keccak, BIP-39, BIP-32, identity derivation, BLE, WebRTC, signing | Built |
| auth-client.js | 5KB — browser-side wiring | Built |
| auth-server.js | 5KB — server-side address recovery | Built |
API Endpoints
POST /auth/challenge
{
"address": "0x..."
}
Returns: {"challenge": "omxus-auth:<random>:<timestamp>"}
POST /auth/verify
{
"address": "0x...",
"displayName": "optional",
"challenge": "omxus-auth:<random>:<timestamp>",
"v": 27,
"r": "0x...",
"s": "0x..."
}
Returns: {"address": "0x...", "displayName": "..."}
GET /auth/session
Returns current session or 401.
POST /auth/logout
Clears session.
Where It's Deployed
| App | URL | Status |
|---|---|---|
| VoteAussie | voteaussie.com / voteaussie.pages.dev | Built |
| bselr | bselr.com (Hono + core.js) | Built |
| Vex | vex.omxus.com / vex-omxus.pages.dev | Built |
All three use the same D1 database. Same auth SDK. Same identity.
Code Usage
// Derive identity (client-side, browser)
const identity = await deriveIdentity(name, dob, words)
// Returns: { address, keyBytes }
// Full login flow (client-side)
const session = await authLogin(name, dob, words, displayName)
// Verify signature (server-side, pure TypeScript)
const recovered = recoverAddress(challenge, v, r, s)
<!-- Add to any page -->
<script src="/omxus-auth/secp256k1.js"></script>
<script src="/omxus-auth/core.js"></script>
<script src="/omxus-auth/auth-client.js"></script>
Security Properties
These apply to the three inputs:
- No server-side secrets — the server only stores public addresses and sessions
- Deterministic — same inputs always produce the same identity
- Client-side derivation — your secret words never leave your browser
- Challenge-response — replay-resistant, timestamp-bound
Limits of the Three Inputs
- Name and birthday are not secret, so the secret words carry all the protection
- The key stretching is the BIP-39 standard (PBKDF2-SHA512, 2048 rounds), which is modest, so short or common words can be guessed offline
- A stolen identity cannot be revoked or changed
- A phishing site that asks for the inputs gets the whole identity
Email and password or a passkey avoid some of these limits. Accounts on that path store a contact and a password hash, with passwords stretched before they reach the server.
Beyond Basic Auth
In Progress FIDO2 / NFC Ring — WebAuthn as a second factor (P-256). Code exists in fido2.js but setupFIDO2 is stubbed. The ring hardware doesn't exist yet. See NFC Technology.
Planned Web of Trust — Vouching ceremony code exists in ceremony.js. Not deployed. See Web of Trust.
Last edited 5 Nov 2026, 8:23 pm by Omxus Wiki. History