common

package
v0.0.0-...-b6f7943 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2017 License: MIT Imports: 4 Imported by: 1

Documentation

Overview

Package common contains functions and types common throughout this project.

A bunch of unlabeled byte arrays will get confusing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base58Decode

func Base58Decode(input []byte) []byte

func Base58Encode

func Base58Encode(input []byte) []byte

func IntToHex

func IntToHex(num int64) []byte

func ReverseBytes

func ReverseBytes(data []byte)

Types

type Address

type Address []byte

Addresses should be length less than 34, but it's variable

func (Address) String

func (a Address) String() string

Get string of Address

type Hash

type Hash [32]byte

Hashes should be 32 bytes

func (Hash) Bytes

func (h Hash) Bytes() []byte

Explicitly get the internal byte slice

func (Hash) String

func (h Hash) String() string

Get the string representation of the underlying hash

Jump to

Keyboard shortcuts

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