EIP-3030 BLS Remote Signer HTTP API

No call decision · Consensus & staking · EIP status Stagnant · created 2020-09-30

Defines an HTTP API standard that lets a validator client request signatures from a separate remote signing server instead of holding the BLS private key directly.

Why it is needed

On the Ethereum consensus chain, a validator needs to keep using its BLS private key continuously, epoch after epoch, during the short slot windows within each epoch, to sign block proposals and attestations. However, the existing specification does not define where this key should be stored, so clients typically assumed the key would live on the same server as the validator client. This is not a major problem when operating on a physically secured network, but when running in a cloud or container orchestration environment such as Kubernetes, the risk of a malicious operator or intruder accessing the key increases, and handling the private key across multiple nodes becomes a burden for both operations and security. This EIP separates key storage from signing requests by introducing a dedicated signing-only node and defining a standard API through which the validator client requests signatures from this node over HTTP.

What changes

Today

After EIP-3030

Who is affected

In depth

Three endpoints

This standard defines only three methods: GET /upcheck, GET /keys, and POST /sign/:identifier. /upcheck checks whether the signer is alive and returns 200 with {"status":"OK"} on success. /keys returns the list of key identifiers held by the signer in the form {"keys":[identifier]}. /sign/:identifier is called with the public key (a hex string without the 0x prefix) in the URL, and returns 200 with {"signature":"<hex>"} on success, 400 if the request is malformed, or 404 if the key does not exist.

Signing request body fields

The JSON body of POST /sign/:identifier requires four mandatory fields. bls_domain is one of beacon_proposer, beacon_attester, or randao (the lowercase value of the domain type with the domain prefix removed), and data is the object to be signed (the block, attestation, or epoch data as defined in the spec). fork is a Fork object containing the previous and current versions, and genesis_validators_root is a Hash256 value used for domain separation and chain version distinction. Any value outside these four fields is ignored by the signer.

UNIX philosophy: a simple API

This standard defines only three methods, health check, key listing, and signature generation, and excludes authentication, key management, and transport encryption from the specification. It explains that a more complex setup, such as adding a reverse proxy or plugin between the validator client and the remote signer, can be built on top of this.

Authentication, key management, and transport encryption are out of scope

It explains that authentication can be implemented by exchanging tokens via HTTP request headers, or by placing a network ACL between the validator client network and the remote signer network. For key management, it recommends handling the storage medium separately from the API, using an HSM, a secrets management application such as Hashicorp Vault, access-restricted cloud storage, or even simple directory files. For transport encryption, it requires that the client be able to accept a self-signed certificate if the operator chooses to use one.

Threat model and mitigations

The specification presents threats and mitigations in a table. Validator client spoofing is mitigated through authentication, manipulated messages that could cause slashing are the operator's responsibility to prevent via a separate validation module, and key generation, modification, and deletion are prevented by making writes impossible through any interface. Non-repudiation is addressed through logging (sending to syslog), key leakage from storage is addressed via secrets management such as an HSM or Vault, and interception during key upload or lookup is addressed by using a secure channel. Key leakage through memory dumps is addressed by blocking physical access, zeroing memory, and considering a trusted execution environment (TEE), and DoS against the signer is addressed through IP filtering or rate limiting.

Implementation status and document status

The source document introduces three implementations. Sigma Prime's Rust implementation (rust-bls-remote-signer) supports the proposed specification as is, while PegaSys's Web3Signer (Java) supports the same specification but with slightly different endpoint names, /api/v1/eth2/sign instead of /sign and /api/v1/eth2/publicKeys instead of /publicKeys. Prysmatic Labs' Remote Signing Wallet (Golang) supports both gRPC and JSON over HTTP. This EIP's status is Stagnant, meaning discussion has halted and it remains a document that has not been finalized as a standard.

Original EIP · ← EIPs