minhash

package
v0.0.0-...-83e8365 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCSHAKERandomSignature

func GetCSHAKERandomSignature(size, length int) ([][]byte, error)

Just get random signature if you don't have one or don't care.

Types

type CShakeHashFamily

type CShakeHashFamily struct {
	// Output lentgh that will be taken from each function in family
	HashOutputLength int
	// contains filtered or unexported fields
}

CHAKE based family of hash functions

func NewCShakeHashFamily

func NewCShakeHashFamily(signature [][]byte, hashOutputLength int) (*CShakeHashFamily, error)

func (*CShakeHashFamily) MinHash

func (hf *CShakeHashFamily) MinHash(dataParts [][]byte) ([]byte, error)

type MinHasher

type MinHasher interface {
	MinHash(dataParts [][]byte) ([]byte, error)
}

Jump to

Keyboard shortcuts

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