hash

package
v3.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hash

type Hash []byte

func Decode

func Decode(hash string) (Hash, error)

func Encode

func Encode(d []byte) Hash

func (Hash) Equal

func (h Hash) Equal(other Hash) bool

func (Hash) String

func (h Hash) String() string

type Pair

type Pair []byte

Pair is an intermidiate type to pair to hashes together from left to right.

func (Pair) With

func (p Pair) With(h Hash) Hash

With returns a new Hash with the given hash appended to the right and rehashed.

Jump to

Keyboard shortcuts

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