utils

package
v0.0.0-...-da22cf9 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfirmSigPrefix = []byte("confirmation signatures")
View Source
var RootHashPrefix = []byte("root hash")

Functions

func GenerateAddress

func GenerateAddress() common.Address

func GetIndex

func GetIndex(index int64) int64

helper function for tests

func PrivKeyToAddress

func PrivKeyToAddress(p *ecdsa.PrivateKey) common.Address

func SignHash

func SignHash(data []byte) []byte

func ValidAddress

func ValidAddress(addr common.Address) bool

func ZeroAddress

func ZeroAddress(addr common.Address) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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