base58

package
Version: v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BTCAlphabet is the modified base58 alphabet used by Bitcoin.
	BTCAlphabet = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"
	// FlickrAlphabet is the modified base58 alphabet used by Flickr.
	FlickrAlphabet = "123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"
)

Variables

This section is empty.

Functions

func Decode

func Decode(b string) []byte

Decode decodes a modified base58 string to a byte slice, using BTCAlphabet

func DecodeAlphabet

func DecodeAlphabet(b, alphabet string) []byte

DecodeAlphabet decodes a modified base58 string to a byte slice, using alphabet.

func Encode

func Encode(b []byte) string

Encode encodes a byte slice to a modified base58 string, using BTCAlphabet

func EncodeAlphabet

func EncodeAlphabet(b []byte, alphabet string) string

EncodeAlphabet encodes a byte slice to a modified base58 string, using alphabet

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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