2021-05-04 18:13:33 -07:00
|
|
|
// Copyright (c) 2021 The Bitcoin Core developers
|
|
|
|
// Distributed under the MIT software license, see the accompanying
|
|
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
2021-11-12 10:19:33 +01:00
|
|
|
#ifndef BITCOIN_NODE_MINISKETCHWRAPPER_H
|
|
|
|
#define BITCOIN_NODE_MINISKETCHWRAPPER_H
|
2021-05-04 18:13:33 -07:00
|
|
|
|
|
|
|
#include <minisketch.h>
|
2021-11-12 10:59:36 +01:00
|
|
|
|
2021-05-04 18:13:33 -07:00
|
|
|
#include <cstddef>
|
|
|
|
#include <cstdint>
|
|
|
|
|
2021-11-12 10:06:00 -05:00
|
|
|
namespace node {
|
2021-05-04 18:13:33 -07:00
|
|
|
/** Wrapper around Minisketch::Minisketch(32, implementation, capacity). */
|
|
|
|
Minisketch MakeMinisketch32(size_t capacity);
|
|
|
|
/** Wrapper around Minisketch::CreateFP. */
|
|
|
|
Minisketch MakeMinisketch32FP(size_t max_elements, uint32_t fpbits);
|
2021-11-12 10:06:00 -05:00
|
|
|
} // namespace node
|
2021-05-04 18:13:33 -07:00
|
|
|
|
2021-11-12 10:19:33 +01:00
|
|
|
#endif // BITCOIN_NODE_MINISKETCHWRAPPER_H
|