EIPs Explained

EIP-3030 · Stagnant · Interface · 2020-09-30

EIP-3030: BLS Remote Signer HTTP API

Proposed a minimal three-endpoint HTTP API that lets consensus-layer validator clients request BLS signatures from a separate remote signer, keeping validator keys off the validator host.

What problem does it solve?

A proof-of-stake validator signs block proposals and attestations with a BLS12-381 private key that must be available every epoch. Clients usually keep that key on the same machine as the validator client. That is fine on a locked-down server, but risky in a cloud VM or a Kubernetes cluster, where a rogue operator or a compromised node can read disk or memory.

EIP-3030 standardizes a remote signer: a separate, tightly controlled service that alone holds the keys and returns signatures over a simple HTTP API. Validator clients that speak the API can then run anywhere.

How it works

Only three endpoints, by design (the spec calls it the UNIX philosophy):

Method Path Returns
GET /upcheck {"status": "OK"}
GET /keys Public keys the signer holds
POST /sign/:identifier {"signature": "0x…"} for the given public key (hex, no 0x)

The sign request body carries:

  • bls_domain: beacon_proposer, beacon_attester or randao
  • data: the block, attestation or epoch to sign
  • fork: the Fork object (previous and current versions)
  • genesis_validators_root: for domain separation across chains

Unknown fields are ignored. Errors are 400 for a bad request and 404 when the key is not found.

Everything else is deliberately out of scope: authentication (e.g. a header token plus TLS, or network ACLs), key creation and deletion, and transport encryption are left to implementers or to proxies placed in front of the signer.

Sample code

Calling a signer from a validator-side script (TypeScript, fetch):

const SIGNER = "http://localhost:9000";

const keys: { keys: string[] } = await (await fetch(`${SIGNER}/keys`)).json();
const pubkey = keys.keys[0]; // hex, no 0x prefix

const res = await fetch(`${SIGNER}/sign/${pubkey}`, {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    bls_domain: "beacon_attester",
    data: attestationData,            // AttestationData object
    fork: currentFork,                // { previous_version, current_version, epoch }
    genesis_validators_root: gvr,     // 0x-prefixed 32-byte hash
  }),
});
if (!res.ok) throw new Error((await res.json()).error);
const { signature } = await res.json(); // 0x-prefixed 96-byte BLS signature

Things to know

  • Status: Stagnant. The proposal itself did not advance, but remote signing became common practice. The spec lists implementations from Sigma Prime, PegaSys (Web3Signer) and Prysmatic Labs, and notes Web3Signer uses different paths (e.g. /api/v1/eth2/sign). Check your signer's own docs rather than assuming these exact routes.
  • Slashing risk moves to the signer. An attacker who can reach the API could ask for a conflicting signature. The threat model says the operator must add validation (slashing protection) in or in front of the signer.
  • Keys should never be writable through any signer interface; store them in an HSM or secrets manager where possible.
  • Never expose the signer to the public internet; combine authentication with TLS and network restrictions.
  • Related key standards: EIP-2333 key derivation and EIP-2335 keystores.

#validator #bls #remote-signer #staking #api

Details

Authors
Herman Junge (@hermanjunge)
Status
Stagnant
Type
Standards Track / Interface
Created
2020-09-30

Machine-readable: Markdown · JSON