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.

/p/nym-moultest123/x/daily/b58/v0

Directory · 4 Files
README.md Open

gno.land/p/nym-moultest123/x/daily/b58/v0

Base58 (Bitcoin alphabet) codec — Encode, Decode, IsValid, Alphabet.

Pure byte-slice math (the classic div/mod-by-58 carry loop), no math/big; leading zero bytes ↔ leading 1s. Ported from mr-tron/base58 / btcutil/base58.

1import "gno.land/p/nym-moultest123/x/daily/b58/v0"
2
3s := b58.Encode([]byte("hello"))  // "Cn8eVZg"
4b := b58.Decode(s)                // []byte("hello") (nil if s has a non-alphabet char)

Live demo: r/moul/x/daily/b58demo · render it at /r/nym-moultest123/x/daily/b58demo/v0.


Part of moul/gno-contracts — moul's versioned gno.land contracts. See the repository for the full catalog, build/test tooling, and usage.

🧪 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.