# `gno.land/p/moul/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 `1`s. Ported from `mr-tron/base58` / `btcutil/base58`. ```go import "gno.land/p/moul/x/daily/b58/v0" s := b58.Encode([]byte("hello")) // "Cn8eVZg" b := b58.Decode(s) // []byte("hello") (nil if s has a non-alphabet char) ``` **Live demo:** [`r/moul/x/daily/b58demo`](https://github.com/moul/gno-contracts/tree/main/r/moul/x/daily/b58demo/v0) ยท render it at [`/r/moul/x/daily/b58demo/v0`](https://gno.land/r/moul/x/daily/b58demo/v0). --- 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. > ๐Ÿงช **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](https://github.com/moul/gno-contracts/blob/main/DISCLAIMER.md).