{"eip":3372,"title":"5 FNV primes for ethash","description":"Introduce 5 new FNV primes into the ethash algorithm.","authors":["mineruniter969 (@mineruniter969)","mineruniter969 \u003cmineruniter969@tutanota.com\u003e"],"status":"Stagnant","type":"Standards Track","category":"Core","created":"2021-03-13","discussionsTo":"https://ethereum-magicians.org/t/eip-3372-apply-minor-modifications-to-the-ethash-algorithm-to-break-current-asic-implementations-eip-969-resubmission/5655","repo":"EIPs","label":"EIP-3372","officialUrl":"https://eips.ethereum.org/EIPS/eip-3372","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-3372.md","url":"https://eips.huatuo.xyz/eip-3372/","tldr":{"en":"Proposed tweaking Ethash with five new FNV primes so that existing Ethash ASICs would stop working, keeping proof-of-work mining on GPUs until the Merge.","ja":"5 つの新しい FNV 素数で Ethash を調整し、既存の Ethash ASIC を動かなくして、The Merge まで GPU によるプルーフ・オブ・ワークのマイニングを維持する提案。","ko":"다섯 개의 새로운 FNV 소수로 Ethash를 조정해 기존 Ethash ASIC이 동작하지 못하게 하고, 머지(The Merge) 전까지 작업 증명 채굴을 GPU에 머물게 하자고 제안했다.","zh":"提议用五个新的 FNV 素数微调 Ethash，使现有的 Ethash ASIC 失效，让工作量证明挖矿在合并（The Merge）之前继续停留在 GPU 上。"},"tags":["ethash","proof-of-work","mining","asic","core"],"explainers":{"en":{"lang":"en","tldr":"Proposed tweaking Ethash with five new FNV primes so that existing Ethash ASICs would stop working, keeping proof-of-work mining on GPUs until the Merge.","tags":["ethash","proof-of-work","mining","asic","core"],"related":[969,1057,3675],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-3372/","markdown":"## What problem does it solve?\n\nEthash, Ethereum's proof-of-work algorithm, was designed to be memory-hard so that ordinary GPUs could mine competitively. Over time, dedicated Ethash ASICs appeared. The authors argue these concentrate hash power in a few large operators, push small GPU miners out (especially once [EIP-1559](/eip-1559/) reduced miner income), and leave piles of single-purpose hardware behind after the Merge.\n\nEIP-3372 proposes the smallest possible change that would break hardware with Ethash constants baked in: swap the one FNV prime used in hashing for five different ones. It describes itself as a resubmission of the idea behind [EIP-969](/eip-969/).\n\n## How it works\n\nEthash mixes data with an FNV-style function: `fnv(a, b) = (a * PRIME) ^ b` modulo 2³². Today the same prime, `0x01000193`, is used everywhere.\n\nFrom a fork block `ETHASH11_BLKNUM`, \"ethash 1.1\" would use different primes in different steps:\n\n| Step | Before | After |\n| --- | --- | --- |\n| DAG generation | `fnv0` | `fnv0` (unchanged) |\n| DAG item selection | `fnv0` | `fnvA` (`0x10001a7`) |\n| DAG item mix | `fnv0` | `fnvB` (`0x10001ab`) |\n| Compress mix | `fnv0(fnv0(fnv0(…` | `fnvC(fnvD(fnvE(…` (`0x10001cf`, `0x10001e3`, `0x10001f9`) |\n\nKeeping DAG generation unchanged means miners do not need a new DAG. GPU miners only need updated software, while ASICs with the old prime fixed in silicon would produce invalid results. The spec includes test vectors for the new algorithm.\n\n## Sample code\n\nThe FNV step and the new constants (C):\n\n```c\n#include \u003cstdint.h\u003e\n\n#define FNV_PRIME_0 0x01000193u  /* original, still used for DAG generation */\n#define FNV_PRIME_A 0x010001a7u\n#define FNV_PRIME_B 0x010001abu\n#define FNV_PRIME_C 0x010001cfu\n#define FNV_PRIME_D 0x010001e3u\n#define FNV_PRIME_E 0x010001f9u\n\nstatic inline uint32_t fnv(uint32_t prime, uint32_t a, uint32_t b) {\n    return (a * prime) ^ b;      /* uint32 arithmetic wraps mod 2^32 */\n}\n\n/* compress-mix step in ethash 1.1 (was fnv0 three times) */\nuint32_t compress4(const uint32_t m[4]) {\n    return fnv(FNV_PRIME_C,\n               fnv(FNV_PRIME_D,\n                   fnv(FNV_PRIME_E, m[0], m[1]), m[2]), m[3]);\n}\n```\n\n## Things to know\n\n- **Status: Stagnant.** It was not adopted. Ethereum kept original Ethash until it left proof-of-work entirely with the Merge ([EIP-3675](/eip-3675/)), which made the question moot.\n- The broader ASIC-resistance debate also produced [EIP-1057](/eip-1057/) (ProgPoW), a much larger algorithm change that likewise was never activated.\n- The spec admits the change only buys time: manufacturers could build new ASICs for the modified constants, and the authors relied on the Merge being close.\n- The rationale section contains strongly worded claims about specific companies. Those are the anonymous authors' assertions, not part of the technical specification.\n"},"ja":{"lang":"ja","tldr":"5 つの新しい FNV 素数で Ethash を調整し、既存の Ethash ASIC を動かなくして、The Merge まで GPU によるプルーフ・オブ・ワークのマイニングを維持する提案。","tags":["ethash","proof-of-work","mining","asic","core"],"related":[969,1057,3675],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-3372/","markdown":"## 何を解決するのか\n\nEthereum のプルーフ・オブ・ワークアルゴリズムである Ethash は、通常の GPU でも競争力を持ってマイニングできるよう、メモリハードに設計されました。時間とともに、専用の Ethash ASIC が登場しました。著者は、これがハッシュパワーを少数の大規模事業者に集中させ、（特に [EIP-1559](/eip-1559/) でマイナーの収入が減って以降）小規模な GPU マイナーを追い出し、The Merge 後に単一用途のハードウェアの山を残すと主張しています。\n\nEIP-3372 は、Ethash の定数を組み込んだハードウェアを壊す、最小限の変更を提案します。ハッシュで使われている 1 つの FNV 素数を 5 つの異なる素数に差し替えるというものです。提案は自らを [EIP-969](/eip-969/) の背後にあるアイデアの再提出であると説明しています。\n\n## 仕組み\n\nEthash は FNV 方式の関数でデータを混ぜます。`fnv(a, b) = (a * PRIME) ^ b`（2³² を法とする）です。現在は同じ素数 `0x01000193` がすべての箇所で使われています。\n\nフォークブロック `ETHASH11_BLKNUM` から、「ethash 1.1」は各ステップで異なる素数を使います。\n\n| ステップ | 変更前 | 変更後 |\n| --- | --- | --- |\n| DAG 生成 | `fnv0` | `fnv0`（変更なし） |\n| DAG アイテム選択 | `fnv0` | `fnvA`（`0x10001a7`） |\n| DAG アイテムのミックス | `fnv0` | `fnvB`（`0x10001ab`） |\n| ミックスの圧縮 | `fnv0(fnv0(fnv0(…` | `fnvC(fnvD(fnvE(…`（`0x10001cf`、`0x10001e3`、`0x10001f9`） |\n\nDAG 生成を変えないので、マイナーは新しい DAG を必要としません。GPU マイナーはソフトウェアを更新するだけで済みますが、古い素数がシリコンに固定された ASIC は無効な結果を出します。仕様には新しいアルゴリズムのテストベクターが含まれています。\n\n## サンプルコード\n\nFNV のステップと新しい定数（C）:\n\n```c\n#include \u003cstdint.h\u003e\n\n#define FNV_PRIME_0 0x01000193u  /* original, still used for DAG generation */\n#define FNV_PRIME_A 0x010001a7u\n#define FNV_PRIME_B 0x010001abu\n#define FNV_PRIME_C 0x010001cfu\n#define FNV_PRIME_D 0x010001e3u\n#define FNV_PRIME_E 0x010001f9u\n\nstatic inline uint32_t fnv(uint32_t prime, uint32_t a, uint32_t b) {\n    return (a * prime) ^ b;      /* uint32 arithmetic wraps mod 2^32 */\n}\n\n/* compress-mix step in ethash 1.1 (was fnv0 three times) */\nuint32_t compress4(const uint32_t m[4]) {\n    return fnv(FNV_PRIME_C,\n               fnv(FNV_PRIME_D,\n                   fnv(FNV_PRIME_E, m[0], m[1]), m[2]), m[3]);\n}\n```\n\n## 知っておくべきこと\n\n- **ステータス: Stagnant。** 採用されませんでした。Ethereum は、The Merge（[EIP-3675](/eip-3675/)）でプルーフ・オブ・ワークを完全に離れるまで元の Ethash を使い続け、この問題は意味を失いました。\n- ASIC 耐性をめぐる、より広い議論からは [EIP-1057](/eip-1057/)（ProgPoW）も生まれましたが、これははるかに大きなアルゴリズム変更で、やはり有効化されませんでした。\n- 仕様は、この変更が時間稼ぎにしかならないことを認めています。メーカーは変更後の定数向けに新しい ASIC を作れますし、著者は The Merge が近いことを当てにしていました。\n- 根拠の節には、特定の企業について強い表現の主張が含まれています。これらは匿名の著者の主張であり、技術仕様の一部ではありません。\n"},"ko":{"lang":"ko","tldr":"다섯 개의 새로운 FNV 소수로 Ethash를 조정해 기존 Ethash ASIC이 동작하지 못하게 하고, 머지(The Merge) 전까지 작업 증명 채굴을 GPU에 머물게 하자고 제안했다.","tags":["ethash","proof-of-work","mining","asic","core"],"related":[969,1057,3675],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-3372/","markdown":"## 어떤 문제를 해결하나요?\n\n이더리움의 작업 증명 알고리즘인 Ethash는 일반 GPU로도 경쟁력 있게 채굴할 수 있도록 메모리 하드(memory-hard)하게 설계되었습니다. 시간이 지나며 전용 Ethash ASIC이 등장했습니다. 작성자는 이것이 해시 파워를 소수의 대형 운영자에게 집중시키고, (특히 [EIP-1559](/eip-1559/)로 채굴자 수입이 줄어든 뒤) 소규모 GPU 채굴자를 밀어내며, 머지 이후에는 단일 용도 하드웨어 더미를 남긴다고 주장합니다.\n\nEIP-3372는 Ethash 상수가 박혀 있는 하드웨어를 무력화하는 가장 작은 변경을 제안합니다. 해시에 쓰이는 FNV 소수 하나를 서로 다른 다섯 개로 바꾸는 것입니다. 제안은 스스로를 [EIP-969](/eip-969/) 뒤에 있는 아이디어의 재제출이라고 설명합니다.\n\n## 어떻게 동작하나요?\n\nEthash는 FNV 방식 함수로 데이터를 섞습니다. `fnv(a, b) = (a * PRIME) ^ b`이며 2³²으로 나눈 나머지를 취합니다. 지금은 모든 곳에서 같은 소수 `0x01000193`이 쓰입니다.\n\n포크 블록 `ETHASH11_BLKNUM`부터 \"ethash 1.1\"은 단계마다 다른 소수를 사용합니다.\n\n| 단계 | 이전 | 이후 |\n| --- | --- | --- |\n| DAG 생성 | `fnv0` | `fnv0`(변경 없음) |\n| DAG 항목 선택 | `fnv0` | `fnvA`(`0x10001a7`) |\n| DAG 항목 믹스 | `fnv0` | `fnvB`(`0x10001ab`) |\n| 믹스 압축 | `fnv0(fnv0(fnv0(…` | `fnvC(fnvD(fnvE(…`(`0x10001cf`, `0x10001e3`, `0x10001f9`) |\n\nDAG 생성을 그대로 두므로 채굴자는 새 DAG가 필요 없습니다. GPU 채굴자는 소프트웨어만 업데이트하면 되지만, 예전 소수가 실리콘에 고정된 ASIC은 잘못된 결과를 냅니다. 사양에는 새 알고리즘의 테스트 벡터가 포함되어 있습니다.\n\n## 샘플 코드\n\nFNV 단계와 새 상수(C):\n\n```c\n#include \u003cstdint.h\u003e\n\n#define FNV_PRIME_0 0x01000193u  /* original, still used for DAG generation */\n#define FNV_PRIME_A 0x010001a7u\n#define FNV_PRIME_B 0x010001abu\n#define FNV_PRIME_C 0x010001cfu\n#define FNV_PRIME_D 0x010001e3u\n#define FNV_PRIME_E 0x010001f9u\n\nstatic inline uint32_t fnv(uint32_t prime, uint32_t a, uint32_t b) {\n    return (a * prime) ^ b;      /* uint32 arithmetic wraps mod 2^32 */\n}\n\n/* compress-mix step in ethash 1.1 (was fnv0 three times) */\nuint32_t compress4(const uint32_t m[4]) {\n    return fnv(FNV_PRIME_C,\n               fnv(FNV_PRIME_D,\n                   fnv(FNV_PRIME_E, m[0], m[1]), m[2]), m[3]);\n}\n```\n\n## 알아둘 점\n\n- **상태: Stagnant.** 채택되지 않았습니다. 이더리움은 머지([EIP-3675](/eip-3675/))로 작업 증명을 완전히 떠날 때까지 원래의 Ethash를 유지했고, 이로써 이 문제는 의미가 없어졌습니다.\n- ASIC 저항을 둘러싼 더 넓은 논쟁에서는 [EIP-1057](/eip-1057/)(ProgPoW)도 나왔는데, 훨씬 큰 알고리즘 변경이었으며 마찬가지로 활성화된 적이 없습니다.\n- 사양은 이 변경이 시간을 벌어 줄 뿐이라고 인정합니다. 제조사가 수정된 상수에 맞춰 새 ASIC을 만들 수 있고, 작성자들은 머지가 가깝다는 점에 기댔습니다.\n- 근거 항목에는 특정 기업에 대한 강한 어조의 주장이 들어 있습니다. 이는 익명 작성자들의 주장이며 기술 사양의 일부가 아닙니다.\n"},"zh":{"lang":"zh","tldr":"提议用五个新的 FNV 素数微调 Ethash，使现有的 Ethash ASIC 失效，让工作量证明挖矿在合并（The Merge）之前继续停留在 GPU 上。","tags":["ethash","proof-of-work","mining","asic","core"],"related":[969,1057,3675],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-3372/","markdown":"## 它解决什么问题？\n\nEthash 是以太坊的工作量证明算法，设计为内存困难型，让普通 GPU 也能有竞争力地挖矿。随着时间推移，出现了专用的 Ethash ASIC。作者认为，这会把算力集中到少数大型运营者手中，把小型 GPU 矿工挤出去（尤其是在 [EIP-1559](/eip-1559/) 降低了矿工收入之后），并在合并之后留下一堆单一用途的硬件。\n\nEIP-3372 提出了能让固化了 Ethash 常量的硬件失效的最小改动：把哈希中使用的那个 FNV 素数换成五个不同的素数。它自称是对 [EIP-969](/eip-969/) 背后想法的重新提交。\n\n## 它如何运作\n\nEthash 用 FNV 风格的函数混合数据：`fnv(a, b) = (a * PRIME) ^ b`，对 2³² 取模。如今到处使用的都是同一个素数 `0x01000193`。\n\n从分叉区块 `ETHASH11_BLKNUM` 起，\"ethash 1.1\" 在不同步骤使用不同的素数：\n\n| 步骤 | 之前 | 之后 |\n| --- | --- | --- |\n| DAG 生成 | `fnv0` | `fnv0`（不变） |\n| DAG 条目选择 | `fnv0` | `fnvA`（`0x10001a7`） |\n| DAG 条目混合 | `fnv0` | `fnvB`（`0x10001ab`） |\n| 压缩混合 | `fnv0(fnv0(fnv0(…` | `fnvC(fnvD(fnvE(…`（`0x10001cf`、`0x10001e3`、`0x10001f9`） |\n\n保持 DAG 生成不变意味着矿工不需要新的 DAG。GPU 矿工只需更新软件，而把旧素数固化在硅片里的 ASIC 会产生无效结果。规范包含新算法的测试向量。\n\n## 示例代码\n\nFNV 步骤和新的常量（C）：\n\n```c\n#include \u003cstdint.h\u003e\n\n#define FNV_PRIME_0 0x01000193u  /* original, still used for DAG generation */\n#define FNV_PRIME_A 0x010001a7u\n#define FNV_PRIME_B 0x010001abu\n#define FNV_PRIME_C 0x010001cfu\n#define FNV_PRIME_D 0x010001e3u\n#define FNV_PRIME_E 0x010001f9u\n\nstatic inline uint32_t fnv(uint32_t prime, uint32_t a, uint32_t b) {\n    return (a * prime) ^ b;      /* uint32 arithmetic wraps mod 2^32 */\n}\n\n/* compress-mix step in ethash 1.1 (was fnv0 three times) */\nuint32_t compress4(const uint32_t m[4]) {\n    return fnv(FNV_PRIME_C,\n               fnv(FNV_PRIME_D,\n                   fnv(FNV_PRIME_E, m[0], m[1]), m[2]), m[3]);\n}\n```\n\n## 需要注意\n\n- **状态：Stagnant。** 它没有被采纳。以太坊一直使用原版 Ethash，直到通过合并（[EIP-3675](/eip-3675/)）彻底告别工作量证明，这个问题也就不复存在。\n- 围绕抗 ASIC 的更广泛争论还催生了 [EIP-1057](/eip-1057/)（ProgPoW），那是一次大得多的算法变更，同样从未被激活。\n- 规范承认这一改动只是争取时间：厂商可以针对修改后的常量制造新的 ASIC，而作者指望合并很快到来。\n- 设计理由部分包含对特定公司措辞强烈的论断。这些是匿名作者的断言，不属于技术规范的一部分。\n"}}}
