func Render
Render renders the demo for gnoweb.
Package commitrevealdemo is a small gnoweb demo of the commit-reveal scheme provided by the [p/moul/x/daily/commitrev...
gno.land/r/moul/x/daily/commitrevealdemo/v0Live demo of p/moul/x/daily/commitreveal.
A thin, stateless realm: it holds no state of its own and contains none of the
library's logic — Render just exercises the package and shows the result.
Because it is stateless, the rendered page is identical on every call and on
every node.
Render it at /r/moul/x/daily/commitrevealdemo/v0.
The library README explains the design and the trade-offs; this realm is the worked example.
Identical behaviour to v0 apart from rendering, which now goes
through p/moul/kit/ui instead of the local short helper.
One address format. Eleven realms carried their own shortAddr with four different truncation rules, so the same account rendered differently depending on which realm you opened. ui.Addr is that decision made once: 8 leading characters, an ellipsis, 4 trailing, in backticks.
Visible change: the commitment truncation is now ui.ShortN, which cannot panic on a short input.
The rendering change means the output differs from v0, which under this repo's versioning rule is a compatibility change, hence a new version rather than an edit in place. v0 stays live and untouched.
Part of moul/gno-contracts — moul's versioned gno.land contracts. See the repository for the full catalog, build/test tooling, and usage.
Dependency graph:

🧪 Highly experimental — potentially vibe-coded. Not audited; may break, change, or be removed at any time. Do not use with anything of value. Full disclaimer: DISCLAIMER.
Package commitrevealdemo is a small gnoweb demo of the commit-reveal scheme provided by the p/moul/x/daily/commitreveal(/p/moul/x/daily/commitreveal/v0) library: the two phases, and what the salt is for.
It contains no crypto of its own. Stateless, so Render is deterministic — which is precisely what the library is for.