NetanyaHo-Ho-Ho

Christmas giveaway rules

The prize

Who is entered

A wallet that meets both conditions below, and is not one of the wallets left out further down.

1. Every door since its first, at least 20

2. It holds at least 100,000 $HOHOHO

Tickets

Who is left out

The draw

  1. 12:00 UTC, 25 December. We publish the entrants’ file, every entrant’s address and tickets, with its SHA-256 fingerprint. After that the file does not change.
  2. The seed. The blockhash of the first Solana mainnet block whose block time is 15:00:00 UTC on 25 December or later. Nobody can know it before then.
  3. The winners. A public script, giveaway-draw.mjs, turns the file and the seed into two different winners, drawn by tickets. Anyone can run it again on the same file and seed and get the same winners.
  4. From 15:00 UTC. The winners are announced, 5,000,000 $HOHOHO is sent to each from the giveaway wallet, and the transactions are posted.

How the script draws

  1. It prints the SHA-256 of the file exactly as published, to compare with the fingerprint.
  2. It reads each line’s address and tickets, and sorts the lines by address, character by character in ASCII order (digits, then capitals, then small letters), so the order of the lines in the file changes nothing.
  3. For the first winner it takes the SHA-256 of the text “blockhash:1:0” (the blockhash as Solana prints it), read as one 256-bit number. Divided by the total of the tickets, its remainder is the winning ticket, counted from 0. If the number is at least 2256 minus the remainder of 2256 divided by the total (the last stretch, which would favour low tickets), it takes “blockhash:1:1” instead, and so on; with tickets in the millions that practically never happens.
  4. Going down the sorted list, adding up tickets, the winner is the first wallet whose running total passes the winning ticket.
  5. That wallet leaves the list, and the second winner is drawn the same way from the rest, with “blockhash:2:0”.

What is kept

For each wallet that signs in on the calendar: its address, the doors it opened and when, and the balance read at each opening. No name, email or internet address is kept with them.