util

package
v0.0.0-...-46cf522 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBlockLogger

func GetBlockLogger() loggo.Logger

func GetBlockchainLogger

func GetBlockchainLogger() loggo.Logger

func GetBoosterLogger

func GetBoosterLogger() loggo.Logger

func GetMainLogger

func GetMainLogger() loggo.Logger

func GetMinerLogger

func GetMinerLogger(id string) loggo.Logger

func GetShortIdentity

func GetShortIdentity(address rsa.PublicKey) string

func GetShortedUniqueId

func GetShortedUniqueId() string

func GetTempLogger

func GetTempLogger() loggo.Logger

func GetUserLogger

func GetUserLogger(id string) loggo.Logger

func Hash

func Hash(c interface{}) string

func HashBytes

func HashBytes(c [config.HashSize]byte) string

func Sign

func Sign(message []byte, priv *rsa.PrivateKey) ([]byte, error)

func VerifySignature

func VerifySignature(message []byte, signature []byte, pub *rsa.PublicKey) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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