mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-15 22:32:37 -03:00
20 lines
653 B
C++
20 lines
653 B
C++
// 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.
|
|
|
|
#ifndef BITCOIN_NODE_MINISKETCHWRAPPER_H
|
|
#define BITCOIN_NODE_MINISKETCHWRAPPER_H
|
|
|
|
#include <minisketch.h>
|
|
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
|
|
namespace node {
|
|
/** 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);
|
|
} // namespace node
|
|
|
|
#endif // BITCOIN_NODE_MINISKETCHWRAPPER_H
|