utils

package
v0.0.0-...-509fca3 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2019 License: GPL-3.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hash

type Hash [32]byte

func BigToHash

func BigToHash(big *big.Int) *Hash

func NewHash

func NewHash(src []byte) *Hash

func StringToHash

func StringToHash(hash string) (*Hash, error)

func (*Hash) Big

func (hash *Hash) Big() *big.Int

func (*Hash) Bytes

func (hash *Hash) Bytes() []byte

func (*Hash) IsEqual

func (hash *Hash) IsEqual(otherHash *Hash) bool

func (*Hash) String

func (hash *Hash) String() string

Jump to

Keyboard shortcuts

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