base58

package
v0.0.0-...-613b6e9 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2016 License: BSD-3-Clause, MIT, MIT Imports: 2 Imported by: 1

Documentation

Overview

Package base58 implements a human-friendly base58 encoding.

As opposed to base64 and friends, base58 is typically used to convert integers. You can use big.Int.SetBytes to convert arbitrary bytes to an integer first, and big.Int.Bytes the other way around.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeToBig

func DecodeToBig(src []byte) (*big.Int, error)

Decode a big integer from the bytes. Returns an error on corrupt input.

func EncodeBig

func EncodeBig(dst []byte, src *big.Int) []byte

Encode encodes src, appending to dst. Be sure to use the returned new value of dst.

Types

type CorruptInputError

type CorruptInputError int64

func (CorruptInputError) Error

func (e CorruptInputError) Error() string

Jump to

Keyboard shortcuts

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