---
eip: 1057
label: EIP-1057
title: ProgPoW, a Programmatic Proof-of-Work
status: Stagnant
type: Standards Track
category: Core
created: 2018-05-02
official: https://eips.ethereum.org/EIPS/eip-1057
source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1057.md
canonical: https://eips.huatuo.xyz/eip-1057/
lang: en
tldr: A proposed replacement for Ethash that ran a randomly changing GPU program each period, aiming to shrink the efficiency edge of mining ASICs; it was never activated and became moot when Ethereum moved to proof-of-stake.
tags: [mining, proof-of-work, asic, core, ethash]
---

# EIP-1057: ProgPoW, a Programmatic Proof-of-Work

> A new Proof-of-Work algorithm to replace Ethash that utilizes almost all parts of commodity GPUs.

**TL;DR:** A proposed replacement for Ethash that ran a randomly changing GPU program each period, aiming to shrink the efficiency edge of mining ASICs; it was never activated and became moot when Ethereum moved to proof-of-stake.

## What problem does it solve?

Ethereum's original proof-of-work, Ethash, was designed to be memory-hard so that ordinary GPUs could mine competitively. By 2018 dedicated Ethash ASICs had appeared, and the authors argued that specialised hardware concentrates mining in the hands of a few manufacturers and their customers.

The spec's view is that "ASIC resistance" really means *the efficiency gap between custom chips and widely available hardware*. Ethash leaves roughly a 2× gap because it mostly exercises a GPU's memory interface and very little else. ProgPoW (Programmatic Proof-of-Work) tries to use almost every part of a commodity GPU, so a custom chip would gain only about 1.1–1.2× by stripping out unused parts such as the graphics pipeline and floating-point units.

## How it works

ProgPoW keeps Ethash's large DAG dataset but changes what happens around each memory access:

- **keccak-f800 instead of keccak-f1600**: 32-bit words that match GPU registers.
- **Larger mix state** spread across 16 parallel lanes with 32 registers each.
- **Random math in the main loop**: a sequence of operations (add, multiply, `mul_hi`, min, rotates, popcount, clz, bitwise ops) chosen by a seeded KISS99 random generator.
- **Random reads from a small 16 KB cache**, exercising the GPU's low-latency on-chip memory.
- **256-byte DAG reads** instead of Ethash's 128 bytes.

The random program changes every `PROGPOW_PERIOD` blocks (10 in version 0.9.3, about two minutes). Miners are expected to generate source code for each period on the CPU and compile it for the GPU, so the hardware must stay fully programmable. Changing it that often prevents anyone from hand-optimising a fixed sequence.

Values are merged with a 32-bit FNV1a hash, and all arithmetic is unsigned 32-bit with overflow discarded.

## Sample code

The two building blocks from the spec (C++), FNV1a merging and the KISS99 generator:

```cpp
const uint32_t FNV_PRIME = 0x1000193;
const uint32_t FNV_OFFSET_BASIS = 0x811c9dc5;

uint32_t fnv1a(uint32_t h, uint32_t d) {
    return (h ^ d) * FNV_PRIME;
}

typedef struct { uint32_t z, w, jsr, jcong; } kiss99_t;

uint32_t kiss99(kiss99_t &st) {
    st.z = 36969 * (st.z & 65535) + (st.z >> 16);
    st.w = 18000 * (st.w & 65535) + (st.w >> 16);
    uint32_t MWC = ((st.z << 16) + st.w);
    st.jsr ^= (st.jsr << 17);
    st.jsr ^= (st.jsr >> 13);
    st.jsr ^= (st.jsr << 5);
    st.jcong = 69069 * st.jcong + 1234567;
    return ((MWC ^ st.jcong) + st.jsr);
}

// merge() folds new data into a high-entropy register without losing entropy
uint32_t merge(uint32_t a, uint32_t b, uint32_t r) {
    switch (r % 4) {
    case 0: return (a * 33) + b;
    case 1: return (a ^ b) * 33;
    case 2: return ROTL32(a, ((r >> 16) % 31) + 1) ^ b;
    case 3: return ROTR32(a, ((r >> 16) % 31) + 1) ^ b;
    }
}
```

## Things to know

- Status is **Stagnant**. ProgPoW was debated at length but never scheduled into a mainnet hard fork.
- Ethereum stopped using proof-of-work at the Merge ([EIP-3675](/eip-3675/)), so ProgPoW has no relevance to Ethereum mainnet today. It remains of interest only as a design study or for other proof-of-work chains.
- The tuning parameters changed between versions (0.9.2 to 0.9.3 shortened the period from 50 to 10 blocks and reduced cache and math operations per loop). Check which version any implementation targets.
- No algorithm is truly ASIC-proof. ProgPoW's own goal was only to make the efficiency gain of an ASIC small.


---

This is an unofficial plain-language summary. Read the full specification: https://eips.ethereum.org/EIPS/eip-1057
