Documentation ¶ Index ¶ Constants func Decode(in string) ([]byte, error) func Encode(in []byte) string type Alphabet func BTCAlphabet() Alphabet func FlikrAlphabet() Alphabet func RippleAlphabet() Alphabet type Encoder func New(alphabet Alphabet) Encoder Constants ¶ View Source const ( ErrZeroInputLength = errors.Const("input data has zero length") ErrHighBit = errors.Const("high-bit set on invalid digit") ErrOutputNumber = errors.Const("output number too big") ) Variables ¶ This section is empty. Functions ¶ func Decode ¶ func Decode(in string) ([]byte, error) Decode - decode base58 with default encoder func Encode ¶ func Encode(in []byte) string Encode - encode base58 with default encoder Types ¶ type Alphabet ¶ type Alphabet interface { EncodeSymbols() [58]byte DecodeSymbols() [128]int8 } Alphabet - base58 alphabet func BTCAlphabet ¶ func BTCAlphabet() Alphabet func FlikrAlphabet ¶ func FlikrAlphabet() Alphabet func RippleAlphabet ¶ func RippleAlphabet() Alphabet type Encoder ¶ type Encoder interface { Encode(in []byte) string Decode(str string) ([]byte, error) } Encoder - base58 encoder func New ¶ func New(alphabet Alphabet) Encoder Source Files ¶ View all Source files alphabet.gobase58.goencoder.go Click to show internal directories. Click to hide internal directories.