{"eip":1485,"title":"TEthashV1","description":"This EIP modifies ethash in order to break ASIC miners specialized for the current ethash mining algorithm.","authors":["trustfarm \u003ctrustfarm.info@gmail.com\u003e","trustfarm \u003ccpplover@trustfarm.net\u003e"],"status":"Stagnant","type":"Standards Track","category":"Core","created":"2018-11-01","discussionsTo":"https://ethereum-magicians.org/t/anti-eth-asic-mining-eip-1488-pr/1807","repo":"EIPs","label":"EIP-1485","officialUrl":"https://eips.ethereum.org/EIPS/eip-1485","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1485.md","url":"https://eips.huatuo.xyz/eip-1485/","tldr":{"en":"A stagnant proposal to swap Ethash's FNV-0 mixing function for FNV-1a, a small change meant to make existing Ethash ASIC miners obsolete.","ja":"Ethash の FNV-0 混合関数を FNV-1a に置き換える、停滞（Stagnant）中の提案。既存の Ethash 用 ASIC マイナーを陳腐化させることを狙った小さな変更。","ko":"Ethash의 FNV-0 혼합 함수를 FNV-1a로 바꾸자는 정체(Stagnant) 상태의 제안. 기존 Ethash ASIC 채굴기를 쓸모없게 만들려는 작은 변경이다.","zh":"一项停滞（Stagnant）的提案：把 Ethash 的 FNV-0 混合函数换成 FNV-1a，这一小改动旨在让现有的 Ethash ASIC 矿机过时。"},"tags":["pow","ethash","mining","asic","core"],"explainers":{"en":{"lang":"en","tldr":"A stagnant proposal to swap Ethash's FNV-0 mixing function for FNV-1a, a small change meant to make existing Ethash ASIC miners obsolete.","tags":["pow","ethash","mining","asic","core"],"related":[1057,1355],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-1485/","markdown":"## What problem does it solve?\n\nIn 2018 ASIC miners built specifically for Ethash, Ethereum's proof-of-work algorithm, began to appear. Many in the community worried that specialized hardware would concentrate mining in a few hands, since GPUs would no longer be competitive.\n\nTEthashV1 proposes the smallest possible change to Ethash that would still break those ASICs: replace the hash function used to mix data, without redesigning the algorithm. The authors also argue the current function, FNV-0, is a deprecated variant with weak avalanche behaviour (flipping one or two input bits changes few output bits).\n\n## How it works\n\nEthash uses an FNV-style function in two places: building the large DAG dataset, and the 64 mixing rounds that combine the header hash with pseudo-random DAG pages. In Ethash it is essentially:\n\n```c\n#define FNV_PRIME 0x01000193U\n#define fnv(x, y) ((x) * FNV_PRIME ^ (y))      // FNV-0 style, no offset\n```\n\nTEthashV1 replaces it with **FNV-1a**, which starts from a fixed offset basis and XORs before multiplying:\n\n```c\n#define FNV_PRIME        0x01000193U\n#define FNV_OFFSET_BASIS 0x811c9dc5U\n\n#define fnv1a(x, y) ((((FNV_OFFSET_BASIS ^ (x)) * FNV_PRIME) ^ (y)) * FNV_PRIME)\n#define fnv1a_reduce(a, b, c, d) (fnv1a(fnv1a(fnv1a(a, b), c), d))\n```\n\nEverything else (DAG size and growth, Keccak steps, the overall mixing structure) stays as in Ethash. Because hardware that hard-wires the old mixing step would compute wrong results, existing ASICs would stop producing valid blocks, while GPU miners only need a software update.\n\nThe spec also describes a byte-wise variant it calls FNV1c and includes a test harness comparing bit-difference counts between the variants.\n\n## Sample code\n\nA tiny C check that the two functions really diverge, so old hardware would fail:\n\n```c\n#include \u003cstdio.h\u003e\n#include \u003cstdint.h\u003e\n\n#define FNV_PRIME        0x01000193U\n#define FNV_OFFSET_BASIS 0x811c9dc5U\n#define fnv(x, y)   ((uint32_t)((x) * FNV_PRIME ^ (y)))\n#define fnv1a(x, y) ((uint32_t)((((FNV_OFFSET_BASIS ^ (x)) * FNV_PRIME) ^ (y)) * FNV_PRIME))\n\nint main(void) {\n    uint32_t a = 0x12345678, b = 0x9abcdef0;\n    printf(\"ethash fnv : %08x\\n\", fnv(a, b));\n    printf(\"tethash v1 : %08x\\n\", fnv1a(a, b));\n    return 0;\n}\n```\n\n## Things to know\n\n- **Status: Stagnant.** It was never scheduled for any Ethereum hard fork.\n- The authors report a 2–3% GPU hashrate reduction from the extra arithmetic, based on their own miner.\n- It was one of several anti-ASIC proposals of the time. [EIP-1355](/eip-1355/) (Ethash 1a, Withdrawn) suggested a similar FNV change, and [EIP-1057](/eip-1057/) (ProgPoW) proposed a larger redesign. None were activated on mainnet.\n- Ethereum moved to proof-of-stake at The Merge, so Ethash and any variant of it no longer secure the chain.\n- Unlike most EIPs, this text is licensed CC BY-NC-SA 4.0 rather than CC0.\n"},"ja":{"lang":"ja","tldr":"Ethash の FNV-0 混合関数を FNV-1a に置き換える、停滞（Stagnant）中の提案。既存の Ethash 用 ASIC マイナーを陳腐化させることを狙った小さな変更。","tags":["pow","ethash","mining","asic","core"],"related":[1057,1355],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-1485/","markdown":"## 何を解決するのか\n\n2018 年、Ethereum のプルーフ・オブ・ワークアルゴリズムである Ethash に特化して作られた ASIC マイナーが登場し始めました。GPU が競争力を失い、専用ハードウェアによってマイニングが少数の手に集中するのではないかと、コミュニティの多くが懸念しました。\n\nTEthashV1 は、それでも ASIC を無効にできる、Ethash に対する可能な限り小さな変更を提案します。アルゴリズムを設計し直すことなく、データの混合に使うハッシュ関数を置き換えるというものです。著者らはまた、現在の関数 FNV-0 は非推奨の変種で、アバランシェ特性が弱い（入力の 1〜2 ビットを反転しても、変わる出力ビットが少ない）と主張しています。\n\n## 仕組み\n\nEthash は、FNV 型の関数を 2 か所で使います。大きな DAG データセットの構築と、ヘッダーハッシュを疑似乱数的な DAG ページと組み合わせる 64 ラウンドの混合です。Ethash では、本質的には次のようになっています。\n\n```c\n#define FNV_PRIME 0x01000193U\n#define fnv(x, y) ((x) * FNV_PRIME ^ (y))      // FNV-0 style, no offset\n```\n\nTEthashV1 はこれを **FNV-1a** に置き換えます。FNV-1a は固定のオフセット基底値から始め、乗算の前に XOR を行います。\n\n```c\n#define FNV_PRIME        0x01000193U\n#define FNV_OFFSET_BASIS 0x811c9dc5U\n\n#define fnv1a(x, y) ((((FNV_OFFSET_BASIS ^ (x)) * FNV_PRIME) ^ (y)) * FNV_PRIME)\n#define fnv1a_reduce(a, b, c, d) (fnv1a(fnv1a(fnv1a(a, b), c), d))\n```\n\nそれ以外のすべて（DAG のサイズと成長、Keccak のステップ、混合の全体構造）は、Ethash のままです。古い混合ステップをハードワイヤードで実装したハードウェアは誤った結果を計算することになるため、既存の ASIC は有効なブロックを生成できなくなりますが、GPU マイナーに必要なのはソフトウェアの更新だけです。\n\n仕様はまた、FNV1c と呼ぶバイト単位の変種を説明しており、変種間のビット差の数を比較するテストハーネスも含んでいます。\n\n## サンプルコード\n\n2 つの関数が実際に異なる値になり、古いハードウェアが失敗することを確認する小さな C のチェック:\n\n```c\n#include \u003cstdio.h\u003e\n#include \u003cstdint.h\u003e\n\n#define FNV_PRIME        0x01000193U\n#define FNV_OFFSET_BASIS 0x811c9dc5U\n#define fnv(x, y)   ((uint32_t)((x) * FNV_PRIME ^ (y)))\n#define fnv1a(x, y) ((uint32_t)((((FNV_OFFSET_BASIS ^ (x)) * FNV_PRIME) ^ (y)) * FNV_PRIME))\n\nint main(void) {\n    uint32_t a = 0x12345678, b = 0x9abcdef0;\n    printf(\"ethash fnv : %08x\\n\", fnv(a, b));\n    printf(\"tethash v1 : %08x\\n\", fnv1a(a, b));\n    return 0;\n}\n```\n\n## 知っておくべきこと\n\n- **ステータス: Stagnant。** Ethereum のどのハードフォークにも予定されたことはありませんでした。\n- 著者らは、自作のマイナーに基づき、追加の演算により GPU のハッシュレートが 2〜3% 低下すると報告しています。\n- 当時の複数の ASIC 対策提案の 1 つでした。[EIP-1355](/eip-1355/)（Ethash 1a、Withdrawn）は同様の FNV の変更を提案し、[EIP-1057](/eip-1057/)（ProgPoW）はより大規模な再設計を提案しました。いずれもメインネットで有効化されませんでした。\n- Ethereum は The Merge でプルーフ・オブ・ステークに移行したため、Ethash もその変種も、もはやチェーンを保護していません。\n- 多くの EIP と異なり、このテキストは CC0 ではなく CC BY-NC-SA 4.0 でライセンスされています。\n"},"ko":{"lang":"ko","tldr":"Ethash의 FNV-0 혼합 함수를 FNV-1a로 바꾸자는 정체(Stagnant) 상태의 제안. 기존 Ethash ASIC 채굴기를 쓸모없게 만들려는 작은 변경이다.","tags":["pow","ethash","mining","asic","core"],"related":[1057,1355],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-1485/","markdown":"## 어떤 문제를 해결하나요?\n\n2018년에 이더리움의 작업 증명 알고리즘인 Ethash에 특화된 ASIC 채굴기가 등장하기 시작했습니다. 커뮤니티의 많은 사람들은 GPU가 더 이상 경쟁력을 갖지 못하게 되어, 전용 하드웨어가 채굴을 소수의 손에 집중시킬 것을 우려했습니다.\n\nTEthashV1은 그래도 이 ASIC들을 무력화할 수 있는, Ethash에 대한 가능한 한 가장 작은 변경을 제안합니다. 알고리즘을 다시 설계하지 않고 데이터를 섞는 데 쓰는 해시 함수만 바꾸는 것입니다. 저자들은 또한 현재의 함수 FNV-0이 눈사태 효과(avalanche)가 약한(입력 비트를 한두 개 뒤집어도 바뀌는 출력 비트가 적은) 지원 중단된 변형이라고 주장합니다.\n\n## 어떻게 동작하나요?\n\nEthash는 FNV 스타일 함수를 두 곳에서 사용합니다. 거대한 DAG 데이터셋을 만들 때와, 헤더 해시를 의사 난수 DAG 페이지와 결합하는 64라운드의 혼합 단계입니다. Ethash에서는 본질적으로 다음과 같습니다.\n\n```c\n#define FNV_PRIME 0x01000193U\n#define fnv(x, y) ((x) * FNV_PRIME ^ (y))      // FNV-0 style, no offset\n```\n\nTEthashV1은 이를 **FNV-1a**로 바꿉니다. FNV-1a는 고정된 오프셋 기저값에서 시작하고 곱하기 전에 XOR을 합니다.\n\n```c\n#define FNV_PRIME        0x01000193U\n#define FNV_OFFSET_BASIS 0x811c9dc5U\n\n#define fnv1a(x, y) ((((FNV_OFFSET_BASIS ^ (x)) * FNV_PRIME) ^ (y)) * FNV_PRIME)\n#define fnv1a_reduce(a, b, c, d) (fnv1a(fnv1a(fnv1a(a, b), c), d))\n```\n\n그 밖의 모든 것(DAG의 크기와 성장, Keccak 단계, 전체 혼합 구조)은 Ethash와 같습니다. 예전 혼합 단계를 하드와이어로 구현한 하드웨어는 잘못된 결과를 계산하게 되므로 기존 ASIC은 유효한 블록을 만들지 못하게 되지만, GPU 채굴자는 소프트웨어 업데이트만 하면 됩니다.\n\n명세는 FNV1c라고 부르는 바이트 단위 변형도 설명하며, 변형 간 비트 차이 수를 비교하는 테스트 하네스도 포함합니다.\n\n## 샘플 코드\n\n두 함수가 실제로 다른 값을 내서 예전 하드웨어가 실패함을 확인하는 작은 C 검사:\n\n```c\n#include \u003cstdio.h\u003e\n#include \u003cstdint.h\u003e\n\n#define FNV_PRIME        0x01000193U\n#define FNV_OFFSET_BASIS 0x811c9dc5U\n#define fnv(x, y)   ((uint32_t)((x) * FNV_PRIME ^ (y)))\n#define fnv1a(x, y) ((uint32_t)((((FNV_OFFSET_BASIS ^ (x)) * FNV_PRIME) ^ (y)) * FNV_PRIME))\n\nint main(void) {\n    uint32_t a = 0x12345678, b = 0x9abcdef0;\n    printf(\"ethash fnv : %08x\\n\", fnv(a, b));\n    printf(\"tethash v1 : %08x\\n\", fnv1a(a, b));\n    return 0;\n}\n```\n\n## 알아둘 점\n\n- **상태: Stagnant.** 어떤 이더리움 하드포크에도 예정된 적이 없습니다.\n- 저자들은 자체 채굴 프로그램을 기준으로, 추가 연산 때문에 GPU 해시레이트가 2~3% 줄어든다고 보고합니다.\n- 당시 여러 ASIC 방지 제안 중 하나였습니다. [EIP-1355](/eip-1355/)(Ethash 1a, Withdrawn)는 비슷한 FNV 변경을 제안했고, [EIP-1057](/eip-1057/)(ProgPoW)은 더 큰 재설계를 제안했습니다. 어느 것도 메인넷에서 활성화되지 않았습니다.\n- 이더리움은 The Merge에서 지분 증명으로 옮겨 갔으므로, Ethash와 그 어떤 변형도 더 이상 체인을 보호하지 않습니다.\n- 대부분의 EIP와 달리 이 문서는 CC0이 아니라 CC BY-NC-SA 4.0으로 라이선스되어 있습니다.\n"},"zh":{"lang":"zh","tldr":"一项停滞（Stagnant）的提案：把 Ethash 的 FNV-0 混合函数换成 FNV-1a，这一小改动旨在让现有的 Ethash ASIC 矿机过时。","tags":["pow","ethash","mining","asic","core"],"related":[1057,1355],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-1485/","markdown":"## 它解决什么问题？\n\n2018 年，专门为以太坊工作量证明算法 Ethash 打造的 ASIC 矿机开始出现。社区中许多人担心，专用硬件会让挖矿集中到少数人手里，因为 GPU 将不再具有竞争力。\n\nTEthashV1 提出对 Ethash 做出尽可能小、但仍能让这些 ASIC 失效的改动：替换用于混合数据的哈希函数，而不重新设计算法。作者还认为，当前的函数 FNV-0 是一个已被弃用的变体，雪崩效应较弱（翻转一两个输入位，只会改变很少的输出位）。\n\n## 它如何运作\n\nEthash 在两个地方使用 FNV 风格的函数：构建庞大的 DAG 数据集，以及把区块头哈希与伪随机 DAG 页面结合起来的 64 轮混合。在 Ethash 中，它本质上是这样的：\n\n```c\n#define FNV_PRIME 0x01000193U\n#define fnv(x, y) ((x) * FNV_PRIME ^ (y))      // FNV-0 style, no offset\n```\n\nTEthashV1 把它替换为 **FNV-1a**，后者从固定的偏移基数开始，并在乘法之前先做异或：\n\n```c\n#define FNV_PRIME        0x01000193U\n#define FNV_OFFSET_BASIS 0x811c9dc5U\n\n#define fnv1a(x, y) ((((FNV_OFFSET_BASIS ^ (x)) * FNV_PRIME) ^ (y)) * FNV_PRIME)\n#define fnv1a_reduce(a, b, c, d) (fnv1a(fnv1a(fnv1a(a, b), c), d))\n```\n\n其他一切（DAG 的大小和增长、Keccak 步骤、整体混合结构）都与 Ethash 保持一致。由于把旧混合步骤硬连线的硬件会算出错误的结果，现有的 ASIC 将无法再产出有效区块，而 GPU 矿工只需要更新软件。\n\n规范还描述了一个它称为 FNV1c 的按字节变体，并附带一个测试程序，用来比较各变体之间的位差异数量。\n\n## 示例代码\n\n一个很小的 C 检查程序，验证这两个函数确实会得到不同的值，因此旧硬件会失败：\n\n```c\n#include \u003cstdio.h\u003e\n#include \u003cstdint.h\u003e\n\n#define FNV_PRIME        0x01000193U\n#define FNV_OFFSET_BASIS 0x811c9dc5U\n#define fnv(x, y)   ((uint32_t)((x) * FNV_PRIME ^ (y)))\n#define fnv1a(x, y) ((uint32_t)((((FNV_OFFSET_BASIS ^ (x)) * FNV_PRIME) ^ (y)) * FNV_PRIME))\n\nint main(void) {\n    uint32_t a = 0x12345678, b = 0x9abcdef0;\n    printf(\"ethash fnv : %08x\\n\", fnv(a, b));\n    printf(\"tethash v1 : %08x\\n\", fnv1a(a, b));\n    return 0;\n}\n```\n\n## 需要注意\n\n- **状态：Stagnant。** 它从未被排入任何以太坊硬分叉。\n- 作者根据自己的矿工程序报告，额外的运算使 GPU 算力下降 2–3%。\n- 它是当时若干反 ASIC 提案之一。[EIP-1355](/eip-1355/)（Ethash 1a，Withdrawn）提议了类似的 FNV 改动，[EIP-1057](/eip-1057/)（ProgPoW）则提议了更大规模的重新设计。它们都没有在主网上激活。\n- 以太坊在 The Merge 时转向了权益证明，因此 Ethash 及其任何变体都不再保护这条链。\n- 与大多数 EIP 不同，本文以 CC BY-NC-SA 4.0 而不是 CC0 授权。\n"}}}
