Documentation ¶
Overview ¶
Package base58 implementation ported from : https://github.com/mr-tron/base58
Index ¶
- func Decode(str string) ([]byte, error)
- func DecodeAlphabet(str string, alphabet *Alphabet) ([]byte, error)
- func Decoding(str string) ([]byte, error)
- func DecodingAlphabet(str string, alphabet *Alphabet) ([]byte, error)
- func Encode(bin []byte) (string, error)
- func EncodeAlphabet(bin []byte, alphabet *Alphabet) string
- func Encoding(bin []byte) (string, error)
- func EncodingAlphabet(bin []byte, alphabet *Alphabet) string
- type Alphabet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeAlphabet ¶
DecodeAlphabet decodes the base58 encoded bytes using the given b58 alphabet.
func DecodingAlphabet ¶
DecodingAlphabet decodes the base58 encoded bytes using the given b58 alphabet.
func EncodeAlphabet ¶
EncodeAlphabet encodes the passed bytes into a base58 encoded string with the passed alphabet.
func EncodingAlphabet ¶
EncodingAlphabet encodes the passed bytes into a base58 encoded string with the passed alphabet.
Types ¶
type Alphabet ¶
type Alphabet struct {
// contains filtered or unexported fields
}
Alphabet is a a b58 alphabet.
func NewAlphabet ¶
NewAlphabet creates a new alphabet from the passed string.
It returns an error if the passed string is not 58 bytes long or isn't valid ASCII.
Click to show internal directories.
Click to hide internal directories.