SHARENOTEProof of energy
Learn/2 of 5

Z-bits and exact math

The Z-bit is the denomination every note is minted, counted and priced in, on one continuous scale.

Reading a Z-bit

A Z-bit is written NNzcc: whole bits, a lowercase z, then two centi-bit digits. 34z10 means 34.10 bits. Each whole bit doubles the work. Each centi-bit adds a further factor of 2^(1/100).

Z-bitExpected hashes
10z002^10 ≈ a thousand
20z002^20 ≈ a million
30z002^30 ≈ a billion

Three quantities

Every note moves through three numbers:

  • Z-bit: what people read and price in, like 20z00.
  • Target T: the number the hash must not exceed. 20z00 maps to exactly 2^236.
  • Value D = 2^256 / T: the expected number of hashes, the work the note represents.

The map from Z-bit to target uses a fixed table of 100 integer scale factors, so every implementation agrees to the last bit. No floating point is ever involved. Code carries the weight, w = floor(2^384 / T), which is the value scaled up so it stays an integer.

Adding notes

Values add; labels do not. To combine notes, add their weights and read the total back as a Z-bit.

SumResult
20z00 + 20z0021z00: double the work is one more bit
1z00 + 2z002z58: 2 + 4 = 6, and log2 6 ≈ 2.58
2z01 + 2z013z00: targets round down

Because read-back labels are rounded, compare amounts by weight, never by label. Three rules keep sums honest: only one algorithm per sum, each proof counted once however many events carry it, and no floats.

Splitting a reward

When a reward is shared by work, everyone must get the same answer. Each recipient gets the floor of its share. The few leftover units go one each to the largest remainders, with ties to the smallest proof hash.

Example: 10 units between a 1z00 note (value 2) and a 2z00 note (value 4). The floors are 3 and 6, leaving 1 unit. The 2z00 note has the larger remainder, so the result is 3 and 7.

One algorithm at a time

34z10 in sha256d is not 34z10 in scrypt, just as $10 is not ¥10. Notes in different algorithms are never added together.

Try it
Z-bit converter

Turn a Z-bit into its target, expected hashes and weight, exactly.

Open

Next: Bindings →