encoding

package
v0.0.0-...-25c81e3 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2018 License: ISC Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckDecode

func CheckDecode(input string, versionLen int) ([]byte, []byte, error)

CheckDecode decodes the version and payload out of the input base58 string

func CheckEncode

func CheckEncode(version, input []byte) string

CheckEncode encodes the input data bytes prepended by the given version prefix bound to the given mode into a base58 string

func PrivateKeyToWIF

func PrivateKeyToWIF(priv []byte) string

PrivateKeyToWIF encodes the given **uncompressed** private key byte sequence into wif format

func PrivateKeyToWIFCompressed

func PrivateKeyToWIFCompressed(priv []byte) string

PrivateKeyToWIFCompressed encodes the given **compressed** private key byte sequence into wif format

func PublicKeyToAddress

func PublicKeyToAddress(pub []byte) string

PublicKeyToAddress converts the public key stream into the corresponding base58-encoded address

func WIFToPrivateKey

func WIFToPrivateKey(wif string) ([]byte, error)

WIFToPrivateKey just reverses the processing done by @PrivateKeyToWIF/@ PrivateKeyToWIFCompressed

Types

This section is empty.

Jump to

Keyboard shortcuts

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