common

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteToHash

func ByteToHash(data []byte) (hash types.Hash)

func HashToByte

func HashToByte(hash types.Hash) []byte

func HeaderDigest

func HeaderDigest(header *types.Header) (hash types.Hash)

func HeaderHash

func HeaderHash(block *types.Block) types.Hash

func Sum

func Sum(bz []byte) []byte

Sum returns the first 32 bytes of hash of the bz.

func TxHash

func TxHash(tx *types.Transaction) types.Hash

Types

type RefAddress

type RefAddress struct {
	Addr types.Address
}

func NewRefAddress

func NewRefAddress(addr types.Address) *RefAddress

func (*RefAddress) Address

func (self *RefAddress) Address() types.Address

Jump to

Keyboard shortcuts

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