{"eip":101,"title":"Serenity Currency and Crypto Abstraction","authors":["Vitalik Buterin (@vbuterin)"],"status":"Stagnant","type":"Standards Track","category":"Core","created":"2015-11-15","repo":"EIPs","label":"EIP-101","officialUrl":"https://eips.ethereum.org/EIPS/eip-101","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-101.md","url":"https://eips.huatuo.xyz/eip-101/","tldr":{"en":"An early 'Serenity' idea to strip ether and signature checks out of the base protocol and let every account define its own validation code, an ancestor of today's account abstraction work.","ja":"初期の「Serenity」構想。Ether と署名検証をベースプロトコルから取り除き、各アカウントが独自の検証コードを定義できるようにする案で、現在のアカウント抽象化の先祖にあたる。","ko":"초기 \"Serenity\" 구상. 이더와 서명 검증을 기본 프로토콜에서 빼내고 각 계정이 자체 검증 코드를 정의하게 하자는 안으로, 오늘날 계정 추상화 작업의 조상격이다.","zh":"早期“Serenity”构想：把以太币和签名校验从基础协议中剥离，让每个账户自行定义验证代码，是如今账户抽象工作的先驱。"},"tags":["account-abstraction","serenity","core","research"],"explainers":{"en":{"lang":"en","tldr":"An early 'Serenity' idea to strip ether and signature checks out of the base protocol and let every account define its own validation code, an ancestor of today's account abstraction work.","tags":["account-abstraction","serenity","core","research"],"related":[86,2938,4337,7702],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-101/","markdown":"## What problem does it solve?\n\nIn Ethereum, every account is protected by the same thing: an ECDSA signature over secp256k1, plus a nonce that must go up by exactly one. Ether also has a special place in the protocol, stored directly in each account. That makes the core protocol more complex, and it locks users into one signature scheme and one replay-protection model.\n\nEIP-101, written by Vitalik Buterin in 2015 for the planned \"Serenity\" upgrade, asks: what if the protocol did not know about signatures, nonces or even ether at all? Each account could choose its own cryptography (for example Lamport signatures for quantum resistance), multisig would become native, and ether could be handled like any other token.\n\n## How it works\n\nThe proposal makes the base layer much smaller:\n\n- Accounts have only two fields: **code** and **storage**. No balance, no nonce.\n- All ether lives in a special contract at address `0`. `getBalance` is remapped to query it, and the `msg.value` opcode disappears.\n- A transaction has only four fields: `to`, `startgas`, `data` and `code`. Apart from basic format checks, there are no validity rules; \"anything goes\".\n- If `to` does not exist yet, it is created with the supplied `code`, which must hash to the `to` address.\n- A new `tx.gas` opcode lets code see the gas originally given to the transaction.\n\nSignature and nonce checks move into each account's own code. The spec gives a standard \"user account\" contract that verifies an ECDSA signature, checks and increments a sequence number, makes the requested call, and pays the miner for gas.\n\nTo protect miners, they run a transaction's code for at most 50,000 gas. Then they check that the gas-payment code at the end exactly matches the standard pattern. Sending value becomes a \"cheque\" flow through the ether contract.\n\n## Sample code\n\nIllustrative pseudocode of the standard account logic described in the spec:\n\n```python\n# data layout: v | r | s | seq | gasprice | to | calldata\ndef account_main(data):\n    h = sha3(data[96:])                         # what was signed\n    signer = ecrecover(h, data.v, data.r, data.s)\n    assert signer == OWNER                      # signature check (could be any scheme)\n    assert data.seq == storage[-1]              # replay protection\n    storage[-1] += 1\n    call(gas=msg.gas - 50000, to=data.to, input=data.calldata)\n    # fixed, pattern-matched epilogue: pay the miner\n    ether_contract.send(block.coinbase, data.gasprice * (tx.gas - msg.gas + 50000))\n```\n\n## Things to know\n\n- This proposal is Stagnant and was never adopted. Ethereum still has native ether balances, nonces and ECDSA-signed transactions.\n- The ideas lived on. [EIP-86](/eip-86/) and [EIP-2938](/eip-2938/) took later protocol-level steps toward account abstraction (neither shipped). [ERC-4337](/eip-4337/) achieves much of it without a protocol change, and [EIP-7702](/eip-7702/) lets ordinary accounts run code.\n- The \"pattern-match the gas payment\" rule shows the hard part of abstraction: miners or builders must know a transaction will pay before doing much work. Every later design has to solve this problem too.\n"},"ja":{"lang":"ja","tldr":"初期の「Serenity」構想。Ether と署名検証をベースプロトコルから取り除き、各アカウントが独自の検証コードを定義できるようにする案で、現在のアカウント抽象化の先祖にあたる。","tags":["account-abstraction","serenity","core","research"],"related":[86,2938,4337,7702],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-101/","markdown":"## 何を解決するのか\n\nEthereum では、すべてのアカウントが同じ仕組みで守られています。secp256k1 上の ECDSA 署名と、ちょうど 1 ずつ増えなければならない nonce です。Ether もプロトコル内で特別な扱いを受けており、各アカウントに直接保存されています。そのためコアプロトコルが複雑になり、ユーザーは 1 つの署名方式と 1 つのリプレイ防止モデルに縛られます。\n\nEIP-101 は、2015 年に Vitalik Buterin が計画中の「Serenity」アップグレード向けに書いたもので、プロトコルが署名も nonce も、さらには ether すら知らなかったらどうなるか、という問いを立てます。各アカウントが独自の暗号方式（たとえば耐量子性のための Lamport 署名）を選べるようになり、マルチシグはネイティブになり、ether は他のトークンと同じように扱えるようになります。\n\n## 仕組み\n\nこの提案はベース層を大幅に小さくします。\n\n- アカウントのフィールドは **code** と **storage** の 2 つだけです。残高も nonce もありません。\n- すべての ether はアドレス `0` の特別なコントラクトに置かれます。`getBalance` はそれを参照するように読み替えられ、`msg.value` オペコードはなくなります。\n- トランザクションのフィールドは `to`、`startgas`、`data`、`code` の 4 つだけです。基本的な形式チェックを除き、有効性のルールはなく「何でもあり」です。\n- `to` がまだ存在しない場合は、渡された `code` で作成されます。この `code` のハッシュは `to` アドレスと一致しなければなりません。\n- 新しい `tx.gas` オペコードにより、コードはトランザクションに最初に与えられた gas を参照できます。\n\n署名と nonce の検証は、各アカウント自身のコードに移ります。仕様には標準の「ユーザーアカウント」コントラクトが示されており、ECDSA 署名を検証し、シーケンス番号を確認してインクリメントし、要求された呼び出しを行い、gas の対価をマイナーに支払います。\n\nマイナーを守るため、マイナーはトランザクションのコードを最大 50,000 gas まで実行します。その後、末尾の gas 支払いコードが標準パターンと正確に一致するかを確認します。value の送信は、ether コントラクトを介した「小切手」方式になります。\n\n## サンプルコード\n\n仕様で説明されている標準アカウントのロジックを示す疑似コードです。\n\n```python\n# data layout: v | r | s | seq | gasprice | to | calldata\ndef account_main(data):\n    h = sha3(data[96:])                         # what was signed\n    signer = ecrecover(h, data.v, data.r, data.s)\n    assert signer == OWNER                      # signature check (could be any scheme)\n    assert data.seq == storage[-1]              # replay protection\n    storage[-1] += 1\n    call(gas=msg.gas - 50000, to=data.to, input=data.calldata)\n    # fixed, pattern-matched epilogue: pay the miner\n    ether_contract.send(block.coinbase, data.gasprice * (tx.gas - msg.gas + 50000))\n```\n\n## 知っておくべきこと\n\n- この提案は Stagnant（停滞）で、採用されませんでした。Ethereum は今もネイティブの ether 残高、nonce、ECDSA 署名付きトランザクションを使っています。\n- アイデアは受け継がれました。[EIP-86](/eip-86/) と [EIP-2938](/eip-2938/) は、のちにプロトコルレベルでアカウント抽象化へ向かう一歩を踏み出しました（どちらも実装されていません）。[ERC-4337](/eip-4337/) はプロトコル変更なしでその多くを実現し、[EIP-7702](/eip-7702/) は通常のアカウントがコードを実行できるようにします。\n- 「gas 支払いをパターンマッチする」ルールは、抽象化の難しい部分を示しています。マイナーやビルダーは、多くの作業をする前に、そのトランザクションが支払いを行うことを知る必要があります。後続のどの設計もこの問題を解かなければなりません。\n"},"ko":{"lang":"ko","tldr":"초기 \"Serenity\" 구상. 이더와 서명 검증을 기본 프로토콜에서 빼내고 각 계정이 자체 검증 코드를 정의하게 하자는 안으로, 오늘날 계정 추상화 작업의 조상격이다.","tags":["account-abstraction","serenity","core","research"],"related":[86,2938,4337,7702],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-101/","markdown":"## 어떤 문제를 해결하나요?\n\n이더리움에서는 모든 계정이 같은 방식으로 보호됩니다. secp256k1 위의 ECDSA 서명, 그리고 정확히 1씩 증가해야 하는 nonce입니다. 이더도 프로토콜에서 특별한 위치를 차지해, 각 계정에 직접 저장됩니다. 그래서 코어 프로토콜이 복잡해지고, 사용자는 하나의 서명 방식과 하나의 리플레이 방지 모델에 묶입니다.\n\nEIP-101은 2015년 Vitalik Buterin이 계획 중이던 \"Serenity\" 업그레이드를 위해 작성한 것으로, 프로토콜이 서명도 nonce도, 심지어 이더조차 몰랐다면 어떨까 하고 묻습니다. 각 계정이 자체 암호 방식(예: 양자 내성을 위한 Lamport 서명)을 고를 수 있고, 멀티시그는 네이티브가 되며, 이더도 다른 토큰처럼 다룰 수 있게 됩니다.\n\n## 어떻게 동작하나요?\n\n이 제안은 기본 계층을 훨씬 작게 만듭니다.\n\n- 계정에는 **code**와 **storage** 두 필드만 있습니다. 잔액도 nonce도 없습니다.\n- 모든 이더는 주소 `0`의 특수 컨트랙트에 있습니다. `getBalance`는 이를 조회하도록 재매핑되고, `msg.value` opcode는 사라집니다.\n- 트랜잭션에는 `to`, `startgas`, `data`, `code` 네 필드만 있습니다. 기본적인 형식 검사 외에는 유효성 규칙이 없으며 \"무엇이든 허용\"됩니다.\n- `to`가 아직 존재하지 않으면 전달된 `code`로 생성되며, 이 `code`의 해시는 `to` 주소와 같아야 합니다.\n- 새로운 `tx.gas` opcode로 코드가 트랜잭션에 처음 주어진 gas를 볼 수 있습니다.\n\n서명과 nonce 검사는 각 계정 자신의 코드로 옮겨 갑니다. 명세에는 표준 \"사용자 계정\" 컨트랙트가 나오는데, ECDSA 서명을 검증하고, 시퀀스 번호를 확인한 뒤 증가시키고, 요청된 호출을 수행하고, gas 비용을 마이너에게 지급합니다.\n\n마이너를 보호하기 위해 마이너는 트랜잭션 코드를 최대 50,000 gas까지만 실행합니다. 그런 다음 끝부분의 gas 지급 코드가 표준 패턴과 정확히 일치하는지 확인합니다. 값 전송은 이더 컨트랙트를 거치는 \"수표\" 방식이 됩니다.\n\n## 샘플 코드\n\n명세에 설명된 표준 계정 로직을 보여 주는 설명용 의사 코드입니다.\n\n```python\n# data layout: v | r | s | seq | gasprice | to | calldata\ndef account_main(data):\n    h = sha3(data[96:])                         # what was signed\n    signer = ecrecover(h, data.v, data.r, data.s)\n    assert signer == OWNER                      # signature check (could be any scheme)\n    assert data.seq == storage[-1]              # replay protection\n    storage[-1] += 1\n    call(gas=msg.gas - 50000, to=data.to, input=data.calldata)\n    # fixed, pattern-matched epilogue: pay the miner\n    ether_contract.send(block.coinbase, data.gasprice * (tx.gas - msg.gas + 50000))\n```\n\n## 알아둘 점\n\n- 이 제안은 Stagnant(정체) 상태이며 채택된 적이 없습니다. 이더리움은 여전히 네이티브 이더 잔액, nonce, ECDSA 서명 트랜잭션을 사용합니다.\n- 아이디어는 이어졌습니다. [EIP-86](/eip-86/)과 [EIP-2938](/eip-2938/)은 이후 프로토콜 수준에서 계정 추상화를 향한 걸음을 내디뎠습니다(둘 다 적용되지 않았습니다). [ERC-4337](/eip-4337/)은 프로토콜 변경 없이 그 상당 부분을 달성하고, [EIP-7702](/eip-7702/)는 일반 계정이 코드를 실행할 수 있게 합니다.\n- \"gas 지급을 패턴 매칭한다\"는 규칙은 추상화의 어려운 부분을 보여 줍니다. 마이너나 빌더는 많은 작업을 하기 전에 트랜잭션이 비용을 낼 것임을 알아야 합니다. 이후의 모든 설계도 이 문제를 풀어야 합니다.\n"},"zh":{"lang":"zh","tldr":"早期“Serenity”构想：把以太币和签名校验从基础协议中剥离，让每个账户自行定义验证代码，是如今账户抽象工作的先驱。","tags":["account-abstraction","serenity","core","research"],"related":[86,2938,4337,7702],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-101/","markdown":"## 它解决什么问题？\n\n在以太坊中，每个账户都由同样的机制保护：secp256k1 上的 ECDSA 签名，加上必须恰好加一的 nonce。以太币在协议中也有特殊地位，直接存放在每个账户里。这使核心协议更加复杂，也把用户锁定在一种签名方案和一种重放保护模型上。\n\nEIP-101 由 Vitalik Buterin 于 2015 年为计划中的“Serenity”升级撰写，它提出一个问题：如果协议根本不知道签名、nonce，甚至以太币，会怎样？每个账户可以自选密码学方案（例如用于抗量子的 Lamport 签名），多重签名将成为原生功能，以太币也可以像其他代币一样处理。\n\n## 它如何运作\n\n该提案让基础层小得多：\n\n- 账户只有两个字段：**code** 和 **storage**。没有余额，也没有 nonce。\n- 所有以太币都存放在地址 `0` 的一个特殊合约中。`getBalance` 被重新映射为查询该合约，`msg.value` 操作码随之消失。\n- 交易只有四个字段：`to`、`startgas`、`data` 和 `code`。除了基本的格式检查外，没有任何有效性规则，即“怎样都行”。\n- 如果 `to` 尚不存在，就用提供的 `code` 创建它，而这段 `code` 的哈希必须等于 `to` 地址。\n- 新增 `tx.gas` 操作码，让代码能看到交易最初获得的 gas。\n\n签名和 nonce 检查移入每个账户自己的代码。规范给出了一个标准的“用户账户”合约：它验证 ECDSA 签名，检查并递增序列号，发起所请求的调用，并向矿工支付 gas 费用。\n\n为保护矿工，矿工最多执行交易代码 50,000 gas。随后检查末尾的 gas 支付代码是否与标准模式完全一致。转移价值变成通过以太币合约进行的“支票”流程。\n\n## 示例代码\n\n规范中所描述的标准账户逻辑的示意性伪代码：\n\n```python\n# data layout: v | r | s | seq | gasprice | to | calldata\ndef account_main(data):\n    h = sha3(data[96:])                         # what was signed\n    signer = ecrecover(h, data.v, data.r, data.s)\n    assert signer == OWNER                      # signature check (could be any scheme)\n    assert data.seq == storage[-1]              # replay protection\n    storage[-1] += 1\n    call(gas=msg.gas - 50000, to=data.to, input=data.calldata)\n    # fixed, pattern-matched epilogue: pay the miner\n    ether_contract.send(block.coinbase, data.gasprice * (tx.gas - msg.gas + 50000))\n```\n\n## 需要注意\n\n- 该提案状态为 Stagnant（停滞），从未被采纳。以太坊仍然使用原生的以太币余额、nonce 和 ECDSA 签名交易。\n- 这些想法延续了下来。[EIP-86](/eip-86/) 和 [EIP-2938](/eip-2938/) 后来在协议层面朝账户抽象迈出了步伐（两者都未上线）。[ERC-4337](/eip-4337/) 无需修改协议就实现了其中大部分功能，[EIP-7702](/eip-7702/) 则让普通账户可以运行代码。\n- “对 gas 支付做模式匹配”这条规则揭示了抽象的难点：矿工或构建者必须在做大量工作之前就知道交易会付款。之后的每一种设计也都要解决这个问题。\n"}}}
