๐ Now in Public Beta
Deterministic Safe Prime Oracle
The first auditable, entropy-free safe prime oracle for Web3 infrastructure and encryption
Generate, verify, and look up safe primes with a single API call. No randomness. No trust assumptions.
Same index always produces the same safe prime. No PRNG, no entropy โ pure mathematics.
Learn more โ
Every prime is independently verifiable. Open-source engine with Miller-Rabin proofs.
Learn more โ
Sub-100ms response times with built-in caching. Pre-compute and look up in O(1).
Learn more โ
Designed for smart contracts, zero-knowledge proofs, and decentralised key generation.
Learn more โ
Enter a prime index and get a verified safe prime back instantly.
Integrate EchoPrime into your project in seconds.
# Find a safe prime at index 100 curl https://echoprime.xyz/echoprime/api/v1/find/100 # Verify a safe prime curl https://echoprime.xyz/echoprime/api/v1/verify/23 # With API key (higher rate limits) curl -H "x-api-key: ep_your_key_here" \ https://echoprime.xyz/echoprime/api/v1/find/500 # Batch verify curl -X POST https://echoprime.xyz/echoprime/api/v1/batch-verify \ -H "Content-Type: application/json" \ -d '{"candidates": [23, 47, 59, 83, 100]}'
import requests BASE = "https://echoprime.xyz/echoprime/api/v1" # Find a safe prime r = requests.get(f"{BASE}/find/100") prime = r.json()["data"] print(f"Safe prime: {prime['p']}") print(f"Sophie Germain: {prime['q']}") # Verify a candidate r = requests.get(f"{BASE}/verify/23") print(r.json()["data"]["verified"]) # True # Batch verify r = requests.post(f"{BASE}/batch-verify", json={ "candidates": [23, 47, 59, 83, 100] }) for result in r.json()["data"]["results"]: print(f"{result['p']}: {result['verified']}")
const BASE = "https://echoprime.xyz/echoprime/api/v1"; // Find a safe prime const res = await fetch(`${BASE}/find/100`); const { data } = await res.json(); console.log(`Safe prime: ${data.p}`); console.log(`Sophie Germain: ${data.q}`); // Verify a candidate const v = await fetch(`${BASE}/verify/23`); const { data: vData } = await v.json(); console.log(vData.verified); // true // Batch verify const batch = await fetch(`${BASE}/batch-verify`, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ candidates: [23, 47, 59, 83, 100] }) }); const { data: bData } = await batch.json(); bData.results.forEach(r => console.log(`${r.p}: ${r.verified}`) );
Start for free. Scale when you need to.
For exploration & prototyping
For indie developers & startups
For production Web3 infrastructure
For protocols & institutions
Two integration paths. One deterministic oracle. Every safe prime verified.
pip install echoprime
Self-hosted. Run your own prime generation. Full control.
api.echoprime.xyz
Managed service. Instant lookups. No infrastructure.
DEXs, lending protocols, and bridges need verifiable prime parameters for on-chain cryptographic operations.
Learn more โ
Prime-sized hash tables dramatically reduce collision rates. Safe primes ensure optimal distribution.
Learn more โ
Blum Blum Shub and LCG generators need safe prime moduli. Deterministic primes = reproducible sequences.
Learn more โ
Reed-Solomon and BCH codes operate over prime fields. Safe primes provide optimal field sizes.
Learn more โ
Monte Carlo simulations, molecular dynamics, and climate models need reproducible prime-based sequences.
Learn more โ
DKG, threshold signatures, and Shamir's Secret Sharing need agreed-upon prime parameters across all nodes.
Learn more โ
Constrained devices can't compute large primes. API lookup in <5ms vs minutes of local computation.
Learn more โ
Prime-based algorithms for terrain and world generation. Same index = same world, every time.
Learn more โ
Anonymous credentials (Idemix/AnonCreds) and group signatures rely on safe prime groups.
Learn more โ
Post-quantum transition needs infrastructure now. EchoPrime as the bridge between classical and PQ cryptography.
Learn more โ
Every verified safe prime is permanently recorded on Ethereum. Tamper-proof. Publicly queryable. No trust required.
Deployed and verified. Every safe prime submission is an immutable, auditable record.
0x17221f97F05e0Ed46F9Cb284004f65992FcF174A
Indices 1โ1,000 submitted across 48 batch transactions on Ethereum Sepolia. First 10 shown below.
Each transaction is independently verifiable on Etherscan. Click any TX hash to view the full on-chain record.
Let's walk through Index 5 as an example:
๐ 47 is a safe prime โ it equals 2 ร 23 + 1, where both 47 and 23 are prime. This is the foundation of Diffie-Hellman key exchange, RSA key generation, and zero-knowledge proof ceremonies.
๐ Collapse scores = 1.0 โ EchoPrime's verification algorithm (based on Lucas' primality theorem, 1878) confirmed both values with maximum confidence. Scores are stored as fixed-point integers scaled by 10ยนโธ for on-chain precision.
๐ On-chain = permanent โ once a prime is recorded in a block, it cannot be altered, deleted, or disputed. The Ethereum network (thousands of nodes worldwide) maintains this record indefinitely.
๐ Anyone can verify โ call getPrime(5) on the contract from any Ethereum client. No API key. No account. No trust required.
Traditional prime generation is a black box โ you trust the software that generated them. With EchoPrime, every prime has a public, auditable trail: the index it was projected from, its collapse scores, the verification result, who submitted it, and when. It's cryptographic transparency at the infrastructure level.
Think of it like a public notary for prime numbers. Instead of trusting one server, you trust the entire Ethereum network.
EchoPrimeOracle.sol โ a public, permissionless registry of verified safe primes on Ethereum. Every submission includes index, prime value, collapse scores, and primality proof.
Learn more โ
Every submission emits a PrimeVerified event, enabling off-chain indexers, ZK rollup coordinators, and ceremony tooling to monitor and consume verified primes in real time.
Learn more โ
Submit up to 100 verified primes in a single transaction. Gas-optimised for high-throughput oracle operations. EIP-1559 support with automatic gas price management.
Learn more โ
Automated 24/7 pipeline: generate โ verify โ queue โ submit โ monitor. Persistent retry queue, wallet management, and health monitoring built in.
Learn more โ
The EchoPrime oracle stores verified safe primes on-chain with full trace metadata.
uint256 p โ Safe primeuint256 q โ Sophie Germain prime (pโ1)/2uint256 scoreP โ Collapse score for p (ร10ยนโธ)uint256 scoreQ โ Collapse score for q (ร10ยนโธ)bool verified โ Primality confirmedaddress submitter โ Who submitteduint256 timestamp โ Block timestampEmitted on every submission. Off-chain indexers, ZK coordinators, and ceremony tooling can subscribe to this event.
event PrimeVerified(
uint256 indexed index, // Deterministic projection index
uint256 p, // Safe prime
uint256 q, // Sophie Germain prime
uint256 scoreP, // Collapse score for p (ร10ยนโธ)
uint256 scoreQ, // Collapse score for q (ร10ยนโธ)
bool verified, // Primality confirmed
address indexed submitter // Oracle bot address
);
The contract uses a simple owner + authorized submitters model. The deployer (owner) can add or remove oracle bots. Only authorized addresses can submit primes โ but anyone can query the registry. Reads are free. The registry is a public good.
Loading contract...
EchoPrime is the layer before encryption. It generates the safe primes that cryptographic systems are built on.
Encryption is a lock. EchoPrime makes the metal the lock is built from.
A safe prime is a prime number p where (p โ 1) / 2 is also prime. That second prime is called a Sophie Germain prime (named after the French mathematician Marie-Sophie Germain, 1776โ1831, one of the first women in mathematics).
They always come in pairs. For example: p = 23 is a safe prime because q = 11 is also prime, and 23 = 2 ร 11 + 1.
Only about 7โ10% of all prime numbers are safe primes. They're rare, and they're essential for secure cryptography.
Every major cryptographic protocol depends on safe primes:
Put simply: if the prime is weak, the encryption is weak. Every HTTPS connection, every encrypted message, every blockchain transaction ultimately depends on the quality of the primes underneath.
Currently, the industry generates safe primes using random number generators. The process:
This is slow, wasteful, and non-reproducible. Two parties generating primes independently will get different results every time. There's no way to audit where a prime came from or verify it wasn't tampered with.
For small primes this doesn't matter. For cryptographic-scale primes (2,048โ4,096 bits), finding a single safe prime can take minutes to hours. And you just have to trust the generator was honest.
EchoPrime replaces random generation with a deterministic, auditable pipeline:
pโโโ โ ฮฑ ยท n ยท (ln n)ยฒ (derived from the Bateman-Horn conjecture) to predict where safe primes are, skipping dead zones.Think of it like Google Maps for safe primes. Anyone can calculate a route manually โ but nobody does. They use the API. EchoPrime does the same thing: it computes, verifies, stores, and serves safe primes so your application doesn't have to.
Safe primes and deterministic prime generation aren't just for encryption. They're fundamental to many areas of computing and science:
Anywhere you need a prime number that's provably correct, instantly available, and reproducible โ that's where EchoPrime fits.
Analytic projection using pโโโ โ 2.8913 ยท n ยท (ln n)ยฒ, derived from the Bateman-Horn heuristic for the density of safe primes. Targets prime-rich regions instead of searching blindly.
Uses Lucas' theorem: for a prime p, the binomial coefficient C(p,k) โก 0 mod p for all k in [1,T]. Primes always score 1.0. Composites always score below 1.0. Zero false positives in 1,000+ tests.
Automated 24/7: estimate โ find โ verify โ hash โ submit to Ethereum. EIP-1559 gas management, persistent retry queue, wallet nonce tracking, health monitoring.
EchoPrimeOracle.sol โ public registry on Ethereum. Every record includes: index, safe prime (p), Sophie Germain prime (q), collapse scores, verification status, submitter address, and timestamp.
EchoPrime is built by Mikoshi Ltd โ a UK-based fintech and cryptographic infrastructure company. Built by the Mikoshi research team.
๐ Citation
Edwards, D. (2026). EchoPrime: A Verifiable Oracle for Deterministic Safe Prime Generation with On-Chain Audit Trails. Zenodo.
https://doi.org/10.5281/zenodo.18529723
Questions about the API, SDK, smart contracts, or enterprise integration? We're here to help.
Registered in England & Wales
Mikoshi Ltd ยท SwanseaFor enterprise licensing, custom integration, or research collaboration:
โ๏ธ Send us an email