Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

v0 source realm

Package b58demo is a small gnoweb demo of the Base58 codec provided by the [p/moul/x/daily/b58](/p/moul/x/daily/b58)(...

Readme View source

gno.land/r/moul/x/daily/b58demo/v0

Interactive gnoweb demo of the p/moul/x/daily/b58 Base58 library — it renders the alphabet, a gallery of worked examples, and a hex → Base58 round-tripper. It has no codec logic of its own.

Append a hex string to the path to encode/round-trip it, e.g. /r/moul/x/daily/b58demo/v0:deadbeef.


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:

gno.land/r/moul/x/daily/b58demo/v0 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.

Overview

Package b58demo is a small gnoweb demo of the Base58 codec provided by the p/moul/x/daily/b58(/p/moul/x/daily/b58/v0) library: it renders the alphabet, a gallery of worked examples, and an interactive hex → Base58 round-tripper.

It contains no codec logic of its own — everything comes from `b58.Encode`, `b58.Decode` and `b58.Alphabet`.

Functions 1

func Render

1func Render(path string) string
source

Render produces the gnoweb Markdown view.

  • "/" → the alphabet + a small gallery of worked examples.
  • "/<hex>" → decode the hex input to bytes, show its Base58, and the hex-encoded decoded round-trip to prove Encode/Decode are inverse.

Imports 3

Source Files 3