keccak256

package
v0.0.0-...-7b0d77e Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hash

func Hash(bs ...[]byte) (ret *common.Hash)

func HashAndReturnByValue

func HashAndReturnByValue(bs ...[]byte) (ret common.Hash)

func HashView

func HashView(bytes []byte) (ret *common.Hash)

func InitPool

func InitPool(size uint64)

func ReturnHasherToPool

func ReturnHasherToPool(hasher *Hasher)

Types

type Hasher

type Hasher struct {
	// contains filtered or unexported fields
}

func GetHasherFromPool

func GetHasherFromPool() (ret *Hasher)

func (*Hasher) Hash

func (self *Hasher) Hash() *common.Hash

func (*Hasher) HashAndReturnByValue

func (self *Hasher) HashAndReturnByValue() (ret common.Hash)

func (*Hasher) Init

func (self *Hasher) Init() *Hasher

func (*Hasher) Reset

func (self *Hasher) Reset()

func (*Hasher) Write

func (self *Hasher) Write(b ...byte)

Jump to

Keyboard shortcuts

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