Test vectors
Warning
A machine-readable vector file with a published hash is not yet available. The vectors below are exact and can be checked by hand now.
Score (earlier drafts)
score_fp(β, txid) = floor(2^16 · 256^k · 2^256 / max(1, txid)), k = 0 for 80-bit, 1 for 88-bit.
| # | txid (integer or hex) |
k |
score_fp |
/ONE |
D = 1 |
D = 32 |
D = 1,024 |
|---|---|---|---|---|---|---|---|
| S1 | 03b4ed472bd5a7b80120409beab9d2e80976c33355b023cf43e56b632f1d834f |
0 | 4,526,130 | 69.0633 | pass | pass | fail |
| S2 | fa160ab0659890d7d6945f63fd84448b074f1592d476b4fed931254778cd57b4 |
1 | 17,173,954 | 262.0537 | pass | pass | fail |
| S3 | 2^251 |
0 | 2,097,152 | 32 | pass | pass | fail |
| S4 | 2^251 + 1 |
0 | 2,097,151 | 31.99998 | pass | fail | fail |
| S5 | 2^254 |
1 | 67,108,864 | 1,024 | pass | pass | pass |
| S6 | 2^254 + 1 |
1 | 67,108,863 | 1,023.99998 | pass | pass | fail |
| S7 | 2^256 − 1 |
0 | 65,536 | 1 | pass | fail | fail |
| S8 | 0 |
0 | 2^272 (via max(1, txid)) |
— | pass | pass | pass |
S2 uses the transaction ID of a real 88-bit spend only as a number; that transaction has no claim and is not a mint. S5–S6 assume an 88-bit lock; at 80 bits D = 1,024 is not allowed.
Check one yourself:
python3 -c "print((2**16 * 256**0 * 2**256) // (2**251 + 1))"
2097151
Leading zeros (Draft C)
Rule: int(txid) < 16^(64 − zeros), txid read in display order. Pending freeze, like all of Draft C (Constants).
| # | txid |
zeros |
Result |
|---|---|---|---|
| Z1 | 03b4ed472bd5a7b80120409beab9d2e80976c33355b023cf43e56b632f1d834f |
1 | pass |
| Z2 | same as Z1 | 2 | fail |
| Z3 | 0fff…ff (64 digits) |
1 | pass |
| Z4 | 1000…00 (64 digits) |
1 | fail |
| Z5 | 00ff…ff |
2 | pass |
| Z6 | 0100…00 |
2 | fail |
| Z7 | any | 0 | pass |
Z1 is the real test-network mint below, used here only as a number.
Wave and units (Draft C)
m = valid mints before this one (earlier blocks plus earlier in the same block). zeros is read once per block from m(h); R from the mint's own m.
| # | m |
wave | zeros |
R |
|---|---|---|---|---|
| W1 | 0 | 1 | 0 | 1,000 |
| W2 | 3,149 | 1 | 0 | 1,000 |
| W3 | 3,150 | 2 | 1 | 500 |
| W4 | 17,849 | 2 | 1 | 500 |
| W5 | 17,850 | 3 | 2 | 250 |
| W6 | 64,049 | 4 | 3 | 125 |
| W7 | 64,050 | 5 | 4 | 62 |
| W8 | 164,849 | 10 | 9 | 1 |
| W9 | 164,850 | — | — | rejected E09 |
W10, a block on the boundary. m(h) = 3,149, two valid candidates in the block. Both are judged with zeros = 0 (wave 1 at the start of the block). The first gets R = 1,000 (m = 3,149), the second R = 500 (m = 3,150).
Summing R over m = 0 … 164,849 gives 20,899,200.
python3 -c "
E=[3150,17850,38850,64050]+[64050+16800*i for i in range(1,7)]
print(sum(1000>>next(n for n,e in enumerate(E) if m<e) for m in range(E[-1])))"
20899200
Minimum level
D |
β_min |
|---|---|
| 1 | 80 |
| 255 | 80 |
| 256 | 88 |
| 1,024 | 88 |
Claim parsing
| # | Output scripts (in order) | Result |
|---|---|---|
| C1 | 0014…, 6a0b50515342024d5051534200 |
mint, ticker PQSB, target 0 |
| C2 | 0014…, 6a0b50515342024d5051534201 |
mint, target 1 → rejected E06 |
| C3 | 0014…, 6a0b50515342014d5051534200 |
first magic output has version 1 → other → E05 |
| C4 | 0014…, 6a0b50515342014d5051534200, 6a0b50515342024d5051534200 |
first magic output decides → E05 |
| C5 | 0014…, 6a4c0b50515342024d5051534200 (PUSHDATA1) |
not recognised; not a candidate (prefix test fails) |
| C6 | 6a0b50515342024d5051534200 only |
target 0 is the OP_RETURN → E06 |
Claim parsing, Format B
| # | Runestone output (first 6a5d output) |
Result |
|---|---|---|
| B1 | 6a5d087fd0a2cd92b4a013 |
mint, target 0, no companion |
| B2 | 6a5d0f7fd0a2cd92b4a01314a0e83b14d209 |
mint, target 0, companion id 980000:1234 |
| B3 | 6a5d0a7fd0a2cd92b4a0131600 (adds Pointer = 0, tag 22) |
valid runestone for Runes, but tag 22 is outside the whitelist → other → E05 |
| B4 | 6a5d087fd0a2cd92b4a093 (last LEB128 byte has the continuation bit) |
truncated (a cenotaph for Runes) → no claim; not a candidate |
| B5 | 6a5d097fd0a2cd92b4a01314 (tag 20 without value) |
odd integer count (a cenotaph for Runes) → no claim; not a candidate |
Transfers
| # | Inputs: value, marked | Outputs: value | Expected ranges | Burned |
|---|---|---|---|---|
| T1 | 1,000 [0,1000); 50,000 — |
600; 400; 49,520 | [0,600); [0,400); — |
0 |
| T2 | 50,000 —; 1,000 [0,1000) |
600; 400; 49,520 | —; —; [49,000, 49,520) |
480 |
| T3 | 1,000 [0,1000); 600 [0,600) |
1,200; 400 | [0,1200); [0,400) |
0 |
| T4 | 1,000 [0,1000) |
500; OP_RETURN 500 | [0,500); — |
500 |
| T5 | 1,000 [0,1000); 5,000 — |
700; 5,000 | [0,700); [0,300) |
0 |
T2 is T1 with the inputs swapped: the marked range sits at line offset [50,000, 51,000), only its first 520 satoshis fall inside output 2, and the rest falls into the fee. Unit inputs must come first.
A real mint (test network)
| Field | Value |
|---|---|
txid |
03b4ed472bd5a7b80120409beab9d2e80976c33355b023cf43e56b632f1d834f |
| level | 64 (scaled-down test level; not accepted under the frozen rules) |
| score | 69.0633 (k = 0 relative to the test base level) |
| witness items | 51 |
| claim | output 1 |
| units | output 0 receives [0, R) |