multiplicity

Crates.iomultiplicity
lib.rsmultiplicity
version0.1.1
sourcesrc
created_at2022-03-29 20:04:14.912438
updated_at2022-04-04 23:02:11.282913
descriptionA simple additively homomorphic multiset hash function
homepage
repositoryhttps://github.com/proxima-one/multiplicity/
max_upload_size
id558768
size8,339
Sebastien La Duca (Sladuca)

documentation

README

multiplicity

Crates.io Documentation

This library provides a generic implementation of MSet-Mu-Hash from Clarke et. al's incremental multiset hash function paper. The implementation has not been autided, so use it at your own risk.

See the docs or check out tests in lib.rs for example usage.

Multisets

In this library, we interpret union of a multiset to mean that the multiplicity of each element in the union is the sum of its multiplicites in the inputs. We interpret "difference" to mean that the multiplicity of each element in the difference to be the difference between its multiplicities in the inputs.

It's worth noting that our intepretation of "difference" necessarily allows multisets to have negative multiplicities. This is weird, but it's quite useful when trying to commit to "state deltas" instead of entire states.

Commit count: 12

cargo fmt