mirror of
https://github.com/luxfi/crypto.git
synced 2026-07-27 01:54:50 +00:00
15 lines
403 B
Go
15 lines
403 B
Go
// Copyright (C) 2019-2025, Lux Industries Inc All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package bloom
|
|
|
|
// BloomFilter is the interface for bloom filter implementations that support
|
|
// adding and checking raw byte slices
|
|
type BloomFilter interface {
|
|
// Add adds to filter, assumed thread safe
|
|
Add(...[]byte)
|
|
|
|
// Check checks filter, assumed thread safe
|
|
Check([]byte) bool
|
|
}
|