Step 3: Generate your keys
Generate your validator keys in your AWS account and register their public halves with LayerZero.
One command generates your validator's two keys inside your AWS account, seals them with your KMS key, and registers their public halves with LayerZero. You prove the seat is yours with a one-time code sent to your contact email. It usually takes about 10 minutes.
Run it
After Step 1 in this terminal:
zero registerEnter your email
The contact email LayerZero invited.Enter the one-time code
LayerZero emails it to you. It may land in your junk folder, and it expires after 10 minutes. It isn't shown as you type. Don't share it with anyone, LayerZero included: until uploads close, anyone with a code could register keys that replace yours.
Wait
The tool starts a short-lived machine in your account (the
zero-keygenstack). The machine generates your keys in memory, seals them with your KMS key, stores them in your bucket and checks they decrypt, then writes your public file. The tool sends that file to LayerZero, and the machine shuts down. The emptyzero-keygenstack stays.See ACCEPTED
You see
ACCEPTEDand your validator address. LayerZero also emails you what it accepted. Check that the two match, and tell LayerZero at once if they don't.
While it runs, the tool also checks your EC2 vCPU quota for Step 4. If it warns that the quota is too low, have your administrator ask AWS to raise it now. The run carries on meanwhile.
Then wait for LayerZero
You're done for now. LayerZero waits until every seat in the committee has registered, closes uploads, builds the network's genesis and publishes the validator software. Then LayerZero sends you "Run your Zero validator: Step 4". That can take days.
Running it again
- An interrupted run picks up where it stopped. Just run
zero registeragain. This includes a run that stops because its one-hour session ended. - After
ACCEPTED, until uploads close, running it again generates new keys. They replace your earlier keys once LayerZero accepts them. If they're rejected, your earlier accepted keys still count. - After uploads close, your keys are fixed. After the network's genesis they can't be replaced at all.
If it's rejected
You see REJECTED and a reason. Your earlier accepted keys, if any, still count. The most common reasons:
| Reason | Means |
|---|---|
uploads-closed | LayerZero has closed uploads for your seat. Ask your LayerZero contact. |
release-too-old | Your invite's onboarding tool is older than LayerZero now accepts. Ask your contact for current invite lines. |
account-bound-to-other-seat | This AWS account already registered for another seat. Each seat needs its own account. |
| Anything else | Send the output to your LayerZero contact. |
For other errors, see Troubleshooting.
Moving to another Region
Your validator runs in the Region where your keys were accepted. To move it, ask LayerZero first, before uploads close. The move needs your administrator to remove the stacks in the old Region and set up access in the new one, and then you generate keys again there.