Private and Secure Post-Quantum Verifiable Random Function with NIZK Proof and Ring-LWE Encryption in Blockchain
Proposes a blockchain VRF combining MPC seeds, off-chain Ring-LWE encryption, DID ring signatures with NIZK proofs, and NIST SP800-22 randomness tests on Ethereum/Ganache.
Schemes: Ring-LWE encryption, VRF, DID-based ring signature, Chaum-Pedersen proof, Fiat-Shamir heuristic, Franklin-Zhang ring signature, NIST SP800-22
Findings (quotes checked against the source text)
-
Off-chain Ring-LWE encryption is used to derive VRF output, with on-chain gas cost motivating offloading lattice arithmetic off-chain.
Considering computational costs and resultant on-chain gas costs, we suggest a bifurcated architecture for VRF design, optimizing interactions between on-chain and off-chain.
-
The randomness evaluation reports 172 of 176 NIST SP800-22 sub-tests passing, on 11 of 15 tests, with 4 failures.
Out of 176 tests, only 4 failed, marking an impressive pass rate of about 98.86%.
-
Quantum resistance rests on an assumption that Ring-LWE stays hard against quantum attack, stated as a postulate rather than proven.
Ring-LWE Postulation (Quantum Resilient): Considering quantum machines can effi-ciently tackle discrete logarithm and integer factorization, but not the Ring-LWE, we infer the Ring Learning With Errors challenge remains quantum-resistant.
-
The ring signature and NIZK are built on discrete-log style group exponentiations (g^t, Chaum-Pedersen over a 2048-bit prime), which are not post-quantum, so the ring/NIZK layer is not quantum-safe.
Signature Generation: Exponentiation tasks, notably 𝑇, exhibit a complexity of Θ(log 𝑝), where 𝑝 is the group modulus.
Numbers (as extracted, not quote-checked)
- Overall NIST SP800-22 pass rate: 98.86% (172 of 176 tests)
- Average p-value across NIST tests: 0.5459
- Ethereum contract creation gas: 3,425,664 gas units
- Assumed hash/seed size k: 256 bits
- Assumed ring degree M: 1024
For builders
Treat this as a design sketch: the useful idea is off-chain lattice computation with an on-chain verifiable proof, but the discrete-log ring signature layer must be replaced by a PQ scheme before any chain use.
Limits
No concrete Ring-LWE parameters, no security level, the ring/NIZK layer is discrete-log based, and the testing is only on Ganache with a single NIST randomness suite.
Topics: kem sig-other zk-proofs wallets-keys ethereum-migration benchmarks consensus