Orochi randomness

Orand, Orochi Network's randomness service, uses an Elliptic Curve Verifiable Random Function (ECVRF) to produce random outputs with cryptographic proofs. The accompanying proof can be checked independently off-chain or by a smart contract. Proof generation and submission are separate: applications can submit randomness themselves, delegate submission or request it through an oracle contract.

How do ECVRF proofs work?

The ECVRF model in Orochi Network's VRF research uses a secret key and an input to calculate an output plus a proof. A verifier checks the result using the public key, original input, claimed output and proof without learning the secret key.

Visual outline: Orochi randomness: How do ECVRF proofs work?

Open full-size image

A fixed input and valid key have one verifiable output. Under the scheme's security assumptions, parties without the secret key cannot feasibly predict a fresh output before disclosure. They can verify it afterward.

Who submits the randomness?

Self-submission
An application requests randomness from Orand through its backend and submits it to its smart contract, controlling gas consumption. This path requires submitting epochs in sequence, starting with genesis epoch 0.
Delegated submission
Orochi Network handles automatic feeding. The documented setup requires a native-token deposit to the operator address Orochi Network supplies.
Request submission
A dApp requests randomness through Orochi Network's oracle contract. Orand fulfills the request and submits the randomness to the provider contract.

For on-chain verification, the provider version and target network matter. Orochi Network's Mainnet reference lists Orand V3 contracts on networks including BNB Chain, Base Mainnet and Zircuit Mainnet. Its Deprecated reference contains Orand V2 deployments.

Graphic: Orochi randomness - Who submits the randomness?
Who submits the randomness? - diagram

Open full-size image

What does epoch batching change?

Orand batches randomness entries within an epoch to reduce submission costs. Its product description advertises up to 100 randomness entries per epoch. This capacity counts entries in one batch; it does not specify an epoch's duration or a fixed gas saving.

What if an output changes during copying?

Consider a hypothetical off-chain check with a valid Orand proof, its original input and the matching public key. Suppose the original output passes verification. If a local copy replaces only the output, the unchanged proof cannot authenticate that different value for the same input and key.

Hold back the altered copy, restore the original output and repeat the read-only check. The original tuple verifies again. This corrects the copying error without requesting new randomness.

Graphic: What if an output changes during copying? (Orochi randomness)

Open full-size image

Where does verifiable randomness fit?

Gaming and lotteries can use Orand when a random selection needs a checkable source. The application defines how it maps the random output to an outcome, so verifying the randomness addresses one part of the application's fairness.

Within Orochi Network's product suite, Orand supplies verifiable randomness. Orocle supplies external data feeds, while zkDatabase proves database operations. A database proof and an ECVRF randomness proof establish different claims.

Updated