base58

package
v0.0.0-...-1bafbc7 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2014 License: ISC Imports: 2 Imported by: 0

Documentation

Overview

Package base58 provides base58-check encoding. The alphabet is modifyiable for

Base58 Usage

To decode a base58 string:

rawData := base58.Base58Decode(encodedData)

Similarly, to encode the same data:

encodedData := base58.Base58Encode(rawData)

Index

Constants

View Source
const BTCAlphabet = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"

alphabet is the modified base58 alphabet used by Bitcoin.

View Source
const FlickrAlphabet = "123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"

Variables

This section is empty.

Functions

func Base58Decode

func Base58Decode(b string) []byte

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

func Base58DecodeAlphabet

func Base58DecodeAlphabet(b, alphabet string) []byte

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

func Base58Encode

func Base58Encode(b []byte) string

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

func Base58EncodeAlphabet

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

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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