minisketchwrapper.h raw
1 // Copyright (c) 2021-present The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5 #ifndef BITCOIN_NODE_MINISKETCHWRAPPER_H
6 #define BITCOIN_NODE_MINISKETCHWRAPPER_H
7
8 #include <minisketch.h>
9
10 #include <cstddef>
11 #include <cstdint>
12
13 namespace node {
14 /** Wrapper around Minisketch::Minisketch(32, implementation, capacity). */
15 Minisketch MakeMinisketch32(size_t capacity);
16 /** Wrapper around Minisketch::CreateFP. */
17 Minisketch MakeMinisketch32FP(size_t max_elements, uint32_t fpbits);
18 } // namespace node
19
20 #endif // BITCOIN_NODE_MINISKETCHWRAPPER_H
21