hash

package
v0.0.0-...-10b9c98 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashOf

func HashOf(data []byte) (h []byte)

HashOfBlock calcualtes the hash of the 'data' and returns it.

func HashStrngOf

func HashStrngOf(data string) (h []byte)

HashStringOf calcualtes the hash of the 'data' and returns it.

func HashStrngOfReturnHex

func HashStrngOfReturnHex(data string) (s string)

HashStringOfReturnHex calcualtes the hash of the 'data' and returns it.

func Keccak256

func Keccak256(data ...[]byte) []byte

Keccak256 use the Ethereum Keccak hasing fucntions to return a hash from a list of values.

Types

type BlockHashType

type BlockHashType []byte // Hash of data in block -- Eventually a Merkle hash

func (BlockHashType) MarshalJSON

func (ww BlockHashType) MarshalJSON() ([]byte, error)

func (*BlockHashType) UnmarshalJSON

func (ww *BlockHashType) UnmarshalJSON(b []byte) error

type MerkleHashType

type MerkleHashType []byte // Hash of data in block -- Eventually a Merkle hash

func (MerkleHashType) MarshalJSON

func (ww MerkleHashType) MarshalJSON() ([]byte, error)

func (*MerkleHashType) UnmarshalJSON

func (ww *MerkleHashType) UnmarshalJSON(b []byte) error

type SealType

type SealType []byte // Hash of data in block -- Eventually a Merkle hash

func (SealType) MarshalJSON

func (ww SealType) MarshalJSON() ([]byte, error)

func (*SealType) UnmarshalJSON

func (ww *SealType) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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