aboutsummaryrefslogtreecommitdiff
path: root/src/blockfilter.h
diff options
context:
space:
mode:
authorJim Posen <jimpo@coinbase.com>2018-01-23 16:25:21 -0800
committerJim Posen <jim.posen@gmail.com>2018-08-25 10:02:37 -0700
commitcf70b550054eed36f194eaa13f4a9cb31e32df38 (patch)
tree90ce9019d8e1b45bca1bae137aaf3ed70b9f58b7 /src/blockfilter.h
parentc454f0ac63c6028f54c7eb51683b3ccdb475b19b (diff)
downloadbitcoin-cf70b550054eed36f194eaa13f4a9cb31e32df38.tar.xz
blockfilter: Implement GCSFilter constructors.
Diffstat (limited to 'src/blockfilter.h')
-rw-r--r--src/blockfilter.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/blockfilter.h b/src/blockfilter.h
index c0bd69b332..7809e6875a 100644
--- a/src/blockfilter.h
+++ b/src/blockfilter.h
@@ -31,6 +31,11 @@ private:
uint64_t m_F; //!< Range of element hashes, F = N * M
std::vector<unsigned char> m_encoded;
+ /** Hash a data element to an integer in the range [0, N * M). */
+ uint64_t HashToRange(const Element& element) const;
+
+ std::vector<uint64_t> BuildHashedSet(const ElementSet& elements) const;
+
public:
/** Constructs an empty filter. */