Documentation ¶
Overview ¶
Package basex provides fast base encoding / decoding of any given alphabet using bitcoin style leading zero compression. It is a GO port of https://github.com/cryptocoinjs/base-x forked from eknkc/basex
Index ¶
- func B11Decode(s string) []byte
- func B11Encode(b []byte) string
- func B16Decode(s string) []byte
- func B16Encode(b []byte) string
- func B2Decode(s string) []byte
- func B2Encode(b []byte) string
- func B32Decode(s string) []byte
- func B32Encode(b []byte) string
- func B32zDecode(s string) []byte
- func B32zEncode(b []byte) string
- func B36Decode(s string) []byte
- func B36Encode(b []byte) string
- func B56Decode(s string) []byte
- func B56Encode(b []byte) string
- func B57Decode(s string) []byte
- func B57Encode(b []byte) string
- func B58Decode(s string) []byte
- func B58Encode(b []byte) string
- func B58fDecode(s string) []byte
- func B58fEncode(b []byte) string
- func B58rDecode(s string) []byte
- func B58rEncode(b []byte) string
- func B62Decode(s string) []byte
- func B62Encode(b []byte) string
- func B67Decode(s string) []byte
- func B67Encode(b []byte) string
- func B8Decode(s string) []byte
- func B8Encode(b []byte) string
- type Encoding
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Encoding ¶
type Encoding struct {
// contains filtered or unexported fields
}
Encoding is a custom base encoding defined by an alphabet. It should bre created using New function
func New ¶
New returns a custom base encoder defined by the alphabet string. The alphabet should contain non-repeating characters. Ordering is important. Example alphabets:
- base2: 01
- base16: 0123456789abcdef
- base32: 0123456789ABCDEFGHJKMNPQRSTVWXYZ
- base36: 0123456789abcdefghijklmnopqrstuvwxyz
- base58: 123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz
- base62: 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package base58 provides an API for working with modified base58 and Base58Check encodings.
|
Package base58 provides an API for working with modified base58 and Base58Check encodings. |
Package bech32 provides a Go implementation of the bech32 format specified in BIP 173.
|
Package bech32 provides a Go implementation of the bech32 format specified in BIP 173. |
Click to show internal directories.
Click to hide internal directories.