base58

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2026 License: MIT Imports: 2 Imported by: 419 modules, 551 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BTCAlphabet = NewAlphabet("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")

BTCAlphabet is the bitcoin base58 alphabet. Deprecated: use github.com/mr-tron/base58.BTCAlphabet instead.

View Source
var FlickrAlphabet = NewAlphabet("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ")

FlickrAlphabet is the flickr base58 alphabet. Deprecated: use github.com/mr-tron/base58.FlickrAlphabet instead.

Functions

func Decode

func Decode(str string) ([]byte, error)

Decode decodes the base58 encoded bytes. Deprecated: use github.com/mr-tron/base58.Decode instead.

func DecodeAlphabet

func DecodeAlphabet(str string, alphabet *Alphabet) ([]byte, error)

DecodeAlphabet decodes the base58 encoded bytes using the given b58 alphabet. Deprecated: use github.com/mr-tron/base58.DecodeAlphabet instead.

func Encode

func Encode(bin []byte) string

Encode encodes the passed bytes into a base58 encoded string. Deprecated: use github.com/mr-tron/base58.Encode instead.

func EncodeAlphabet

func EncodeAlphabet(bin []byte, alphabet *Alphabet) string

EncodeAlphabet encodes the passed bytes into a base58 encoded string with the passed alphabet. Deprecated: use github.com/mr-tron/base58.EncodeAlphabet instead.

func FastBase58Decoding

func FastBase58Decoding(str string) ([]byte, error)

FastBase58Decoding decodes the base58 encoded bytes. Deprecated: use github.com/mr-tron/base58.Decode instead.

func FastBase58DecodingAlphabet

func FastBase58DecodingAlphabet(str string, alphabet *Alphabet) ([]byte, error)

FastBase58DecodingAlphabet decodes the base58 encoded bytes using the given b58 alphabet. Deprecated: use github.com/mr-tron/base58.FastBase58DecodingAlphabet instead.

func FastBase58Encoding

func FastBase58Encoding(bin []byte) string

FastBase58Encoding encodes the passed bytes into a base58 encoded string. Deprecated: use github.com/mr-tron/base58.FastBase58Encoding instead.

func FastBase58EncodingAlphabet

func FastBase58EncodingAlphabet(bin []byte, alphabet *Alphabet) string

FastBase58EncodingAlphabet encodes the passed bytes into a base58 encoded string with the passed alphabet. Deprecated: use github.com/mr-tron/base58.FastBase58EncodingAlphabet instead.

func TrivialBase58Decoding

func TrivialBase58Decoding(str string) ([]byte, error)

TrivialBase58Decoding decodes the base58 encoded bytes (inefficiently). Deprecated: use github.com/mr-tron/base58.Decode instead.

func TrivialBase58DecodingAlphabet

func TrivialBase58DecodingAlphabet(str string, alphabet *Alphabet) ([]byte, error)

TrivialBase58DecodingAlphabet decodes the base58 encoded bytes (inefficiently) using the given b58 alphabet. Deprecated: use github.com/mr-tron/base58.FastBase58DecodingAlphabet instead.

func TrivialBase58Encoding

func TrivialBase58Encoding(a []byte) string

TrivialBase58Encoding encodes the passed bytes into a base58 encoded string (inefficiently). Deprecated: use github.com/mr-tron/base58.FastBase58Encoding instead.

func TrivialBase58EncodingAlphabet

func TrivialBase58EncodingAlphabet(a []byte, alphabet *Alphabet) string

TrivialBase58EncodingAlphabet encodes the passed bytes into a base58 encoded string (inefficiently) with the passed alphabet. Deprecated: use github.com/mr-tron/base58.FastBase58EncodingAlphabet instead.

Types

type Alphabet

type Alphabet struct {
	// contains filtered or unexported fields
}

Alphabet is a a b58 alphabet.\ Deprecated: use github.com/mr-tron/base58.Alphabet instead.

func NewAlphabet

func NewAlphabet(s string) *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. Deprecated: use github.com/mr-tron/base58.NewAlphabet instead.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL