Show HN: Arken – Passwordless auth middleware using secp256k1 keys
In this news:
Key takeaways
- Arken Auth eliminates server-side secrets by using client-side secp256k1 keys.
- The cryptographic core is written in Rust and integrated with Node.js and Python.
- Unlike WebAuthn, identities use portable DIDs that travel across servers and apps.
How arken auth works
Every auth system today asks your server to hold a secret — a password hash, a session token, an API key. That secret is a liability. It gets breached. It gets phished. It gets rotated on a schedule that nobody follows.
Arken Auth flips the model: the user holds the secret, the server holds nothing.
Client requests a protected resource — server issues a one-time nonce. Client signs the nonce with their private key (never leaves their device). Client sends the signature + their DID back to the server. Server recovers the signer address from the signature and checks it matches the DID. No password ever transmitted. No session stored. No database touched.
The cryptographic core is written in Rust and called via FFI from Node.js or Python. That's it. arkenAuth() handles the entire challenge-response cycle.
The technical implementation
Any client that can sign an Ethereum message works. In the browser with ethers.js:
The key difference from WebAuthn: your identity (did:key:z...) is portable. It travels with you across servers, apps, and devices. A WebAuthn credential is bound to a single origin. A DID is bound to nothing but your key.
The Rust core exposes two functions over FFI: generate_challenge_into — generates a random nonce, stores it server-side with a 60s TTL, returns JSON. verify_request_into — parses the auth header, validates the nonce, recovers the signer, checks against the DID.
Arken uses did:key with secp256k1 keys (multicodec 0xe7 0x01), encoded as multibase base58btc (z prefix): This is the W3C DID Key Method spec.
Prerequisites and roadmap
Rust (for building the native library): curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh. Node.js ≥ 18 (for the npm package). Python ≥ 3.10 (for the pip package).
Phase 1 — working middleware for Express and FastAPI. The cryptographic core is complete and tested.
What's next: Prebuilt binaries (no Rust required to install), Session/token layer (optional, for stateful apps), did:web and did:pkh support, Browser extension wallet.
Source: github.com
Share the article:
Trending News & Crypto World
Latest Crypto News
Top Trending Cryptocurrencies on The Market
Current Price
$0.9992
Market Cap
$172.5B 0.02%
24h Volume
$92.8B
Supplies
178.1B / ∞
Current Price
$0.9997
Market Cap
$68.8B 0.00%
24h Volume
$21.5B
Supplies
68.8B / ∞
Current Price
$443.22
Market Cap
$58.3B 2.03%
24h Volume
$1.2B
Supplies
131.5M / 200.0M
Current Price
$0.7481
Market Cap
$47.5B 1.40%
24h Volume
$2.8B
Supplies
100.0B / 100.0B
Current Price
$60.120
Market Cap
$35.7B 5.88%
24h Volume
$6.4B
Supplies
638.8M / ∞
Current Price
$1.065
Market Cap
$29.5B 2.41%
24h Volume
$3.7M
Supplies
27.7B / ∞
Current Price
$0.2594
Market Cap
$24.7B 0.42%
24h Volume
$488.8M
Supplies
95.1B / ∞
Current Price
$62.150
Market Cap
$14.8B 7.98%
24h Volume
$1.4B
Supplies
949.7M / 1.0B
Current Price
$816.17
Market Cap
$13.9B 1.26%
24h Volume
$1.2B
Supplies
17.1M / 21.0M
Current Price
$8.990
Market Cap
$8.3B 2.53%
24h Volume
$1.3M
Supplies
985.2M / ∞
Current Price
$0.04682
Market Cap
$7.4B 4.58%
24h Volume
$858.0M
Supplies
157.0B / ∞
Current Price
$0.9999
Market Cap
$6.7B -2.36%
24h Volume
$491.6M
Supplies
6.7B / ∞