package base58
Import Path
github.com/mr-tron/base58/base58 (on go.dev)
Dependency Relation
imports 2 packages, and imported by 3 packages
Package-Level Type Names (only one)
Alphabet is a a b58 alphabet.
func NewAlphabet(s string) *Alphabet
func DecodeAlphabet(str string, alphabet *Alphabet) ([]byte, error)
func EncodeAlphabet(bin []byte, alphabet *Alphabet) string
func FastBase58DecodingAlphabet(str string, alphabet *Alphabet) ([]byte, error)
func FastBase58EncodingAlphabet(bin []byte, alphabet *Alphabet) string
func TrivialBase58DecodingAlphabet(str string, alphabet *Alphabet) ([]byte, error)
func TrivialBase58EncodingAlphabet(a []byte, alphabet *Alphabet) string
var BTCAlphabet *Alphabet
var FlickrAlphabet *Alphabet
Package-Level Functions (total 13)
Decode decodes the base58 encoded bytes.
DecodeAlphabet decodes the base58 encoded bytes using the given b58 alphabet.
Encode encodes the passed bytes into a base58 encoded string.
EncodeAlphabet encodes the passed bytes into a base58 encoded string with the
passed alphabet.
FastBase58Decoding decodes the base58 encoded bytes.
FastBase58DecodingAlphabet decodes the base58 encoded bytes using the given
b58 alphabet.
FastBase58Encoding encodes the passed bytes into a base58 encoded string.
FastBase58EncodingAlphabet encodes the passed bytes into a base58 encoded
string with the passed alphabet.
NewAlphabet creates a new alphabet from the passed string.
It panics if the passed string is not 58 bytes long or isn't valid ASCII.
TrivialBase58Decoding decodes the base58 encoded bytes (inefficiently).
TrivialBase58DecodingAlphabet decodes the base58 encoded bytes
(inefficiently) using the given b58 alphabet.
TrivialBase58Encoding encodes the passed bytes into a base58 encoded string
(inefficiently).
TrivialBase58EncodingAlphabet encodes the passed bytes into a base58 encoded
string (inefficiently) with the passed alphabet.
Package-Level Variables (total 2)
BTCAlphabet is the bitcoin base58 alphabet.
FlickrAlphabet is the flickr base58 alphabet.
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |