common

package
v0.0.0-...-2fecb0d Latest Latest
Warning

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

Go to latest
Published: May 19, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbsolutePath

func AbsolutePath(Datadir string, filename string) string

AbsolutePath get absolute path

func BigD

func BigD(data []byte) *big.Int

BigD bytes to big

func BytesToBig

func BytesToBig(data []byte) *big.Int

BytesToBig bytes to big

func BytesToHexSting

func BytesToHexSting(bytes []byte) string

BytesToHexSting bytes to hex string

func BytesToHexString

func BytesToHexString(bytes []byte) string

BytesToHexString convert bytes to hex string

func BytesToInt64

func BytesToInt64(data []byte) int64

func CopyBytes

func CopyBytes(b []byte) (copiedBytes []byte)

CopyBytes Returns an exact copy of the provided bytes

func GenerateRandomBytes

func GenerateRandomBytes(bytes int) []byte

GenerateRandomBytes is to generate randorm bytes

func HexStringToBytes

func HexStringToBytes(hexstr string) []byte

HexStringToBytes hex string to bytes

func Int64ToBytes

func Int64ToBytes(data int64) []byte

func Ripemd160

func Ripemd160(bytes []byte) []byte

Ripemd160 Riple hash

func Sha256

func Sha256(in []byte) []byte

Sha256 SHA256 hash

func Sha512

func Sha512(in []byte) []byte

Sha512 SHA512 hash

func StrToSha256

func StrToSha256(str string) []byte

StrToSha256 string to SHA256

func StrToSha512

func StrToSha512(str string) []byte

StrToSha512 string to SHA256

Types

This section is empty.

Jump to

Keyboard shortcuts

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