Alphabet
untyped stringAlphabet is the Bitcoin Base58 alphabet.
Value
"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"
Encode
func(input []uint8) stringEncode converts a byte slice to its Base58 string representation. Algorithm: treat the input as a big base-256 integer and repeatedly convert it into base-58 digits via a carry loop, most-significant digit first. Each leading zero byte becomes a leading '1'.
- OID
- 070df9…16ae:3
Encode details
Decode
func(s string) []uint8Decode converts a Base58 string back to the original byte slice. It returns nil if the string contains a character outside the alphabet. Algorithm: the mirror of Encode — treat the string as a big base-58 integer and convert it back to base-256 bytes with a carry loop. Each leading '1' becomes a leading zero byte.
- OID
- 070df9…16ae:5
Decode details
IsValid
func(s string) boolIsValid reports whether every character of s belongs to the Base58 alphabet.
- OID
- 070df9…16ae:6
IsValid details
Render
func(path string) stringRender 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.
- OID
- 070df9…16ae:7
Render details
renderHome
func() string- OID
- 070df9…16ae:8
renderHome details
renderHex
func(arg string) string- OID
- 070df9…16ae:9
renderHex details
byteList
func(b []uint8) stringbyteList renders a byte slice as a compact space-separated hex list.
- OID
- 070df9…16ae:10