hash

package
v0.0.0-...-c5170ef Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2022 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorLengthHash   = errors.New("length of hash should be 20 bytes")
	ErrorNotHexString = errors.New("value is not a hex string")
)

Functions

This section is empty.

Types

type Hash

type Hash [20]byte

func Calculate

func Calculate(b []byte) Hash

func Decode

func Decode(value string) (Hash, error)

Jump to

Keyboard shortcuts

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