Versions in this module Expand all Collapse all v0 v0.25.0 Sep 3, 2024 Changes in this version + const KeySize + var ErrNTooBig = fmt.Errorf("N is too big to fit in uint32") + var ErrPTooBig = fmt.Errorf("P is too big to fit in uint32") + type Filter struct + func BuildGCSFilter(P uint8, M uint64, key [KeySize]byte, data [][]byte) (*Filter, error) + func FromBytes(N uint32, P uint8, M uint64, d []byte) (*Filter, error) + func FromNBytes(P uint8, M uint64, d []byte) (*Filter, error) + func (f *Filter) Bytes() ([]byte, error) + func (f *Filter) HashMatchAny(key [KeySize]byte, data [][]byte) (bool, error) + func (f *Filter) Match(key [KeySize]byte, data []byte) (bool, error) + func (f *Filter) MatchAny(key [KeySize]byte, data [][]byte) (bool, error) + func (f *Filter) N() uint32 + func (f *Filter) NBytes() ([]byte, error) + func (f *Filter) NPBytes() ([]byte, error) + func (f *Filter) P() uint8 + func (f *Filter) PBytes() ([]byte, error) + func (f *Filter) ZipMatchAny(key [KeySize]byte, data [][]byte) (bool, error) Other modules containing this package github.com/ltcmweb/ltcd/ltcutil