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

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

bech32demo/v0 package

Overview

Package bech32demo is a small gnoweb demo of the Bech32 and Bech32m codec provided by the p/moul/x/daily/bech32(/p/moul/x/daily/bech32/v0) library: it takes a real gno.land address apart, shows the BIP-173 and BIP-350 test vectors side by side, and reproduces the length-extension weakness that is the whole reason the second variant exists.

It contains no codec logic of its own. Stateless, so Render is deterministic.

Function

Render

func Render(path string) string
Ask AI Claude ChatGPT

Render renders the demo for gnoweb.

Example
1Render("")        / Render("/")  -> the full demo
2Render("/<string>")              -> decode that string

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1magld5ptgzaktqcexxq0pgq5lmdf0kz6re8hlv/x/daily/bech32demo/v0.Render()"

Result