{"eip":3030,"title":"BLS Remote Signer HTTP API","description":"This EIP defines a HTTP API standard for a BLS remote signer, consumed by validator clients to sign block proposals and attestations in the context of Ethereum 2.0 (eth2).","authors":["Herman Junge (@hermanjunge)"],"status":"Stagnant","type":"Standards Track","category":"Interface","created":"2020-09-30","discussionsTo":"https://ethereum-magicians.org/t/eip-3030-bls-remote-signer-http-api-standard/4810","repo":"EIPs","label":"EIP-3030","officialUrl":"https://eips.ethereum.org/EIPS/eip-3030","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-3030.md","url":"https://eips.huatuo.xyz/eip-3030/","tldr":{"en":"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.","ja":"コンセンサスレイヤーのバリデータークライアントが、別のリモートサイナーに BLS 署名を要求できる、最小限の 3 エンドポイントの HTTP API の提案。バリデーターのホストにバリデーター鍵を置かずに済む。","ko":"컨센서스 레이어의 검증자 클라이언트가 별도의 원격 서명자에게 BLS 서명을 요청할 수 있게 하는, 엔드포인트 세 개짜리 최소한의 HTTP API를 제안했다. 검증자 키를 검증자 호스트에 두지 않아도 된다.","zh":"提议一个仅含三个端点的极简 HTTP API，让共识层验证者客户端可以向独立的远程签名器请求 BLS 签名，使验证者密钥不必存放在验证者主机上。"},"tags":["validator","bls","remote-signer","staking","api"],"explainers":{"en":{"lang":"en","tldr":"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.","tags":["validator","bls","remote-signer","staking","api"],"related":[2333,2335,2334],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-3030/","markdown":"## What problem does it solve?\n\nA 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.\n\nEIP-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.\n\n## How it works\n\nOnly three endpoints, by design (the spec calls it the UNIX philosophy):\n\n| Method | Path | Returns |\n| --- | --- | --- |\n| `GET` | `/upcheck` | `{\"status\": \"OK\"}` |\n| `GET` | `/keys` | Public keys the signer holds |\n| `POST` | `/sign/:identifier` | `{\"signature\": \"0x…\"}` for the given public key (hex, no `0x`) |\n\nThe sign request body carries:\n\n- `bls_domain`: `beacon_proposer`, `beacon_attester` or `randao`\n- `data`: the block, attestation or epoch to sign\n- `fork`: the `Fork` object (previous and current versions)\n- `genesis_validators_root`: for domain separation across chains\n\nUnknown fields are ignored. Errors are `400` for a bad request and `404` when the key is not found.\n\nEverything 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.\n\n## Sample code\n\nCalling a signer from a validator-side script (TypeScript, `fetch`):\n\n```ts\nconst SIGNER = \"http://localhost:9000\";\n\nconst keys: { keys: string[] } = await (await fetch(`${SIGNER}/keys`)).json();\nconst pubkey = keys.keys[0]; // hex, no 0x prefix\n\nconst res = await fetch(`${SIGNER}/sign/${pubkey}`, {\n  method: \"POST\",\n  headers: { \"Content-Type\": \"application/json\" },\n  body: JSON.stringify({\n    bls_domain: \"beacon_attester\",\n    data: attestationData,            // AttestationData object\n    fork: currentFork,                // { previous_version, current_version, epoch }\n    genesis_validators_root: gvr,     // 0x-prefixed 32-byte hash\n  }),\n});\nif (!res.ok) throw new Error((await res.json()).error);\nconst { signature } = await res.json(); // 0x-prefixed 96-byte BLS signature\n```\n\n## Things to know\n\n- **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.\n- **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.\n- Keys should never be writable through any signer interface; store them in an HSM or secrets manager where possible.\n- Never expose the signer to the public internet; combine authentication with TLS and network restrictions.\n- Related key standards: [EIP-2333](/eip-2333/) key derivation and [EIP-2335](/eip-2335/) keystores.\n"},"ja":{"lang":"ja","tldr":"コンセンサスレイヤーのバリデータークライアントが、別のリモートサイナーに BLS 署名を要求できる、最小限の 3 エンドポイントの HTTP API の提案。バリデーターのホストにバリデーター鍵を置かずに済む。","tags":["validator","bls","remote-signer","staking","api"],"related":[2333,2335,2334],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-3030/","markdown":"## 何を解決するのか\n\nプルーフ・オブ・ステークのバリデーターは、ブロック提案とアテステーションに BLS12-381 秘密鍵で署名します。この鍵は毎エポック利用可能でなければなりません。クライアントは通常、その鍵をバリデータークライアントと同じマシンに置きます。厳重に管理されたサーバーなら問題ありませんが、クラウド VM や Kubernetes クラスターでは、悪意のあるオペレーターや侵害されたノードがディスクやメモリを読み取れるため危険です。\n\nEIP-3030 は**リモートサイナー**を標準化します。これは別個の厳重に管理されたサービスで、鍵を保持するのはこのサービスだけであり、シンプルな HTTP API で署名を返します。この API に対応したバリデータークライアントは、どこでも動かせます。\n\n## 仕組み\n\n設計上、エンドポイントは 3 つだけです（仕様はこれを UNIX 哲学と呼んでいます）。\n\n| メソッド | パス | 返り値 |\n| --- | --- | --- |\n| `GET` | `/upcheck` | `{\"status\": \"OK\"}` |\n| `GET` | `/keys` | サイナーが保持する公開鍵 |\n| `POST` | `/sign/:identifier` | 指定した公開鍵（16 進数、`0x` なし）に対する `{\"signature\": \"0x…\"}` |\n\n署名リクエストのボディには次が含まれます。\n\n- `bls_domain`: `beacon_proposer`、`beacon_attester`、または `randao`\n- `data`: 署名するブロック、アテステーション、またはエポック\n- `fork`: `Fork` オブジェクト（以前のバージョンと現在のバージョン）\n- `genesis_validators_root`: チェーンをまたいだドメイン分離のため\n\n未知のフィールドは無視されます。エラーは、不正なリクエストなら `400`、鍵が見つからなければ `404` です。\n\nそれ以外はすべて意図的にスコープ外です。認証（たとえばヘッダートークンと TLS、またはネットワーク ACL）、鍵の作成と削除、通信の暗号化は、実装者、またはサイナーの前段に置くプロキシに任されています。\n\n## サンプルコード\n\nバリデーター側のスクリプトからサイナーを呼び出す例（TypeScript、`fetch`）:\n\n```ts\nconst SIGNER = \"http://localhost:9000\";\n\nconst keys: { keys: string[] } = await (await fetch(`${SIGNER}/keys`)).json();\nconst pubkey = keys.keys[0]; // hex, no 0x prefix\n\nconst res = await fetch(`${SIGNER}/sign/${pubkey}`, {\n  method: \"POST\",\n  headers: { \"Content-Type\": \"application/json\" },\n  body: JSON.stringify({\n    bls_domain: \"beacon_attester\",\n    data: attestationData,            // AttestationData object\n    fork: currentFork,                // { previous_version, current_version, epoch }\n    genesis_validators_root: gvr,     // 0x-prefixed 32-byte hash\n  }),\n});\nif (!res.ok) throw new Error((await res.json()).error);\nconst { signature } = await res.json(); // 0x-prefixed 96-byte BLS signature\n```\n\n## 知っておくべきこと\n\n- **ステータス: Stagnant。** 提案自体は進みませんでしたが、リモート署名は一般的な運用になりました。仕様には Sigma Prime、PegaSys（Web3Signer）、Prysmatic Labs の実装が挙げられており、Web3Signer は異なるパス（例: `/api/v1/eth2/sign`）を使うと記されています。これらのルートをそのまま前提とせず、使用するサイナー自身のドキュメントを確認してください。\n- **スラッシングのリスクはサイナー側に移ります。** API に到達できる攻撃者が、矛盾する署名を要求する可能性があります。脅威モデルでは、オペレーターがサイナー内またはその前段に検証（スラッシング保護）を追加しなければならないとされています。\n- 鍵は、どのサイナーインターフェースからも書き込めてはいけません。可能な限り HSM やシークレットマネージャーに保管してください。\n- サイナーを公開インターネットに露出させないでください。認証を TLS とネットワーク制限と組み合わせてください。\n- 関連する鍵の標準: [EIP-2333](/eip-2333/) の鍵導出と [EIP-2335](/eip-2335/) のキーストア。\n"},"ko":{"lang":"ko","tldr":"컨센서스 레이어의 검증자 클라이언트가 별도의 원격 서명자에게 BLS 서명을 요청할 수 있게 하는, 엔드포인트 세 개짜리 최소한의 HTTP API를 제안했다. 검증자 키를 검증자 호스트에 두지 않아도 된다.","tags":["validator","bls","remote-signer","staking","api"],"related":[2333,2335,2334],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-3030/","markdown":"## 어떤 문제를 해결하나요?\n\n지분 증명 검증자는 블록 제안과 증명(attestation)에 BLS12-381 개인 키로 서명하며, 이 키는 매 에포크마다 사용할 수 있어야 합니다. 클라이언트는 보통 이 키를 검증자 클라이언트와 같은 머신에 둡니다. 철저히 잠근 서버에서는 괜찮지만, 클라우드 VM이나 Kubernetes 클러스터에서는 악의적인 운영자나 침해된 노드가 디스크나 메모리를 읽을 수 있어 위험합니다.\n\nEIP-3030은 **원격 서명자**를 표준화합니다. 키를 오직 혼자 보관하고 간단한 HTTP API로 서명을 돌려주는, 별도의 엄격히 통제되는 서비스입니다. 이 API를 지원하는 검증자 클라이언트는 어디서든 실행할 수 있습니다.\n\n## 어떻게 동작하나요?\n\n설계상 엔드포인트는 세 개뿐입니다(사양은 이를 UNIX 철학이라고 부릅니다).\n\n| 메서드 | 경로 | 반환 |\n| --- | --- | --- |\n| `GET` | `/upcheck` | `{\"status\": \"OK\"}` |\n| `GET` | `/keys` | 서명자가 보유한 공개 키 |\n| `POST` | `/sign/:identifier` | 지정한 공개 키(16진수, `0x` 없음)에 대한 `{\"signature\": \"0x…\"}` |\n\n서명 요청 본문에는 다음이 들어갑니다.\n\n- `bls_domain`: `beacon_proposer`, `beacon_attester` 또는 `randao`\n- `data`: 서명할 블록, 증명 또는 에포크\n- `fork`: `Fork` 객체(이전 버전과 현재 버전)\n- `genesis_validators_root`: 체인 간 도메인 분리를 위한 값\n\n알 수 없는 필드는 무시됩니다. 오류는 잘못된 요청이면 `400`, 키를 찾을 수 없으면 `404`입니다.\n\n그 밖의 모든 것은 의도적으로 범위 밖입니다. 인증(예: 헤더 토큰과 TLS, 또는 네트워크 ACL), 키 생성과 삭제, 전송 암호화는 구현자나 서명자 앞에 두는 프록시에 맡겨집니다.\n\n## 샘플 코드\n\n검증자 쪽 스크립트에서 서명자를 호출하는 예(TypeScript, `fetch`):\n\n```ts\nconst SIGNER = \"http://localhost:9000\";\n\nconst keys: { keys: string[] } = await (await fetch(`${SIGNER}/keys`)).json();\nconst pubkey = keys.keys[0]; // hex, no 0x prefix\n\nconst res = await fetch(`${SIGNER}/sign/${pubkey}`, {\n  method: \"POST\",\n  headers: { \"Content-Type\": \"application/json\" },\n  body: JSON.stringify({\n    bls_domain: \"beacon_attester\",\n    data: attestationData,            // AttestationData object\n    fork: currentFork,                // { previous_version, current_version, epoch }\n    genesis_validators_root: gvr,     // 0x-prefixed 32-byte hash\n  }),\n});\nif (!res.ok) throw new Error((await res.json()).error);\nconst { signature } = await res.json(); // 0x-prefixed 96-byte BLS signature\n```\n\n## 알아둘 점\n\n- **상태: Stagnant.** 제안 자체는 진전되지 않았지만 원격 서명은 일반적인 관행이 되었습니다. 사양은 Sigma Prime, PegaSys(Web3Signer), Prysmatic Labs의 구현을 나열하며, Web3Signer는 다른 경로(예: `/api/v1/eth2/sign`)를 쓴다고 언급합니다. 이 경로를 그대로 가정하지 말고 사용하는 서명자의 문서를 확인하세요.\n- **슬래싱 위험이 서명자로 옮겨 갑니다.** API에 접근할 수 있는 공격자가 상충하는 서명을 요청할 수 있습니다. 위협 모델은 운영자가 서명자 안이나 앞단에 검증(슬래싱 방지)을 추가해야 한다고 말합니다.\n- 키는 어떤 서명자 인터페이스로도 쓸 수 있어서는 안 됩니다. 가능하면 HSM이나 시크릿 매니저에 보관하세요.\n- 서명자를 공용 인터넷에 노출하지 마세요. 인증을 TLS 및 네트워크 제한과 함께 사용하세요.\n- 관련 키 표준: [EIP-2333](/eip-2333/) 키 파생과 [EIP-2335](/eip-2335/) 키스토어.\n"},"zh":{"lang":"zh","tldr":"提议一个仅含三个端点的极简 HTTP API，让共识层验证者客户端可以向独立的远程签名器请求 BLS 签名，使验证者密钥不必存放在验证者主机上。","tags":["validator","bls","remote-signer","staking","api"],"related":[2333,2335,2334],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-3030/","markdown":"## 它解决什么问题？\n\n权益证明验证者用 BLS12-381 私钥对区块提案和证明（attestation）签名，这把密钥必须在每个 epoch 都可用。客户端通常把该密钥放在与验证者客户端相同的机器上。在锁定严密的服务器上这没问题，但在云虚拟机或 Kubernetes 集群中就有风险，恶意的运维人员或被攻陷的节点可以读取磁盘或内存。\n\nEIP-3030 标准化了**远程签名器**：一个独立的、严格受控的服务，只有它持有密钥，并通过简单的 HTTP API 返回签名。支持该 API 的验证者客户端就可以运行在任何地方。\n\n## 它如何运作\n\n按设计只有三个端点（规范称之为 UNIX 哲学）：\n\n| 方法 | 路径 | 返回 |\n| --- | --- | --- |\n| `GET` | `/upcheck` | `{\"status\": \"OK\"}` |\n| `GET` | `/keys` | 签名器持有的公钥 |\n| `POST` | `/sign/:identifier` | 针对给定公钥（十六进制，不带 `0x`）的 `{\"signature\": \"0x…\"}` |\n\n签名请求的请求体包含：\n\n- `bls_domain`：`beacon_proposer`、`beacon_attester` 或 `randao`\n- `data`：要签名的区块、证明或 epoch\n- `fork`：`Fork` 对象（先前版本和当前版本）\n- `genesis_validators_root`：用于跨链的域分隔\n\n未知字段会被忽略。错误码为：请求有误时返回 `400`，找不到密钥时返回 `404`。\n\n其他一切都刻意不在范围内：身份验证（例如请求头令牌加 TLS，或网络 ACL）、密钥的创建与删除，以及传输加密，都交由实现者或放在签名器前面的代理来处理。\n\n## 示例代码\n\n从验证者一侧的脚本调用签名器（TypeScript，`fetch`）：\n\n```ts\nconst SIGNER = \"http://localhost:9000\";\n\nconst keys: { keys: string[] } = await (await fetch(`${SIGNER}/keys`)).json();\nconst pubkey = keys.keys[0]; // hex, no 0x prefix\n\nconst res = await fetch(`${SIGNER}/sign/${pubkey}`, {\n  method: \"POST\",\n  headers: { \"Content-Type\": \"application/json\" },\n  body: JSON.stringify({\n    bls_domain: \"beacon_attester\",\n    data: attestationData,            // AttestationData object\n    fork: currentFork,                // { previous_version, current_version, epoch }\n    genesis_validators_root: gvr,     // 0x-prefixed 32-byte hash\n  }),\n});\nif (!res.ok) throw new Error((await res.json()).error);\nconst { signature } = await res.json(); // 0x-prefixed 96-byte BLS signature\n```\n\n## 需要注意\n\n- **状态：Stagnant。** 提案本身没有推进，但远程签名已成为常见做法。规范列出了 Sigma Prime、PegaSys（Web3Signer）和 Prysmatic Labs 的实现，并指出 Web3Signer 使用不同的路径（例如 `/api/v1/eth2/sign`）。请查阅你所用签名器自己的文档，不要假定就是这些路由。\n- **惩罚（slashing）风险转移到签名器。** 能访问该 API 的攻击者可能请求一个相互冲突的签名。威胁模型指出，运营方必须在签名器内部或前面增加校验（slashing 保护）。\n- 密钥绝不应能通过任何签名器接口写入；尽可能把它们存放在 HSM 或密钥管理服务中。\n- 切勿把签名器暴露在公网上；应把身份验证与 TLS 和网络限制结合使用。\n- 相关的密钥标准：[EIP-2333](/eip-2333/) 密钥派生和 [EIP-2335](/eip-2335/) 密钥库。\n"}}}
