moonvoprf Interactive Crypto Lab RFC 9807 OPAQUE RFC 9497 VOPRF RFC 9578 Privacy Pass RFC 9591 FROST

Unified zero-FFI pure MoonBit cryptography stack compiled to native JavaScript ES Modules. Explore password-hardened 3DH authentication, unlinkable anonymous AI quota tokens with DLEQ proofs, and 2-of-3 decentralized Pedersen DKG threshold signatures live in your browser.

Loading MoonBit JS bundle...

Protocol Configuration & Credentials CSPRNG: WebCrypto

Simulated Server State (Zero Password Material)

Active Suite — Server PK — OPRF Seed —
No registered users yet. Run Phase 1: Registration to store a sealed RegistrationRecord.

1. Zero-Knowledge Registration Idle

Blinds password via shared voprf OPRF, derives sealed Envelope and client-only export_key. Server stores only RegistrationRecord.

2. Mutual-Auth 3DH Login Idle

Runs full KE1 → KE2 → KE3 → ServerFinish. Verifies both parties derive identical session_key and recovers export_key.

3. Anti-Enumeration Fake KE2 Idle

Probes unregistered user ghost@example.com. Server emits a wire-identical Fake KE2; client rejects with InvalidEnvelopeTag.

4. Wrong Password Rejection Idle

Attempts login for the registered user with a wrong password. Constant-time envelope tag check blocks recovery with InvalidEnvelopeTag.

5. MITM 1-Bit MAC Tampering Idle

Flips 1 bit in KE2.server_mac (InvalidServerMac) and 1 bit in KE3.client_mac (InvalidClientMac).

Full Security Tour Ready

Executes all 5 OPAQUE-3DH scenarios back-to-back with fresh WebCrypto entropy and logs every wire frame below.

Live Wire Protocol Inspector & Cryptographic Trace

Registered Record
—
Real KE2 Wire Size
—
Fake KE2 Wire Size
—
Last Session Key Match
—
Waiting for protocol execution. Click Run All 5 Scenarios or step through Registration & 3DH Login above.

AI API Anonymous Quota Gateway Configuration Type 0x0001 VOPRF

Protocol Security Properties Idle

Unlinkability Issuer signs blinded point B = r · H2G(token_input); cannot correlate issuance with redemption. Verifiability Chaum-Pedersen DLEQ proof (64 B) proves issuer used committed public key pkS with hedged nonce. Anti-Double-Spend Authenticator verified in constant time BEFORE recording nonce in NonceRegistry (no nonce poisoning).
Click Run Issuance & Redemption to generate live RFC 9578 TokenRequest, Proof, and Token.authenticator frames in pure MoonBit.
Awaiting VOPRF + Privacy Pass execution
Select a suite and optional attack toggles above to run live pure-MoonBit verification.
Ready

Privacy Pass Token & DLEQ Proof Inspector

DLEQ Proof Check
—
Tamper Defense
—
1st API Redeem
—
Replay Defense
—
No VOPRF / Privacy Pass frames captured yet.

FROST 2-of-3 Pedersen DKG & Signing Controls Threshold t=2 / n=3

3-Participant Quorum Status (No Trusted Dealer) Idle

Every run executes full 3-round decentralized Pedersen DKG with Feldman VSS & Schnorr Proofs of Knowledge, then runs 2-round threshold signing between Signers #1 & #2 with single-use zeroized nonces.

Signer #1 Idle
DKG + Active Quorum Signer
Signer #2 Idle
DKG + Active Quorum Signer
Signer #3 Standby
DKG Participant (Offline in 2-of-3)
Awaiting FROST 2-of-3 execution
Run Pedersen DKG + threshold signing above to verify a standard prime-order Schnorr signature or trigger Identifiable Abort.
Ready

FROST Group Public Key & Signature Inspector

Threshold Scheme
2-of-3 DKG
Group Public Key
—
Schnorr Verify
—
Cheater Attribution
—
No FROST threshold signing traces captured yet.