hasher

package
v1.17.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: Apache-2.0, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hasher

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

Hasher takes in an ordered series of data and hashes it together

func NewHasher

func NewHasher() *Hasher

NewHasher creates a new Hasher

func (*Hasher) Bytes

func (h *Hasher) Bytes(bs []byte)

Bytes adds a byte slice to the data to be hashed

func (*Hasher) Hash

func (h *Hasher) Hash() []byte

Hash returns the hash value of the provided data

func (*Hasher) Int

func (h *Hasher) Int(i uint64)

Int adds a uint64 to the data to be hashed

Jump to

Keyboard shortcuts

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