logscan

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: CC0-1.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const HashSize = 5 // ceil(ln(N / P) / ln(256))

N = 1e9 (Expected number of entries) P = 0.001 (Desired false-positive probability)

Variables

This section is empty.

Functions

func BitmaskContains

func BitmaskContains(bitmask, v int) bool

func CalcHash

func CalcHash(features [][]byte, bitmask int) []byte

func GenerateSearchHashes

func GenerateSearchHashes(featureFilters [][][]byte, bitmask int) map[string]struct{}

func SelectSearchBitmask

func SelectSearchBitmask(featureFilters [][][]byte, maxIterators uint) int

Types

type KeccakState added in v1.1.0

type KeccakState interface {
	hash.Hash
	Read([]byte) (int, error)
}

Jump to

Keyboard shortcuts

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