Cosmic SIWE
Sign In with Ethereum using cosmic random nonces from Orbitport
A Next.js app that implements Sign In with Ethereum (SIWE) using cosmic random nonces from Orbitport's cTRNG service. The app generates truly unpredictable nonces from satellite instrumentation, stores them server-side with iron-session, and verifies wallet signatures against them. Includes a step-by-step UI, fallback to local crypto, and a mismatch simulation mode for testing error handling.
Resources
- Source code on GitHub — clone and run locally
- Blog post — detailed writeup on the architecture and implementation
- Orbitport SDK Quickstart — general setup guide for Orbitport
- SIWE specification (EIP-4361)