Nightcast Operators
Put your stake pool to work on fair chance.
A Nightcast operator holds one share of a key that nobody holds whole. It answers requests, joins each new key ceremony and keeps the network moving by itself, and it earns a share of every request's fee.
- Request
5b2e35…3ae770- Committee
- Epoch 1, 3 of 5
- Answered
- Before the deadline
- Bond
- 12 tNIGHT, untouched
- Earned
- 0.08 tNIGHT
What your operator does by itself
-
Answers requests
Its part of every value for its seat, proved, within the answering time (100 minutes on Preprod).
-
Joins key ceremonies
Each epoch the contract seats a committee in turn, round a ring. Nobody picks, and every share is proved as it's dealt.
-
Collects its pay
Claims what it has earned to its own wallet once there is at least 1 tNIGHT to collect.
-
Keeps the network moving
Opens epochs, seats committees, combines answers and settles fees. Anyone may send these, so no one operator is needed.
What you need
Set it up once. After that it needs a machine that stays on, and nothing from you day to day.
- A machine that stays on
- Linux, Windows with WSL 2, or a Mac. 4 CPU cores, 16 GB of memory (one proof takes up to 5 GB) and 10 GB of disk. A small cloud server is fine.
- Docker
- Docker Engine with Compose. The operator and its own proof server run side by side.
- A Blockfrost project
- Free at blockfrost.io, for Midnight Preprod. It is how your operator reads the chain.
- tNIGHT
- Free from the Preprod faucet: 12 for the bond and about 100 more, which your wallet uses to make DUST for fees.
- A stake pool
- Each operator is vouched for by a Cardano stake pool on the contract's list. On Preprod, we lend test pools.
Six steps to a running operator
-
Get Nightcast
Clone the repository, put your Blockfrost project id in .env, and build.
git clone https://github.com/LearnMidnight/Nightcast.git cd Nightcast/network/threshold/docker cp env.example .env docker compose build -
Download the proving keys
Refused unless it's exactly the file the repository names, and refused again unless all 18 verifier keys match the chain.
docker compose run --rm operator keys -
Make your operator
Two secrets: your operator's key and its own wallet. Back them up off the machine, then send the wallet tNIGHT.
docker compose run --rm operator init -
Register
Puts down the bond and records your operator on chain. Allow 10 to 30 minutes.
docker compose run --rm operator register -
Link your stake pool
Prints 32 bytes for your pool to sign wherever its key is kept, then checks the signature before sending.
docker compose run --rm operator link --pool <pool key> docker compose run --rm operator link --signature <hex> -
Start it
From here it runs by itself, restarts with the machine and carries on from what the chain shows.
docker compose up -d docker compose logs -f operator
The Docker set-up is in its final tests on Preprod, so tell us if a step doesn't go as described. Every step, with what you'll see and what to do if something goes wrong, is in the operator guide.
Pay and fines
Answering in time pays. Staying silent costs bond, and never buys a different value.
You earn
- A share of each request's fee
- 0.5 tNIGHT, shared by the seats that answered before the deadline
- A bounty for finalising
- 0.1 tNIGHT to whoever combines the answers
- Your bond back
- All of it, one epoch after you leave
You lose bond
- Missing an answer when too few answered
- 1 tNIGHT
- Not finishing your part of a ceremony
- 2 tNIGHT
- Missing more than 3 times in an epoch
- Stood down
- Bond below 10 tNIGHT
- Stood down until you top up
These are the Preprod test contract's numbers. Mainnet's fees and bonds will be set before launch.
Built so you don't have to trust us
Checked keys
The proving keys must match a SHA-256 pinned in the repository, and every circuit's verifier key must match the one on chain.
Your pool key stays put
The pool signs 32 bytes wherever its key lives. The signature names this contract and your operator, and lasts 24 hours.
It recovers by itself
If the wallet loses the network, the operator stops and restarts, then carries on from what the chain shows.
No admin key
The contract seats committees, checks every share and pays operators itself. Nothing in it can be changed after deployment.
Run one of the first operators
The operator package is being tested on Preprod now. Tell us about your pool and we'll lend you a test pool key and help you set up.
We only use your email for Nightcast early access. We don't share it. Privacy