Protocol

EmberPow

EmberPow is the proof-of-work algorithm of Nember. It is KawPow (ProgPoW 0.9.4, the algorithm of Ravencoin) with three changes. The ProgPoW maths itself, its period, registers, lanes, cache and operations, is unchanged.

What changed

KawPow (Ravencoin) EmberPow (Nember)
Hash signature rAVENCOINKAWPOW NEMBER-EMBERPOW
Epoch seed chain starts at 32 zero bytes keccak256("Nember")
DAG size grows by about 8 MiB every epoch fixed at 2.5 GB, never grows
Light cache grows fixed at 40 MiB
Epoch length 7,500 blocks 7,500 blocks
  • Signature: 15 letters mixed into the start and end of every hash. Changing them makes every hash different.
  • Seed: the seed chain starts at 365192176ad66433db1f0fb78263a0546db6647a964ba5c7b15d702c35fa7695. Each next epoch is still keccak256(previous seed), so the content of the DAG still changes every 7,500 blocks; only its size is frozen.
  • Size: the DAG always has the ethash size of epoch 192: 20,971,507 × 128 bytes = 2,684,352,896 bytes (2.5 GiB). The light cache is 655,357 × 64 bytes = 41,942,848 bytes (40 MiB).

Why

Old cards stay in for good. Ravencoin's DAG keeps growing, and 4 GB cards stopped working with it on Windows at about 3.5 GB. At 2.5 GB a 4 GB card keeps 1–1.4 GB free even on a desktop PC. Ethereum Classic made the same choice in 2020 (ECIP-1099, 2.47 GB).

Rented hashpower cannot simply be pointed at Nember. The most common attack on a small proof-of-work coin is renting a lot of hashpower for a few hours. Ravencoin's large KawPow hashrate, including rented hashrate, cannot mine Nember without a new miner. The Nember miner stays free and open source, so honest miners lose nothing.

Specialised hardware is not welcome. The random ProgPoW program changes every 3 blocks, which makes fixed-function hardware hard to build. If ASICs or FPGAs for EmberPow appear anyway, the algorithm will be changed, as described in the algorithm policy.

Compatibility

  • Unmodified KawPow miners (kawpowminer, T-Rex and others) cannot mine Nember: they do not know the seed chain and produce wrong hashes, which the node refuses.
  • nember-miner has the same three changes. In a test, all 836 solutions from an unmodified KawPow miner were refused.
  • The genesis block was made with the older X16R algorithm; EmberPow applies from block 1.

Test vectors

The node and the miner must agree bit for bit. Both check the same 17 test vectors: the 13 Ravencoin test inputs with their EmberPow results, plus blocks 1, 7,499, 7,500 and 10,512,000 (about 20 years). The miner's automatic builds run these tests on Linux and Windows.

In 20 years

At about 525,600 blocks a year the chain reaches epoch 1,400 after 20 years; the node can find epochs up to 30,000, about 428 years. The DAG and the node's 40 MiB verification cache never grow, so the hardware needed to mine and to run a node stays the same.