ecmh

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: MIT, Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultisetHash

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

MultisetHash is a multiset hash based on ECMH implementated using ristretto points.

func NewMultisetHash

func NewMultisetHash() *MultisetHash

NewMultisetHash creates a new multiset hash.

func (*MultisetHash) Difference

func (h *MultisetHash) Difference(other *MultisetHash)

Difference computes the diff between two multisets.

func (*MultisetHash) Insert

func (h *MultisetHash) Insert(p *ristretto.Point)

Insert inserts a new item (point) into the multiset hash.

func (*MultisetHash) InsertAll

func (h *MultisetHash) InsertAll(ps []*ristretto.Point)

InsertAll inserts all items (points) into the multiset hash.

func (*MultisetHash) Remove

func (h *MultisetHash) Remove(p *ristretto.Point)

Remove removes an item (point) from the multiset hash.

func (*MultisetHash) RemoveAll

func (h *MultisetHash) RemoveAll(ps []*ristretto.Point)

RemoveAll removes all items (points) from the multiset hash.

func (*MultisetHash) String

func (h *MultisetHash) String() string

String returns the string representation of the multiset hash.

func (*MultisetHash) Union

func (h *MultisetHash) Union(other *MultisetHash)

Union unions two multisets.

Jump to

Keyboard shortcuts

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