# SIGIL Draw Day rule Groups are drawn once, on Draw Day, 6 Nov 2026, and never change. A group belongs to the pilot's account, which is keyed by their X user id. No wallet is involved. 1. Seed. Before the draw, SIGIL published the commit: the SHA-256 of the secret seed's 64-character lowercase hex string, hashed as text (its UTF-8 bytes, not the 32 bytes the hex stands for). At the draw the seed is revealed on /verify. 2. Block. The block is the first Solana slot finalized at or after 2026-11-06T00:00:00Z: the lowest non-skipped slot whose blockTime is 1793923200 or later. 3. Eligible pilots. Every account claimed before 2026-11-06T00:00:00Z that had not withdrawn before that instant, ordered by serial. 4. Assignment. The eligible serials are shuffled with a Fisher-Yates shuffle driven by a SHA-256 counter stream keyed by drawSeed. Position i goes to group i mod 4, in the order Rampart (I), Vane (II), Anvil (III), Talon (IV). The groups are exactly balanced, within one pilot. 5. Claims after the instant. A pilot who claims at or after 2026-11-06T00:00:00Z gets the group at GROUPS[n mod 4], where n is the first 4 bytes of their claim hash read as a big-endian uint32 (the claim line in the encodings below). This keeps the groups roughly balanced and verifiable. ## Exact encodings ``` All hashes are SHA-256 over the UTF-8 bytes of an ASCII preimage; outputs are lowercase hex. seedHex = the committed seed, 64 lowercase hex characters (sha256(seedHex) = the commit) blockhash = the block's base58 blockhash exactly as getBlock returns it drawSeed = sha256("sigil-draw/0|" + seedHex + "|" + blockhash) block k = sha256("sigil-draw/0|shuffle|" + drawSeed + "|" + k) k = 0, 1, 2, ... in decimal words = each block split into 8 big-endian uint32, in order; blocks consumed in k order uniform(m): limit = 2^32 - (2^32 mod m); take words until w < limit; return w mod m shuffle = start from the eligible serials ascending; for i = n-1 down to 1: j = uniform(i+1); swap a[i], a[j] position = index in the shuffled list, from 0; group = GROUPS[position mod 4] claim = sha256("sigil-draw/0|claim|" + drawSeed + "|" + serial); group = GROUPS[uint32 of its first 4 bytes, big-endian, mod 4] serial = decimal, no leading zeros ``` GROUPS is, in order: rampart, vane, anvil, talon. ## Test vectors draw-vectors.json holds worked cases. Any implementation of the rule must reproduce them. scripts/frames/draw-verify.py is an independent reference checker. It uses only the Python 3 standard library, was written from this text, and checks every case, claim and invalid input in draw-vectors.json: `python3 -I scripts/frames/draw-verify.py` prints `ok`. To recheck the live draw, save the JSON from `/api/frames/draw` to a file and run `python3 -I scripts/frames/draw-verify.py --bundle draw.json --commit ` (`--commit` is optional). It rechecks the commit, the drawSeed, the full shuffle against every `groups` entry for the eligible serials, and every claim, and prints `ok` or the first mismatch. The commit is the sha256 of the seed's 64 character hex text, not of its 32 decoded bytes. Each case in draw-vectors.json carries its `commit`, and `commitRule` shows one seed with both values so you can see which one is the commit.