On Janzeer, anyone can become a validator. There is no stake and no vote. You run a node, you send one registration transaction with a 2,000 JNZ deposit that is not returned, and your node joins the producer set at the start of the next epoch. An earlier article explains why the deposit replaces staking.
The deposit is the barrier we want: it makes a seat cost something. It also stops the people we most want to see, operators who would run a node well but have no JNZ yet. So in October the project opened a validator grant. The first ten outside operators who keep a synchronized, reachable mainnet node for seven days receive 2,003 JNZ from the ecosystem wallet: the 2,000 deposit plus 3 JNZ for the fee.
That raised a practical question. Before we pay, what do we actually check?
What a grant must prove
A grant pays for one seat, so three things must be true:
- The node exists and stays up. It answers on its peer-to-peer port on the day of the application and again seven days later.
- The node is on the right chain and keeps up. It is on Janzeer mainnet, not a fork or a test network, and it is synchronized at the tip.
- The applicant owns the node key. The registration names a node key. If we pay someone who copied another node's public key from the explorer, we have paid for nothing.
The first two are easy to see from the outside. The third one is where our first plan failed.
The check that did not prove what we thought
The written procedure said: start a throw-away node on the dev box, point it only at the applicant's address, and read its log. The handshake between Janzeer nodes is a signed challenge and response bound to the network id and the genesis, so a node on the wrong chain is refused at the greeting. If our node synchronized through that peer, we had proof.
On the first real application, on 14 November, both parts turned out weaker than written:
- The node logged no peer key at any level. The handshake did check the key, but it never said which key it had checked.
- The node found other peers within seconds. Every peer shares the addresses it knows, so our throw-away node synchronized from one of the project's own nodes, not from the applicant's node.
So the check only proved that a Janzeer mainnet node answered at that address. It did not prove whose node it was.
A signature instead
The fix for key ownership needed no node change. We sent the applicant 32 random bytes and asked them to sign them with the node's private key, using the command-line client that ships in every node bundle:
python3 -c 'import json;print(json.load(open("data/config.json"))["nodePrivateKey"])' \
| ./jz key sign --hash <the 32 bytes we sent> --private-key-stdin
The private key goes from the node's own config file into jz on standard input. It never appears on screen, in a file or in the reply. The applicant sends back only the Base64 signature, and we check it against the public node key from the application:
jz key verify --hash <the 32 bytes> --signature <their signature> --public-key <node key>
The answer is valid or invalid. Only the holder of the private key can produce a valid signature for bytes we chose at random a few minutes earlier.
The second application added one more case. The applicant named their node's built-in wallet as the address to pay. That wallet has its own key, separate from the node key, so we asked for a second signature with the wallet key. We also asked for the wallet's public key and derived the address from it. Both matched.
Seven days later
The day-7 check repeats the first one. The node must still answer on its port, still be synchronized, and still hold the key.
By then the node itself had improved. After the first application we added one log line on both sides of the handshake: "Peer
proved node key ". The key check now reads that line in our own nodes' logs. Our home validator on a Raspberry Pi had the applicant's node as a direct peer, and the line showed the applicant's address with the applicant's key, again and again over the previous day. That change is in the next node release for everyone.
On 21 November grant #1 passed:
- The port was open and the node answered as a mainnet node.
- The handshake proved node key
039eb1d8…6016. - The node's own API reported
SYNCHRONIZEDat the network tip, block #288,718 at the time of the check.
The money, in public
The payment and the registration are both on the chain, and anyone can check them:
- Grant paid, 21 November. 2,003 JNZ from the ecosystem wallet to the applicant's wallet, final in block #288,878: transaction 1b35444a…ddbe.
- Validator registered, the next day. From the same wallet, a registration with the 2,000 JNZ deposit and the 3 JNZ fee, final in block #291,174: transaction 638208b4…1811. The wallet's balance after it is exactly zero.
-
Joins the producer set at block #306,018, the start of the next epoch, about 24 November. Until then the validators page lists it as
PENDING.
Every step is also posted in the application's public issue: day 0, day 7, the payment and the registration.
What this changes
Before this grant, every validator on Janzeer was either a project anchor or a node run by the people around the project. This is the first seat paid for by the grant and held by an operator we had never met. The node key, the wallet and the registration all belong to them. The project only paid for the seat.
Here is the procedure as it stands now, for anyone who wants to apply:
- Day 0. Open an issue with your node key, your host and port, and a wallet address. We check the port and send you 32 random bytes to sign.
- Days 1–7. Keep the node online and synchronized.
- Day 7. We check the port, the handshake key and the sync status again. If all three pass, we send 2,003 JNZ to your wallet and post the transaction.
- Within 7 days of the payment. Register from that wallet and post the registration transaction. Your node produces blocks from the next epoch.
Two of the ten grants are taken. The second applicant passed the same checks, was paid on 23 November and registered on 24 November (transaction 9617b1a2…c6e9), so both nodes join the producer set at block #306,018. Eight are open until 1 January 2027. The rules and the application form are on the validators page, and the node runs on a 2 GB server or a Raspberry Pi.
Top comments (0)