# Gnoël Twenty-four riddles, sealed guesses, and one very small VM. Gnoël is an Advent calendar for Gno-mes: the organizer opens each door with a transaction, and every opened door stays playable. GnoWeb serves the calendar, a page for each riddle, its public seals, and the Nice List. The [rich app](https://moul.github.io/gno-contracts/advent/) adds the wallet flow, personal progress, and a live calendar. [GnoWeb on Onyx](https://onyx.testnets.gno.land/r/g1f4k94fjje9tpeekkrnyv2qc7stwxdqp9vcfjg8/advent/v1) · [GnoWeb beta](https://gno-staging.moul.p2p.team/r/moul/advent/v1) · [Rich app beta](https://moul.github.io/gno-contracts/advent/?net=moul-dev) ## Play Connect Adena or use a local gnokey account. Get test GNOT from the [Onyx faucet](https://onyx.testnets.gno.land/faucet). Choose an open door and type an answer. Outer ASCII whitespace is ignored. Spelling, accents, and case matter. Each address can have one pending guess per door. A player can replace it before review. A miss allows a new guess. A solve earns one point and closes that door for the solver. The Nice List shows the first 24 scores, with address order breaking ties. A day’s solve count is the number of addresses that solved it. ## Open doors and review seals On Onyx, the dedicated organizer account is the testnet deployment account. On other chains, the organizer defaults to the home realm’s admin. The organizer can delegate door publishing and corrections through `SetPublisher` and delegate verdicts through `SetOracle`. Both roles initially belong to the organizer. The companion lives in [tools/gnoel](../../../tools/gnoel). It prints commands by default and invokes gnokey interactively with `-run`. Create a private key and its public companion outside the checkout: ```sh go -C tools tool gnoel keygen -key /path/to/private/gnoel.pem ``` Open a door with one transaction. The tool schedules the first review at the next midnight in Europe/Paris. Use absolute paths because Go executes the tool from `tools/`. ```sh go -C tools tool gnoel publish -day 1 -title 'A Tiny Runtime' \ -clue /path/to/door-01.txt -public /path/to/private/gnoel.pem.public -run ``` For a typo in an open door, send the corrected clue as a text file. The title, review schedule, oracle key, attempts, and scores are kept. ```sh go -C tools tool gnoel edit -day 1 -clue /path/to/door-01.txt -run ``` Keep a private solutions JSON file beside the PEM. Each entry contains the winning strings and the key used for that door. You can reuse the key across doors or rotate it for a new door. ```json { "1": {"key": "gnoel.pem", "answers": ["example answer", "accepted variant"]} } ``` Run the oracle at the end of the day and rerun it on subsequent days to catch late solves. Supply `-day N` to review only one door. Omit `-run` to inspect the proposed transactions. ```sh go -C tools tool gnoel review -solutions /path/to/private/solutions.json -run ``` For the GnoDev beta, add `-chain moulstaging-1 -rpc https://rpc.gno-staging.moul.p2p.team -realm gno.land/r/moul/advent/v1`. On a paused GnoDev, a review becomes available once a new block carries a timestamp past the cutoff. Use `-signer` for your gnokey name. A terminal-only player can use `gnoel seal -day N -address g1… -answer /path/to/guess.txt`. Add `-replace` for a pending guess. ## What the public sees The browser generates a fresh 32-byte random salt for every guess. SHA-256 binds the answer and salt to the network, realm, door, and wallet address. RSA-OAEP encrypts only the salt for the oracle, with the commitment as the OAEP label. The transaction contains the hash and ciphertext. The wallet sees those same fields. The oracle decrypts the salt and tests the organizer’s accepted strings against the commitment. It publishes only a verdict for each ID. Anyone can read the commitments and verdicts. The oracle’s attestation is trusted. The private key can reveal the salts, so keep it and the solutions file out of Git and retain them for late guesses. `Calendar()`, `Leaders()`, `Progress(address)`, and paginated `Attempts(day, start)` give clients a public view of the same state as GnoWeb. The oracle includes a fingerprint of each batch in its review transaction, so replacing a pending guess invalidates any review computed against the old seal. --- Part of **[moul/gno-contracts](https://github.com/moul/gno-contracts)** — moul's versioned gno.land contracts. See the repository for the full catalog, build/test tooling, and usage. **On mainnet:** [![deployment status](https://gnoscope.com/_badges/shield/status/r/moul/advent/v0?network=mainnet)](https://gnoscope.com/realm/r/moul/advent/v0) [![transactions](https://gnoscope.com/_badges/shield/txs/r/moul/advent/v0?network=mainnet)](https://gnoscope.com/realm/r/moul/advent/v0) [![unique callers](https://gnoscope.com/_badges/shield/users/r/moul/advent/v0?network=mainnet)](https://gnoscope.com/realm/r/moul/advent/v0) [![deployed revision](https://gnoscope.com/_badges/shield/version/r/moul/advent/v0?network=mainnet)](https://gnoscope.com/realm/r/moul/advent/v0) **Dependency graph:** ![gno.land/r/moul/advent/v0 dependency graph](https://raw.githubusercontent.com/moul/gno-contracts/main/_assets/gno.land/r/moul/advent/v0/deps.png) > ⚠️ **Disclaimer:** provided as-is, without warranty; not security-audited. Full disclaimer: [DISCLAIMER](https://github.com/moul/gno-contracts/blob/main/DISCLAIMER.md).