RNG FLOW
Composable, Tiered-Trust, Verifiable Randomness for PulseChain
Executive Summary
RNG FLOW is the first and only verifiable randomness service built for PulseChain. It is not a port, not a fork, and not waiting for someone else to deploy. It exists because PulseChain deserves dedicated infrastructure — not afterthoughts from chains that will never prioritise it.
250 free RNG units/day
visual no-code builder
Gelato, or Pyth
as Chainlink VRF
No other randomness service — on any chain — lets you define what your entropy is made of, pin the recipe on-chain as a flowHash, and prove every draw followed it. Chainlink gives you their VRF key. Pyth gives you their commit-reveal. Gelato gives you their signer. RNG FLOW gives you the tools to build your own.
1 The problem
Every randomness service on the market today asks you to trust their black box. The entropy source is fixed. You take what they give you, and you trust them to run it correctly. You cannot inspect, compose, or verify the recipe — only the output.
Worse: none of them are on PulseChain. Chainlink has no PulseChain deployment and no announced plans. Pyth, Gelato, Supra, API3 — the same. If you're building on PulseChain today and need verifiable randomness, your options are: use a naive blockhash (biasable, insecure), roll your own VRF infrastructure from scratch, or use RNG FLOW.
RNG FLOW exists because that gap shouldn't exist. PulseChain is a growing ecosystem with real users, real NFT projects, real DeFi — and it deserves randomness infrastructure that is purpose-built, not ported.
What RNG FLOW does differently
keccak256 of that graph is pinned on-chain at publish time. Your consumers verify the exact recipe they agreed to, forever. No other product offers this.
2 System architecture
Five on-chain contracts plus two off-chain services. Every tier uses the same Registry for publishing; Tier 2 and Tier 3 additionally use the Requester and a Verifier. Tier 4 replaces the single signer with a distributed Circle of Entropy committee, verified on-chain by the FrostVerifier contract. All contracts are deployed and live on PulseChain mainnet.
A feed is a flow graph + an API key + a tier, published to the Registry with its flowHash. Once registered, the publisher owns it. Anyone holding the API key can request the server to execute the flow and return a signed draw. The entire system is designed to be self-service — no approval process, no waiting list, no token gates.
3 The tiered trust model
RNG FLOW doesn't force you into a one-size-fits-all trust model. You choose the tier that matches your use case — and you only pay for the guarantees you need. Tiers 1–3 are live today. Tiers 4–6 are the roadmap — each one adds a fundamentally new cryptographic capability.
| Tier | What it delivers | Publish fee | Per-call fee | On-chain? |
|---|---|---|---|---|
| T1 — Signed Flow | EIP-712 signed draws. Anyone with the public signer address can verify the JSON. Server cannot deny authorship. The fastest path from zero to production-grade randomness on PulseChain. | 25 eDAI | Free (250/feed/day) | No — off-server |
| T2 — Request-Bound | Consumer calls requestDraw on-chain, pinning a future block. Server must use blockhash(targetBlock) as salt. Grinding-resistant: the block is chosen before its hash is known. On-chain verifiable for the cost of a coffee. |
50 eDAI | ~$0.01 – $0.03 | Yes — Verifier |
| T3 — ECVRF | Everything T2 does, plus an ECVRF proof over keccak256(requestId ‖ blockhash). VRF output β becomes the flow salt. Bias-resistant even under full signer compromise — the same guarantee Chainlink VRF provides, at a fraction of the cost. |
150 eDAI | ~$0.03 – $0.08 | Yes — VRFVerifier |
| T4 — FROST (next) | Threshold Schnorr signatures via The Circle of Entropy — a distributed signer committee. No single party can produce a valid signature. Verified on-chain via ecrecover at ~3,000 gas. Signing is fully automated — each member runs a lightweight node that responds to requests in milliseconds with zero human intervention. Combined with multi-source cross-chain entropy (Bitcoin PoW, Ethereum RANDAO, drand beacon). Distributed trust cheaper than any competitor. |
300 eDAI | ~$0.10 – $0.25 | Yes — ecrecover |
| T5 — VDF (planned) | FROST + a Verifiable Delay Function layer. Prevents grinding by ensuring no party can preview the output faster than the VDF delay period. Designed for high-value draws where the extra cost is justified — jackpot lotteries, large-stake governance. | TBD | ~$0.50 – $1.50 | Yes — modexp |
| T6 — ZK (research) | FROST wrapped in a zk-SNARK. Proves correct evaluation and correct entropy sourcing without revealing signer topology or secret state. Recursive proofs chain each round to the previous — an unbreakable causal chain of randomness. The endgame. | TBD | ~$0.20 – $0.60 | Yes — SNARK |
Tier 1 — signed flow sequence
Tier 2 / Tier 3 — request-bound sequence
Tier 4 — FROST threshold sequence
4 Flow-based entropy composition
This is the feature no competitor has, and no competitor is building.
Every other randomness product hard-codes its entropy source. You get what they give you. RNG FLOW's entropy recipe is user-defined. A feed is a directed graph of nodes; at draw time the executor runs the graph, hashes each node's output into a canonical accumulator, and feeds that into the final RNG. The graph is designed visually — drag, drop, connect — with zero lines of code.
| Category | Nodes |
|---|---|
| Chain data | BlockInfo CumulativeBlockEntropy GasEstimate MempoolTip WalletBalance TokenInfo PoolRatio NFTSnapshot PLSBurnTracker |
| Price / market | PriceOracle PriceDelta |
| Beacons | CrossChainRelay (+ distributed beacon node planned) |
| External | HTTPRequest JSONParse SocialSignal |
| Transforms | Keccak256 Math StringOps Merge Timer Constant Variable |
| Commit / RNG | CommitReveal RNG |
The visual builder in action
No code. No CLI. Open the canvas, drag nodes from the palette, connect them, publish. Here's what that looks like:
The graph's keccak256 is pinned into the Registry at publish time — the recipe is immutable and publicly verifiable. A consumer can independently re-execute the flow graph (the source is plain JSON) and verify the server's output is consistent with the recipe they agreed to. This is transparency that no other randomness service can offer — because no other service exposes the recipe at all.
Flows are fully portable. The canvas supports export and import of entropy flows as .rng.json files — share a flow with a collaborator, back it up locally, or use it as a starting point for a new feed. Importing a flow restores the full graph (nodes, connections, and configuration) exactly as it was designed. Combined with the built-in template gallery, this means no one has to start from scratch.
5 Security & threat model
Every identified attack vector has a matching defense, deployed and live in production. RNG FLOW ships with abuse-prevention built in from day one — not bolted on after an exploit.
| Vector | Impact | Mitigation |
|---|---|---|
| Free-tier spam | Unbounded server CPU from one API key | Per-feed daily cap: 250 RNG units/UTC day (1 unit per RNG node per draw; a 4-node flow burns 4 units per call), atomic SQLite transaction; returns 429 with upgrade hint. Cap is per API key, not per IP — distributed bot attacks gain nothing. |
| Fee amplification (1 draw → N randoms) | Caller packs many RNG nodes into one draw to amortize the verify fee | Flows are capped at 16 RNG nodes (enforced at publish + on-chain). On T2/T3 the verify fee scales per RNG node — a 4-node draw costs 4× the per-node fee. The exploit is priced out by construction. |
| Anonymous HTTP flood | DoS by many IPs | Global rate-limit: 60 req/min per IP, X-Forwarded-For aware |
| T2/T3 replay | One on-chain request, many server POSTs | RequestId dedupe table — first POST computes + caches; subsequent return cached payload |
| Slow-loris block-wait | Sockets held open for seconds | 2 in-flight per feed + block wait capped at 15s default / 45s max |
| Grinding by operator | Picks favorable blockhash | T2/T3 bind salt to blockhash(targetBlock) pinned before the block exists; verifier re-checks |
| Signer key compromise | Forged signed draws | Rotate key in one tx. T3 unaffected: ECVRF secret is independent from signer key |
| Flow tampering | Different flow at draw time | flowHash pinned on-chain; Verifier rejects mismatches |
Entropy-node security model
The user-composable entropy nodes (HTTPRequest, CrossChainRelay, SocialSignal, CumulativeBlockEntropy) reach outside the chain and can't be re-derived on-chain after the fact. Each one therefore carries an explicit policy in the executor — published here so consumers can audit what the server is and isn't willing to do on a flow's behalf. Every rule below is enforced in rng-server/src/executor/nodes.ts; flow authors don't get to opt out.
| Node | Policy | What's blocked / pinned |
|---|---|---|
HTTPRequestisSafePublicUrl() |
Allow-list at fetch time. Only http: and https: URLs whose host is publicly routable. |
Loopback (127.0.0.0/8, ::1, localhost), RFC1918 (10/8, 172.16/12, 192.168/16), link-local (169.254/16 incl. cloud metadata at 169.254.169.254), IPv4 0.0.0.0/8, IPv6 unique-local (fc00::/7) and link-local (fe80::/10), and any non-HTTP scheme (file://, gopher://, etc.) all return undefined output — the seed is dropped, the draw still runs. |
CrossChainRelayCROSS_CHAIN_RPCS |
Fixed allow-list of seven L1/L2 networks with 2–3 fallback RPCs each. Flow authors choose which subset of the seven to sample; they cannot inject arbitrary RPC URLs. | Networks: Ethereum, BSC, Arbitrum, Polygon, Base, Optimism, Avalanche. Each fetches eth_getBlockByNumber("latest", false) only — no contract reads, no signed calls. Fallback RPCs are tried in order; if all fail for a chain that chain contributes undefined and is dropped from the seed mix without aborting the draw. Per-chain payload (chainId:8hex || blockNumber || blockHash) is keccak-chained in chain-id order — the order is canonical, not flow-author-chosen. |
SocialSignalsampleSocialSignal() |
Whitelist of three sources, each with a fixed scrape path and a sanitised handle. Flow authors pass {source, handle}; nothing else is accepted. |
reddit → public Atom RSS (www.reddit.com/r/<sub>/new/.rss), post IDs only (t3_* or /comments/*); telegram → public channel preview (t.me/s/<channel>), data-post attribute scrape; twitter → stub, returns "requires API key" until a paid endpoint is wired in. Handle is sanitised to [a-zA-Z0-9_-.]{1,64} — no path traversal, no query injection. Tokens are keccak-chained in the order the source returned them. Source unreachable → undefined output, seed dropped, draw continues. |
CumulativeBlockEntropycumulativeBlockEntropyRunner |
Clamped window of recent PulseChain blockhashes ending at the draw's reference block. Window size is flow-author chosen but bounded. | lookback is clamped to [1, 256] with default 16. The window always ends at ctx.blockNumber (the same reference block every other node uses for that draw) and walks backward — the operator cannot pick a different end-block to grind. If a requested block is missing from the RPC the node returns undefined and the seed is dropped. Hashing shape H_0 = keccak(h_0); H_{i+1} = keccak(H_i ‖ h_{i+1}) matches the RNG node's mixer so downstream chaining is byte-identical. |
The shared invariant: any node that can't fulfil its policy returns undefined and the seed is dropped — the draw never silently substitutes a different value. The proof's seeds array always reflects exactly which inputs contributed entropy; if a configured node doesn't appear, it didn't contribute, and the consumer sees that immediately. Truly unknown node types (anything not registered in the executor's RUNNERS map) are rejected up-front with "Unsupported node types: <name>" before any execution begins, so a typo in a flow definition fails loud rather than silent.
6 Comparison with alternatives
The randomness space has established players. Here's exactly where RNG FLOW stands relative to each of them — and where it pulls ahead.
Head-to-head
| Service | Trust model | Chains | Why RNG FLOW wins |
|---|---|---|---|
| Chainlink VRF v2 | Decentralized Oracle Network | 20+ | RNG FLOW T3 delivers the same ECVRF guarantee at 10–100x lower cost, adds visual flow composition and on-chain flowHash binding that Chainlink does not offer at any price, and is actually deployed on PulseChain. Chainlink is not. |
| Pyth Entropy | Commit-reveal, single provider | 30+ | Pyth uses commit-reveal with a single entropy provider — weaker than ECVRF. RNG FLOW binds to blockhash and ECVRF, composes arbitrary entropy sources, and is live on PulseChain. Pyth is not. |
| API3 QRNG | Airnode + QRNG lab | Many | QRNG is "trust the quantum source + the Airnode signer." No on-chain VRF proof. No flow composition. No PulseChain deployment. T3 is strictly stronger cryptographically. |
| drand | BLS threshold consortium | External | Strongest distributed trust in the space. RNG FLOW's planned T4 tier will integrate a distributed beacon (drand or equivalent) as a source node — combining distributed trust with flow composition. |
| Gelato VRF | Single Gelato operator | Many | Architecturally closest to T2. But Gelato does not pin a user-defined flow hash, does not offer multi-source composition, has no free tier, and is not on PulseChain. |
| Supra dVRF | Multi-node committee | Many | Committee-based — good trust model. But the same flow-composition gap as everyone else, and no PulseChain presence. |
| RANDAO | L1 consensus beacon | ETH only | Not on PulseChain. Biasable by the block proposer. Not suitable for high-value randomness. |
| Naive blockhash | None — validator can bias | All EVM | The anti-pattern that RNG FLOW exists to replace. T2/T3 are a direct, cryptographically secure alternative. |
Feature matrix
| Feature | Chainlink | Pyth | drand | Gelato | FLOW T1 | FLOW T2 | FLOW T3 |
|---|---|---|---|---|---|---|---|
| On-chain verification | ✓ | ✓ | ✓ | ✓ | ✗ | ✓ | ✓ |
| ECVRF proof | ✓ | ✗ | ✗ | ✓ | ✗ | ✗ | ✓ |
| Request-bound to future block | ✓ | ✓ | ~ | ✓ | ✗ | ✓ | ✓ |
| User-composable entropy flow | ✗ | ✗ | ✗ | ✗ | ✓ | ✓ | ✓ |
On-chain flowHash binding | ✗ | ✗ | ✗ | ✗ | ✓ | ✓ | ✓ |
| Free production tier | ~ | ~ | ✓ | ✗ | ✓ | ✗ | ✗ |
| Deployed on PulseChain | ✗ | ✗ | ~ | ✗ | ✓ | ✓ | ✓ |
| Per-draw < $0.10 | ✗ | ✓ | ✓ | ~ | ✓ | ✓ | ✓ |
| No subscription to start | ✗ | ✓ | ✓ | ✗ | ✓ | ✓ | ✓ |
| Visual no-code builder | ✗ | ✗ | ✗ | ✗ | ✓ | ✓ | ✓ |
Legend: ✓ yes · ~ partial · ✗ no. Highlighted rows are capabilities unique to RNG FLOW.
Capability radar
Six axes, scored 0–5. RNG FLOW dominates on composability and cost — the two axes that matter most for PulseChain builders. The dashed line shows the roadmap trajectory.
7 Cost analysis
RNG FLOW is 10–100x cheaper than every alternative. This is not a promotional price — it's a structural advantage.
PulseChain gas is fundamentally cheaper than Ethereum L1 and most L2s. RNG FLOW's per-draw fees scale with network conditions — no separate token with its own market dynamics, no subscription overhead. Competitors operating on more expensive chains cannot match this pricing without operating at a loss. The cost advantage is architectural.
| Service | Deployment | Typical per-draw cost | Setup cost | Free tier? |
|---|---|---|---|---|
| Chainlink VRF v2 | Ethereum mainnet | ~$2 – $10 | LINK subscription | Testnet only |
| Chainlink VRF v2 | Polygon / Arbitrum | ~$0.10 – $0.80 | LINK subscription | Testnet only |
| Pyth Entropy | Any supported EVM | ~$0.05 – $0.50 | None | Indirect |
| Gelato VRF | Supported EVMs | ~$0.20 – $1.50 | 1Balance top-up | No |
| drand (DIY) | Any (external) | Gas-only for verification | DIY infrastructure | Yes (no SLA) |
| RNG FLOW T1 | PulseChain | $0.00 | 25 eDAI one-time | Yes · 250/day |
| RNG FLOW T2 | PulseChain | ~$0.01 – $0.03 | 50 eDAI one-time | No |
| RNG FLOW T3 | PulseChain | ~$0.03 – $0.08 | 150 eDAI one-time | No |
| RNG FLOW T4 | PulseChain | ~$0.10 – $0.25 | 300 eDAI one-time | No |
8 Product trajectory
RNG FLOW is built with intention. V1 is PulseChain-focused and operator-run — by design. PulseChain is where the first customers are, where the cost advantage is most dramatic, and where no competitor exists. The architecture is designed from day one to scale outward from this foundation.
Trajectory: V1 → V2 → V3
9 The Circle of Entropy
Tier 4 is not a product upgrade. It is a philosophical one.
Tiers 1–3 are operator-run: a single signer key controlled by the RNG FLOW team. T2 and T3 constrain that operator cryptographically — blockhash binding and ECVRF proofs mean the operator cannot cheat — but the system depends on one entity being available and honest. Tier 4 eliminates that dependency entirely.
The Circle of Entropy is a committee of independent signers who collectively produce randomness using FROST — Flexible Round-Optimized Schnorr Threshold signatures (RFC 9591). No single member, including the RNG FLOW operator, can produce a valid signature alone. A threshold of the Circle must cooperate for every draw.
Red Squirrel, Hairy Labs, Disc Golfer, and PulseRay hold the first four seats. As independent members join, temporary signers are retired. Each filled seat is a measurable, publicly verifiable trust upgrade.
How FROST works
FROST (RFC 9591, standardized June 2024) is a threshold Schnorr signature scheme over secp256k1 — the same curve used by Ethereum and PulseChain. The critical advantage: FROST signatures are verified on-chain using the existing ecrecover precompile at ~3,000 gas. For comparison, BLS12-381 pairing verification costs 10–50 million gas. FROST is 3,000–15,000x cheaper.
| Step | What happens | Who participates |
|---|---|---|
| 1. DKG | Distributed Key Generation ceremony. Each member generates a secret share via Pedersen VSS. No trusted dealer — shares are computed collectively. The group public key is published on-chain. No single member ever sees the full private key. It doesn't exist in one place. | All Circle members (one-time) |
| 2. Round 1 | When a draw is requested, each available signer generates a random nonce and broadcasts a commitment to the coordinator. | ≥ 5 of 9 members |
| 3. Round 2 | Each signer computes a partial Schnorr signature over keccak256(feedId ‖ requestId ‖ blockhash ‖ entropy) using their secret share and nonce. Partials are sent to the coordinator. | ≥ 5 of 9 members |
| 4. Aggregate | The coordinator combines the partial signatures into a single Schnorr signature. This is indistinguishable from a regular secp256k1 signature — verified on-chain via ecrecover. | Coordinator (any member) |
Cross-chain entropy mixing
Tier 4 doesn't just distribute the signing — it distributes the entropy. Every T4 draw mixes the FROST threshold signature with high-value external entropy sources:
| Source | Entropy quality | Why it matters |
|---|---|---|
| Bitcoin PoW | 68+ bits min-entropy per block (Bonneau et al., 2015) | Attacking this source means attacking Bitcoin itself. The most expensive entropy in existence. |
| Ethereum RANDAO | Accumulates validator BLS signatures per slot | Biasable by ~1 bit per controlled proposer — as a mixing input (not sole source) this is strong and effectively free. |
| drand beacon | BLS threshold from League of Entropy | 16+ independent organisations (Cloudflare, EPFL, Protocol Labs). 3-second rounds on quicknet. Consumed off-chain, mixed into the flow. |
| Flow graph output | User-defined multi-source composition | The existing composable entropy recipe — unique to RNG FLOW. |
The final output: keccak256(FROST_signature ‖ BTC_blockhash ‖ ETH_RANDAO ‖ drand_round ‖ flow_output). To bias this value, an attacker would need to simultaneously compromise a threshold of the Circle, attack Bitcoin's proof-of-work, control Ethereum validators, and corrupt the League of Entropy. This is structurally stronger than any single-source randomness service, including Chainlink VRF.
Key rotation & membership
The Circle is designed to evolve. When a member joins or leaves, the group runs a new DKG ceremony:
- A new group public key is generated and published on-chain via a single transaction
- All previous secret shares — including the departed member's — become cryptographically useless
- The transition is seamless: feeds continue operating with zero downtime
- Every DKG ceremony is logged publicly — the full history of membership changes is transparent
Tier 4 activates only when a minimum of 5 independent members have joined the Circle and completed a DKG ceremony. Until that threshold is reached, Tiers 1–3 continue to serve production traffic. There is no shortcut — running all signers on a single server would defeat the purpose. The Circle launches distributed or it doesn't launch at all. Each new independent member is a publicly verifiable trust upgrade. Once the operator holds fewer than 5 of the 9 seats, they physically cannot produce a valid signature without cooperation from independent parties.
Joining the Circle
This is not about profit. It is not about power. It is a selfless act in service of the network and the builders who depend on it.
The Circle of Entropy exists because fair randomness is infrastructure — like roads, like DNS, like time servers. It must be reliable, it must be honest, and it must not be owned by anyone. Members of the Circle are not paid. They are not shareholders. They are guardians.
- A dedicated server running the FROST signer software (lightweight — no special hardware)
- 99%+ uptime commitment with monitoring
- Participation in DKG ceremonies when membership changes
- Responsiveness to security advisories
- A commitment to never share, sell, or leak their secret key share
- Reputation — public recognition as a trusted guardian of PulseChain randomness
- Respect — a seat at the table for RNG FLOW governance and direction
- Badge — "Secured by The Circle of Entropy" branding for their own projects
- Early access — first to test new tiers, features, and integrations
- Legacy — their name permanently recorded in the on-chain ceremony history
The ideal Circle member already runs PulseChain infrastructure — an RPC node, a bot, a dApp, a block explorer. They understand uptime. They care about the ecosystem beyond their own project. They believe that fair randomness is a public good, not a profit centre.
We are not looking for mercenaries. If your first question is "what's the APY?" — this isn't for you. If your first question is "how does this make PulseChain better?" — welcome to the Circle.
10 Roadmap
Tier roadmap
| Tier | Name | Cryptographic primitive | Est. per RNG node | Status |
|---|---|---|---|---|
| T1 | Signed Flow | EIP-712 signature (single signer) | Free | Live |
| T2 | Request-Bound | Signer + pinned blockhash | ~$0.01 – $0.03 | Live |
| T3 | ECVRF | Elliptic Curve VRF + request binding | ~$0.03 – $0.08 | Live |
| T4 | FROST / Circle of Entropy | Threshold Schnorr (5-of-9+) via FROST (RFC 9591) + cross-chain entropy | ~$0.10 – $0.25 | Building |
| T5 | VDF | FROST + Pietrzak Verifiable Delay Function | ~$0.50 – $1.50 | Planned |
| T6 | ZK | FROST wrapped in zk-SNARK (Groth16), recursive proof chaining | ~$0.20 – $0.60 | Research |
T2/T3/T4+ fees scale linearly by the number of RNG nodes in the flow (max 16). A 4-RNG-node flow costs 4× the per-node fee.
Platform roadmap
- The Circle of Entropy — recruit independent PulseChain infrastructure operators as FROST signers. Publicly track decentralisation progress. (See §9 below.)
- Cross-chain entropy nodes — Bitcoin PoW block headers (68+ bits min-entropy per block), Ethereum RANDAO, drand quicknet beacon (3s rounds). Each source mixed into every T4+ draw.
- Live signer dashboard — real-time heartbeat, uptime history, DKG ceremony log, group public key, and Circle membership tracker. Full transparency.
- Multi-chain deployment — Ethereum L1, Base, Arbitrum, BNB, with a unified feed namespace. Same flows, same API, every chain.
- Flow marketplace — publish, share, and fork entropy flow templates. Community-designed recipes as network effect.
- SDKs & developer tooling — TypeScript, Rust, Python, Solidity libraries. In-browser flow simulator and back-tester.
- Subscription billing for T2/T3 power users, settling in WPLS or eDAI.
Why RNG FLOW
RNG FLOW is not trying to be Chainlink for PulseChain. It's something new: a composable randomness platform where the entropy recipe is part of the product, not hidden behind an API.
You have one option for verifiable randomness. This is it. And it's not a compromise — T3 gives you the same ECVRF guarantees as Chainlink VRF at a fraction of the cost, plus capabilities Chainlink doesn't offer. You don't need to wait for Chainlink to deploy on PulseChain. They aren't coming.
Pin your entropy recipe on-chain. Let every participant verify not just the output but the process. Show them the flow graph. "Our draws are provably mixed from blockhash + gas tip + price oracle" is a trust statement no other service can make.
100 draws/day on T2 costs ~$2. The same on Chainlink VRF costs $200–$1,000. RNG FLOW makes high-frequency randomness economically viable — per-player loot rolls, real-time raffle systems, on-chain games that call for randomness every block.
Publish a feed and start drawing in under 5 minutes. T1 is free. No subscription to create. No token to buy. No approval process. No testnet-only sandbox. You're on mainnet, serving real draws, immediately.
11 Appendix
Fee table
| Tier | Publish (eDAI, one-time) | Per call (WPLS, per RNG node) | Daily cap |
|---|---|---|---|
| T1 | 25 | 0 | 250 RNG units / feed / UTC day |
| T2 | 50 | gasprice × 150,000 × 4 × n | — |
| T3 | 150 | gasprice × 200,000 × 8 × n | — |
n = number of RNG nodes in the flow (1 ≤ n ≤ 16). A T1 draw from a flow with 4 RNG nodes consumes 4 RNG units of the daily cap; a T2/T3 verify tx pays 4× the per-node fee.
Abuse-mitigation parameters
- T1 daily cap
TIER1_DAILY_CAP= 250 RNG units / feed / UTC day (1 unit per RNG node per draw)- Max RNG nodes per flow
MAX_RNG_NODES= 16 (enforced at publish time and on-chain in the Verifier)- Global IP rate
IP_RATE_PER_MINUTE= 60 (X-Forwarded-For aware)- Max in-flight T2/T3
- 2 per feed
- Block-wait default
- 15 s
- Block-wait hard cap
- 45 s
- RequestId dedupe
- SQLite
requested_drawstable; cached payload returned on replay
Glossary
- Flow
- A directed graph of entropy source + transform nodes that produces output values when executed.
- flowHash
keccak256of the canonical JSON encoding of a flow; pinned to the Registry at publish.- Draw
- One execution of a flow, producing one or more output values, signed by the server.
- RequestDraw
- An on-chain transaction pinning
(requestId, targetBlock)for a future draw. - ECVRF
- Elliptic Curve Verifiable Random Function — produces a pseudorandom output + proof.
- beta
- The canonical ECVRF output used as the flow salt in Tier 3. Re-derivable on-chain from the proof.
- FROST
- Flexible Round-Optimized Schnorr Threshold signatures (RFC 9591). A two-round protocol where t-of-n signers produce a single Schnorr signature verifiable via
ecrecoverat ~3,000 gas. The cryptographic foundation of Tier 4. - Circle of Entropy
- The distributed signer committee that operates Tier 4. Independent infrastructure operators who each hold a secret share of the group signing key. No single member can produce a valid signature alone.
- DKG
- Distributed Key Generation. A one-time ceremony run by Circle members to create secret shares without a trusted dealer. Produces a group public key published on-chain. Re-run when membership changes.
- drand
- The League of Entropy public randomness beacon. BLS threshold signature from a public consortium. Used as a cross-chain entropy source in T4+ draws.
- VDF
- Verifiable Delay Function. A computation that provably takes a minimum wall-clock time to evaluate, preventing anyone from previewing the output. Foundation of the planned Tier 5.
- Composable randomness
- A new category pioneered by RNG FLOW: randomness where the entropy recipe is user-defined, on-chain committed, and independently verifiable.