repo_id stringlengths 0 42 | file_path stringlengths 15 97 | content stringlengths 2 2.41M | __index_level_0__ int64 0 0 |
|---|---|---|---|
bitcoin/src/wallet | bitcoin/src/wallet/test/db_tests.cpp | // Copyright (c) 2018-2022 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <boost/test/unit_test.hpp>
#include <test/util/setup_common.h>
#include <util/check.h>
#include <util/fs.h>
#includ... | 0 |
bitcoin/src/wallet | bitcoin/src/wallet/test/init_test_fixture.cpp | // Copyright (c) 2018-2022 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <common/args.h>
#include <univalue.h>
#include <util/chaintype.h>
#include <util/check.h>
#include <util/fs.h>
#inc... | 0 |
bitcoin/src/wallet | bitcoin/src/wallet/test/scriptpubkeyman_tests.cpp | // Copyright (c) 2020-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.
#include <key.h>
#include <test/util/setup_common.h>
#include <script/solver.h>
#include <wallet/scriptpubkeyman.h>
#include ... | 0 |
bitcoin/src/wallet | bitcoin/src/wallet/test/ismine_tests.cpp | // Copyright (c) 2017-2022 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <key.h>
#include <key_io.h>
#include <node/context.h>
#include <script/script.h>
#include <script/solver.h>
#include... | 0 |
bitcoin/src/wallet | bitcoin/src/wallet/test/wallet_test_fixture.h | // Copyright (c) 2016-2022 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_WALLET_TEST_WALLET_TEST_FIXTURE_H
#define BITCOIN_WALLET_TEST_WALLET_TEST_FIXTURE_H
#include <test/util/setu... | 0 |
bitcoin/src/wallet | bitcoin/src/wallet/test/wallet_transaction_tests.cpp | // 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.
#include <wallet/transaction.h>
#include <wallet/test/wallet_test_fixture.h>
#include <boost/test/unit_test.hpp>
namespace wall... | 0 |
bitcoin/src/wallet | bitcoin/src/wallet/test/feebumper_tests.cpp | // Copyright (c) 2022 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or https://www.opensource.org/licenses/mit-license.php.
#include <consensus/validation.h>
#include <policy/policy.h>
#include <primitives/transaction.h>
#include <script/script.h>
#incl... | 0 |
bitcoin/src/wallet | bitcoin/src/wallet/test/wallet_tests.cpp | // Copyright (c) 2012-2022 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <wallet/wallet.h>
#include <future>
#include <memory>
#include <stdint.h>
#include <vector>
#include <addresstype.... | 0 |
bitcoin/src/wallet | bitcoin/src/wallet/test/coinselector_tests.cpp | // Copyright (c) 2017-2022 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <consensus/amount.h>
#include <node/context.h>
#include <policy/policy.h>
#include <primitives/transaction.h>
#inclu... | 0 |
bitcoin/src/wallet | bitcoin/src/wallet/test/init_tests.cpp | // Copyright (c) 2018-2022 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <boost/test/unit_test.hpp>
#include <common/args.h>
#include <noui.h>
#include <test/util/logging.h>
#include <test... | 0 |
bitcoin/src/wallet | bitcoin/src/wallet/test/spend_tests.cpp | // Copyright (c) 2021-2022 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <consensus/amount.h>
#include <policy/fees.h>
#include <script/solver.h>
#include <validation.h>
#include <wallet/co... | 0 |
bitcoin/src/wallet | bitcoin/src/wallet/test/group_outputs_tests.cpp | // Copyright (c) 2022 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or https://www.opensource.org/licenses/mit-license.php.
#include <test/util/setup_common.h>
#include <wallet/coinselection.h>
#include <wallet/spend.h>
#include <wallet/test/util.h>
#i... | 0 |
bitcoin/src/wallet | bitcoin/src/wallet/test/util.h | // Copyright (c) 2021-2022 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_WALLET_TEST_UTIL_H
#define BITCOIN_WALLET_TEST_UTIL_H
#include <addresstype.h>
#include <wallet/db.h>
#incl... | 0 |
bitcoin/src/wallet | bitcoin/src/wallet/test/rpc_util_tests.cpp | // Copyright (c) 2022 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <wallet/rpc/util.h>
#include <boost/test/unit_test.hpp>
namespace wallet {
BOOST_AUTO_TEST_SUITE(wallet_util_tests)
B... | 0 |
bitcoin/src/wallet | bitcoin/src/wallet/test/walletload_tests.cpp | // Copyright (c) 2022 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or https://www.opensource.org/licenses/mit-license.php.
#include <wallet/test/util.h>
#include <wallet/wallet.h>
#include <test/util/logging.h>
#include <test/util/setup_common.h>
#inc... | 0 |
bitcoin/src/wallet | bitcoin/src/wallet/test/init_test_fixture.h | // Copyright (c) 2018-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_WALLET_TEST_INIT_TEST_FIXTURE_H
#define BITCOIN_WALLET_TEST_INIT_TEST_FIXTURE_H
#include <interfaces/chain.h... | 0 |
bitcoin/src/wallet | bitcoin/src/wallet/test/psbt_wallet_tests.cpp | // Copyright (c) 2017-2022 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <key_io.h>
#include <util/bip32.h>
#include <util/strencodings.h>
#include <wallet/wallet.h>
#include <boost/test/u... | 0 |
bitcoin/src/wallet/test | bitcoin/src/wallet/test/fuzz/scriptpubkeyman.cpp | // Copyright (c) 2023-present The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <addresstype.h>
#include <chainparams.h>
#include <coins.h>
#include <key.h>
#include <primitives/transaction.h>
... | 0 |
bitcoin/src/wallet/test | bitcoin/src/wallet/test/fuzz/parse_iso8601.cpp | // Copyright (c) 2019-2022 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <test/fuzz/FuzzedDataProvider.h>
#include <test/fuzz/fuzz.h>
#include <util/time.h>
#include <wallet/rpc/util.h>
#i... | 0 |
bitcoin/src/wallet/test | bitcoin/src/wallet/test/fuzz/notifications.cpp | // Copyright (c) 2021-present The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <addresstype.h>
#include <common/args.h>
#include <consensus/amount.h>
#include <interfaces/chain.h>
#include <ke... | 0 |
bitcoin/src/wallet/test | bitcoin/src/wallet/test/fuzz/coincontrol.cpp | // Copyright (c) 2022 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <test/fuzz/FuzzedDataProvider.h>
#include <test/fuzz/fuzz.h>
#include <test/fuzz/util.h>
#include <test/util/setup_common... | 0 |
bitcoin/src/wallet/test | bitcoin/src/wallet/test/fuzz/fees.cpp | // Copyright (c) 2022 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <test/fuzz/FuzzedDataProvider.h>
#include <test/fuzz/fuzz.h>
#include <test/fuzz/util.h>
#include <test/util/setup_common... | 0 |
bitcoin/src/wallet/test | bitcoin/src/wallet/test/fuzz/coinselection.cpp | // Copyright (c) 2022 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <policy/feerate.h>
#include <policy/policy.h>
#include <primitives/transaction.h>
#include <test/fuzz/FuzzedDataProvider.... | 0 |
bitcoin/src/wallet | bitcoin/src/wallet/rpc/addresses.cpp | // Copyright (c) 2011-2022 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <core_io.h>
#include <key_io.h>
#include <rpc/util.h>
#include <script/script.h>
#include <script/solver.h>
#include... | 0 |
bitcoin/src/wallet | bitcoin/src/wallet/rpc/util.cpp | // Copyright (c) 2011-2022 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <wallet/rpc/util.h>
#include <common/url.h>
#include <rpc/util.h>
#include <util/any.h>
#include <util/translation.... | 0 |
bitcoin/src/wallet | bitcoin/src/wallet/rpc/encrypt.cpp | // Copyright (c) 2011-2022 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <rpc/util.h>
#include <wallet/rpc/util.h>
#include <wallet/wallet.h>
namespace wallet {
RPCHelpMan walletpassphras... | 0 |
bitcoin/src/wallet | bitcoin/src/wallet/rpc/coins.cpp | // Copyright (c) 2011-2022 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <core_io.h>
#include <hash.h>
#include <key_io.h>
#include <rpc/util.h>
#include <script/script.h>
#include <util/mo... | 0 |
bitcoin/src/wallet | bitcoin/src/wallet/rpc/signmessage.cpp | // Copyright (c) 2011-2022 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <key_io.h>
#include <rpc/util.h>
#include <util/message.h>
#include <wallet/rpc/util.h>
#include <wallet/wallet.h>
... | 0 |
bitcoin/src/wallet | bitcoin/src/wallet/rpc/backup.cpp | // Copyright (c) 2009-2022 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <chain.h>
#include <clientversion.h>
#include <core_io.h>
#include <hash.h>
#include <interfaces/chain.h>
#include <... | 0 |
bitcoin/src/wallet | bitcoin/src/wallet/rpc/wallet.h | // Copyright (c) 2016-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_WALLET_RPC_WALLET_H
#define BITCOIN_WALLET_RPC_WALLET_H
#include <span.h>
class CRPCCommand;
namespace wal... | 0 |
bitcoin/src/wallet | bitcoin/src/wallet/rpc/util.h | // Copyright (c) 2017-2022 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_WALLET_RPC_UTIL_H
#define BITCOIN_WALLET_RPC_UTIL_H
#include <rpc/util.h>
#include <script/script.h>
#includ... | 0 |
bitcoin/src/wallet | bitcoin/src/wallet/rpc/wallet.cpp | // Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2022 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <core_io.h>
#include <key_io.h>
#include <rpc/server.h>
#include <rpc/util.h>... | 0 |
bitcoin/src/wallet | bitcoin/src/wallet/rpc/transactions.cpp | // Copyright (c) 2011-2022 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <core_io.h>
#include <key_io.h>
#include <policy/rbf.h>
#include <rpc/util.h>
#include <util/vector.h>
#include <wal... | 0 |
bitcoin/src/wallet | bitcoin/src/wallet/rpc/spend.cpp | // Copyright (c) 2011-2022 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <consensus/validation.h>
#include <core_io.h>
#include <key_io.h>
#include <policy/policy.h>
#include <rpc/rawtransa... | 0 |
bitcoin/src | bitcoin/src/index/blockfilterindex.cpp | // Copyright (c) 2018-2022 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <map>
#include <clientversion.h>
#include <common/args.h>
#include <dbwrapper.h>
#include <hash.h>
#include <index/... | 0 |
bitcoin/src | bitcoin/src/index/blockfilterindex.h | // Copyright (c) 2018-2022 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_INDEX_BLOCKFILTERINDEX_H
#define BITCOIN_INDEX_BLOCKFILTERINDEX_H
#include <attributes.h>
#include <blockfil... | 0 |
bitcoin/src | bitcoin/src/index/base.cpp | // Copyright (c) 2017-2022 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <chainparams.h>
#include <common/args.h>
#include <index/base.h>
#include <interfaces/chain.h>
#include <kernel/chai... | 0 |
bitcoin/src | bitcoin/src/index/disktxpos.h | // Copyright (c) 2019-2020 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_INDEX_DISKTXPOS_H
#define BITCOIN_INDEX_DISKTXPOS_H
#include <flatfile.h>
#include <serialize.h>
struct CDi... | 0 |
bitcoin/src | bitcoin/src/index/coinstatsindex.h | // Copyright (c) 2020-2022 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_INDEX_COINSTATSINDEX_H
#define BITCOIN_INDEX_COINSTATSINDEX_H
#include <crypto/muhash.h>
#include <index/bas... | 0 |
bitcoin/src | bitcoin/src/index/txindex.h | // Copyright (c) 2017-2022 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_INDEX_TXINDEX_H
#define BITCOIN_INDEX_TXINDEX_H
#include <index/base.h>
static constexpr bool DEFAULT_TXIND... | 0 |
bitcoin/src | bitcoin/src/index/coinstatsindex.cpp | // Copyright (c) 2020-2022 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <chainparams.h>
#include <coins.h>
#include <common/args.h>
#include <crypto/muhash.h>
#include <index/coinstatsinde... | 0 |
bitcoin/src | bitcoin/src/index/txindex.cpp | // Copyright (c) 2017-2022 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <index/txindex.h>
#include <clientversion.h>
#include <common/args.h>
#include <index/disktxpos.h>
#include <loggin... | 0 |
bitcoin/src | bitcoin/src/index/base.h | // Copyright (c) 2017-2022 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_INDEX_BASE_H
#define BITCOIN_INDEX_BASE_H
#include <dbwrapper.h>
#include <interfaces/chain.h>
#include <uti... | 0 |
bitcoin/src | bitcoin/src/ipc/interfaces.cpp | // Copyright (c) 2021-2022 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <common/system.h>
#include <interfaces/init.h>
#include <interfaces/ipc.h>
#include <ipc/capnp/protocol.h>
#include ... | 0 |
bitcoin/src | bitcoin/src/ipc/protocol.h | // 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_IPC_PROTOCOL_H
#define BITCOIN_IPC_PROTOCOL_H
#include <interfaces/init.h>
#include <functional>
#include <memor... | 0 |
bitcoin/src | bitcoin/src/ipc/process.cpp | // Copyright (c) 2021-2022 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <ipc/process.h>
#include <ipc/protocol.h>
#include <mp/util.h>
#include <tinyformat.h>
#include <util/fs.h>
#include... | 0 |
bitcoin/src | bitcoin/src/ipc/context.h | // 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_IPC_CONTEXT_H
#define BITCOIN_IPC_CONTEXT_H
namespace ipc {
//! Context struct used to give IPC protocol implemen... | 0 |
bitcoin/src | bitcoin/src/ipc/process.h | // 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_IPC_PROCESS_H
#define BITCOIN_IPC_PROCESS_H
#include <util/fs.h>
#include <memory>
#include <string>
namespace ... | 0 |
bitcoin/src | bitcoin/src/ipc/exception.h | // 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_IPC_EXCEPTION_H
#define BITCOIN_IPC_EXCEPTION_H
#include <stdexcept>
namespace ipc {
//! Exception class thrown ... | 0 |
bitcoin/src/ipc | bitcoin/src/ipc/capnp/protocol.h | // 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_IPC_CAPNP_PROTOCOL_H
#define BITCOIN_IPC_CAPNP_PROTOCOL_H
#include <memory>
namespace ipc {
class Protocol;
name... | 0 |
bitcoin/src/ipc | bitcoin/src/ipc/capnp/init.capnp | # 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.
@0xf2c5cfa319406aa6;
using Cxx = import "/capnp/c++.capnp";
$Cxx.namespace("ipc::capnp::messages");
using Proxy = import "/mp/proxy... | 0 |
bitcoin/src/ipc | bitcoin/src/ipc/capnp/echo.capnp | # 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.
@0x888b4f7f51e691f7;
using Cxx = import "/capnp/c++.capnp";
$Cxx.namespace("ipc::capnp::messages");
using Proxy = import "/mp/proxy... | 0 |
bitcoin/src/ipc | bitcoin/src/ipc/capnp/context.h | // 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_IPC_CAPNP_CONTEXT_H
#define BITCOIN_IPC_CAPNP_CONTEXT_H
#include <ipc/context.h>
namespace ipc {
namespace capnp... | 0 |
bitcoin/src/ipc | bitcoin/src/ipc/capnp/init-types.h | // 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_IPC_CAPNP_INIT_TYPES_H
#define BITCOIN_IPC_CAPNP_INIT_TYPES_H
#include <ipc/capnp/echo.capnp.proxy-types.h>
#end... | 0 |
bitcoin/src/ipc | bitcoin/src/ipc/capnp/protocol.cpp | // 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.
#include <interfaces/init.h>
#include <ipc/capnp/context.h>
#include <ipc/capnp/init.capnp.h>
#include <ipc/capnp/init.capnp.proxy... | 0 |
bitcoin/src | bitcoin/src/minisketch/configure.ac | AC_INIT([minisketch], [0.0.1], [http://github.com/sipa/minisketch/])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AC_PREREQ(2.60)
AC_CONFIG_SRCDIR([src/minisketch.cpp])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([build-aux/m4])
AM_INIT_AUTOMAKE([subdir-objects foreign])
LT_INIT
LT_LANG([C++])
AC_LAN... | 0 |
bitcoin/src | bitcoin/src/minisketch/sources.mk | # - All variables are namespaced with MINISKETCH_ to avoid colliding with
# downstream makefiles.
# - All Variables ending in _HEADERS or _SOURCES confuse automake, so the
# _INT postfix is applied.
# - Convenience variables, for example a MINISKETCH_FIELDS_DIR should not be used
# as they interfere with au... | 0 |
bitcoin/src | bitcoin/src/minisketch/LICENSE | MIT License
Copyright (c) 2018 Pieter Wuille, Greg Maxwell, Gleb Naumenko
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy... | 0 |
bitcoin/src | bitcoin/src/minisketch/Makefile.am | ACLOCAL_AMFLAGS = -I build-aux/m4
AM_CXXFLAGS = $(WARN_CXXFLAGS) $(NOWARN_CXXFLAGS)
include sources.mk
include_HEADERS = $(MINISKETCH_DIST_HEADERS_INT)
noinst_HEADERS = $(MINISKETCH_LIB_HEADERS_INT) $(MINISKETCH_FIELD_GENERIC_HEADERS_INT) $(MINISKETCH_FIELD_CLMUL_HEADERS_INT)
LIBMINISKETCH = libminisketch.la
LIBMINI... | 0 |
bitcoin/src | bitcoin/src/minisketch/README.md | # Minisketch: a library for [BCH](https://en.wikipedia.org/wiki/BCH_code)-based set reconciliation
<img align="right" src="doc/minisketch-vs.png" />
`libminisketch` is an optimized standalone MIT-licensed library with C API for constructing and decoding *set sketches*, which can be used for compact set reconciliation ... | 0 |
bitcoin/src | bitcoin/src/minisketch/.cirrus.yml | env:
BUILD: check
HOST:
MAKEFLAGS: -j4
BENCH: yes
TESTRUNS:
EXEC_CMD:
ENABLE_FIELDS:
cat_logs_snippet: &CAT_LOGS
on_failure:
cat_test_log_script:
- cat test-suite.log || true
cat_config_log_script:
- cat config.log || true
cat_test_env_script:
- cat test_env.log || true
... | 0 |
bitcoin/src | bitcoin/src/minisketch/autogen.sh | #!/bin/sh
# Copyright (c) 2013-2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
set -e
srcdir="$(dirname $0)"
cd "$srcdir"
if [ -z ${LIBTOOLIZE} ] && GLIBTOOLIZE="`which glibtoolize 2>/dev/null`"; t... | 0 |
bitcoin/src/minisketch/build-aux | bitcoin/src/minisketch/build-aux/m4/ax_check_preproc_flag.m4 | # ===========================================================================
# https://www.gnu.org/software/autoconf-archive/ax_check_preproc_flag.html
# ===========================================================================
#
# SYNOPSIS
#
# AX_CHECK_PREPROC_FLAG(FLAG, [ACTION-SUCCESS], [ACTION-FAILURE], [EXTR... | 0 |
bitcoin/src/minisketch/build-aux | bitcoin/src/minisketch/build-aux/m4/ax_check_link_flag.m4 | # ===========================================================================
# https://www.gnu.org/software/autoconf-archive/ax_check_link_flag.html
# ===========================================================================
#
# SYNOPSIS
#
# AX_CHECK_LINK_FLAG(FLAG, [ACTION-SUCCESS], [ACTION-FAILURE], [EXTRA-FL... | 0 |
bitcoin/src/minisketch/build-aux | bitcoin/src/minisketch/build-aux/m4/ax_check_compile_flag.m4 | # ===========================================================================
# https://www.gnu.org/software/autoconf-archive/ax_check_compile_flag.html
# ===========================================================================
#
# SYNOPSIS
#
# AX_CHECK_COMPILE_FLAG(FLAG, [ACTION-SUCCESS], [ACTION-FAILURE], [EXTR... | 0 |
bitcoin/src/minisketch/build-aux | bitcoin/src/minisketch/build-aux/m4/ax_cxx_compile_stdcxx.m4 | # ===========================================================================
# https://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx.html
# ===========================================================================
#
# SYNOPSIS
#
# AX_CXX_COMPILE_STDCXX(VERSION, [ext|noext], [mandatory|optional])
#
#... | 0 |
bitcoin/src/minisketch | bitcoin/src/minisketch/ci/linux-debian.Dockerfile | FROM debian:stable
RUN dpkg --add-architecture i386
RUN dpkg --add-architecture s390x
RUN apt-get update
# dkpg-dev: to make pkg-config work in cross-builds
RUN apt-get install --no-install-recommends --no-upgrade -y \
git ca-certificates \
make automake libtool pkg-config dpkg-dev valgrind qemu-user ... | 0 |
bitcoin/src/minisketch | bitcoin/src/minisketch/ci/cirrus.sh | #!/bin/sh
set -e
set -x
export LC_ALL=C
env >> test_env.log
$CC -v || true
valgrind --version || true
./autogen.sh
FIELDS=
if [ -n "$ENABLE_FIELDS" ]; then
FIELDS="--enable-fields=$ENABLE_FIELDS"
fi
./configure --host="$HOST" --enable-benchmark="$BENCH" $FIELDS
# We have set "-j<n>" in MAKEFLAGS.
make
# Pri... | 0 |
bitcoin/src/minisketch | bitcoin/src/minisketch/include/minisketch.h | #ifndef _MINISKETCH_H_
#define _MINISKETCH_H_ 1
#include <stdint.h>
#include <stdlib.h>
#ifdef _MSC_VER
# include <BaseTsd.h>
typedef SSIZE_T ssize_t;
#else
# include <unistd.h>
#endif
#ifndef MINISKETCH_API
# if defined(_WIN32)
# ifdef MINISKETCH_BUILD
# define MINISKETCH_API __declspec(dllexport)
# else
#... | 0 |
bitcoin/src/minisketch | bitcoin/src/minisketch/tests/pyminisketch.py | #!/usr/bin/env python3
# Copyright (c) 2020 Pieter Wuille
# Distributed under the MIT software license, see the accompanying
# file LICENSE or http://www.opensource.org/licenses/mit-license.php.
"""Native Python (slow) reimplementation of libminisketch' algorithms."""
import random
import unittest
# Irreducible poly... | 0 |
bitcoin/src/minisketch | bitcoin/src/minisketch/doc/log2_factorial.sage | import bisect
INPUT_BITS = 32
TABLE_BITS = 5
INT_BITS = 64
EXACT_FPBITS = 256
F = RealField(100) # overkill
def BestOverApproxInvLog2(mulof, maxd):
"""
Compute denominator of an approximation of 1/log(2).
Specifically, find the value of d (<= maxd, and a multiple of mulof)
such that ceil(d/log(2))/d... | 0 |
bitcoin/src/minisketch | bitcoin/src/minisketch/doc/math.md | # The mathematics of Minisketch sketches
This is an unconventional mathematical overview of the PinSketch algorithm without references to coding theory<sup>[[1]](#myfootnote1)</sup>.
## Set sketches
A sketch, for the purpose of this description, can be seen as a "set checksum" with two peculiar properties:
* Sketch... | 0 |
bitcoin/src/minisketch | bitcoin/src/minisketch/doc/gen_basefpbits.sage | # Require exact values up to
FPBITS = 256
# Overkill accuracy
F = RealField(400)
def BaseFPBits(bits, capacity):
return bits * capacity - int(ceil(F(log(sum(binomial(2**bits - 1, i) for i in range(capacity+1)), 2))))
def Log2Factorial(capacity):
return int(floor(log(factorial(capacity), 2)))
print("uint64_t... | 0 |
bitcoin/src/minisketch | bitcoin/src/minisketch/doc/example.c | /**********************************************************************
* Copyright (c) 2018 Pieter Wuille, Greg Maxwell, Gleb Naumenko *
* Distributed under the MIT software license, see the accompanying *
* file LICENSE or http://www.opensource.org/licenses/mit-license.php.*
*******************************... | 0 |
bitcoin/src/minisketch | bitcoin/src/minisketch/doc/gen_params.sage | #!/usr/bin/env sage
r"""
Generate finite field parameters for minisketch.
This script selects the finite fields used by minisketch
for various sizes and generates the required tables for
the implementation.
The output (after formatting) can be found in src/fields/*.cpp.
"""
B.<b> = GF(2)
P.<p> = B[]
def apply_map... | 0 |
bitcoin/src/minisketch | bitcoin/src/minisketch/doc/protocoltips.md | # Tips for designing protocols using `libminisketch`
Sending a sketch is less efficient than just sending your whole set with efficient entropy coding if the number of differences is larger than *log<sub>2</sub>( 2<sup>b</sup> choose set_size ) / b*.
In most applications your set can be hashed to entries just large e... | 0 |
bitcoin/src/minisketch | bitcoin/src/minisketch/doc/moduli.md | These are the irreducible polynomials over *GF(2)* used to represent field elements:
* *x<sup>2</sup> + x + 1*
* *x<sup>3</sup> + x + 1*
* *x<sup>4</sup> + x + 1*
* *x<sup>5</sup> + x<sup>2</sup> + 1*
* *x<sup>6</sup> + x + 1*
* *x<sup>7</sup> + x + 1*
* *x<sup>8</sup> + x<sup>4</sup> + x<sup>3</sup> + x + 1*
* *x<sup... | 0 |
bitcoin/src/minisketch | bitcoin/src/minisketch/src/minisketch.cpp | /**********************************************************************
* Copyright (c) 2018 Pieter Wuille, Greg Maxwell, Gleb Naumenko *
* Distributed under the MIT software license, see the accompanying *
* file LICENSE or http://www.opensource.org/licenses/mit-license.php.*
*******************************... | 0 |
bitcoin/src/minisketch | bitcoin/src/minisketch/src/fielddefines.h | /**********************************************************************
* Copyright (c) 2021 Cory Fields *
* Distributed under the MIT software license, see the accompanying *
* file LICENSE or http://www.opensource.org/licenses/mit-license.php.*
*******************************... | 0 |
bitcoin/src/minisketch | bitcoin/src/minisketch/src/int_utils.h | /**********************************************************************
* Copyright (c) 2018 Pieter Wuille, Greg Maxwell, Gleb Naumenko *
* Distributed under the MIT software license, see the accompanying *
* file LICENSE or http://www.opensource.org/licenses/mit-license.php.*
*******************************... | 0 |
bitcoin/src/minisketch | bitcoin/src/minisketch/src/lintrans.h | /**********************************************************************
* Copyright (c) 2018 Pieter Wuille, Greg Maxwell, Gleb Naumenko *
* Distributed under the MIT software license, see the accompanying *
* file LICENSE or http://www.opensource.org/licenses/mit-license.php.*
*******************************... | 0 |
bitcoin/src/minisketch | bitcoin/src/minisketch/src/test.cpp | /**********************************************************************
* Copyright (c) 2018,2021 Pieter Wuille, Greg Maxwell, Gleb Naumenko *
* Distributed under the MIT software license, see the accompanying *
* file LICENSE or http://www.opensource.org/licenses/mit-license.php.*
*******************************... | 0 |
bitcoin/src/minisketch | bitcoin/src/minisketch/src/false_positives.h | /**********************************************************************
* Copyright (c) 2020 Pieter Wuille, Greg Maxwell, Gleb Naumenko *
* Distributed under the MIT software license, see the accompanying *
* file LICENSE or http://www.opensource.org/licenses/mit-license.php.*
*******************************... | 0 |
bitcoin/src/minisketch | bitcoin/src/minisketch/src/sketch_impl.h | /**********************************************************************
* Copyright (c) 2018 Pieter Wuille, Greg Maxwell, Gleb Naumenko *
* Distributed under the MIT software license, see the accompanying *
* file LICENSE or http://www.opensource.org/licenses/mit-license.php.*
*******************************... | 0 |
bitcoin/src/minisketch | bitcoin/src/minisketch/src/util.h | /**********************************************************************
* Copyright (c) 2018 Pieter Wuille, Greg Maxwell, Gleb Naumenko *
* Distributed under the MIT software license, see the accompanying *
* file LICENSE or http://www.opensource.org/licenses/mit-license.php.*
*******************************... | 0 |
bitcoin/src/minisketch | bitcoin/src/minisketch/src/sketch.h | /**********************************************************************
* Copyright (c) 2018 Pieter Wuille, Greg Maxwell, Gleb Naumenko *
* Distributed under the MIT software license, see the accompanying *
* file LICENSE or http://www.opensource.org/licenses/mit-license.php.*
*******************************... | 0 |
bitcoin/src/minisketch | bitcoin/src/minisketch/src/bench.cpp | /**********************************************************************
* Copyright (c) 2018 Pieter Wuille, Greg Maxwell, Gleb Naumenko *
* Distributed under the MIT software license, see the accompanying *
* file LICENSE or http://www.opensource.org/licenses/mit-license.php.*
*******************************... | 0 |
bitcoin/src/minisketch/src | bitcoin/src/minisketch/src/fields/generic_5bytes.cpp | /**********************************************************************
* Copyright (c) 2018 Pieter Wuille, Greg Maxwell, Gleb Naumenko *
* Distributed under the MIT software license, see the accompanying *
* file LICENSE or http://www.opensource.org/licenses/mit-license.php.*
*******************************... | 0 |
bitcoin/src/minisketch/src | bitcoin/src/minisketch/src/fields/generic_4bytes.cpp | /**********************************************************************
* Copyright (c) 2018 Pieter Wuille, Greg Maxwell, Gleb Naumenko *
* Distributed under the MIT software license, see the accompanying *
* file LICENSE or http://www.opensource.org/licenses/mit-license.php.*
*******************************... | 0 |
bitcoin/src/minisketch/src | bitcoin/src/minisketch/src/fields/clmul_7bytes.cpp | /**********************************************************************
* Copyright (c) 2018 Pieter Wuille, Greg Maxwell, Gleb Naumenko *
* Distributed under the MIT software license, see the accompanying *
* file LICENSE or http://www.opensource.org/licenses/mit-license.php.*
*******************************... | 0 |
bitcoin/src/minisketch/src | bitcoin/src/minisketch/src/fields/clmul_6bytes.cpp | /**********************************************************************
* Copyright (c) 2018 Pieter Wuille, Greg Maxwell, Gleb Naumenko *
* Distributed under the MIT software license, see the accompanying *
* file LICENSE or http://www.opensource.org/licenses/mit-license.php.*
*******************************... | 0 |
bitcoin/src/minisketch/src | bitcoin/src/minisketch/src/fields/generic_common_impl.h | /**********************************************************************
* Copyright (c) 2018 Pieter Wuille, Greg Maxwell, Gleb Naumenko *
* Distributed under the MIT software license, see the accompanying *
* file LICENSE or http://www.opensource.org/licenses/mit-license.php.*
*******************************... | 0 |
bitcoin/src/minisketch/src | bitcoin/src/minisketch/src/fields/generic_8bytes.cpp | /**********************************************************************
* Copyright (c) 2018 Pieter Wuille, Greg Maxwell, Gleb Naumenko *
* Distributed under the MIT software license, see the accompanying *
* file LICENSE or http://www.opensource.org/licenses/mit-license.php.*
*******************************... | 0 |
bitcoin/src/minisketch/src | bitcoin/src/minisketch/src/fields/generic_2bytes.cpp | /**********************************************************************
* Copyright (c) 2018 Pieter Wuille, Greg Maxwell, Gleb Naumenko *
* Distributed under the MIT software license, see the accompanying *
* file LICENSE or http://www.opensource.org/licenses/mit-license.php.*
*******************************... | 0 |
bitcoin/src/minisketch/src | bitcoin/src/minisketch/src/fields/generic_3bytes.cpp | /**********************************************************************
* Copyright (c) 2018 Pieter Wuille, Greg Maxwell, Gleb Naumenko *
* Distributed under the MIT software license, see the accompanying *
* file LICENSE or http://www.opensource.org/licenses/mit-license.php.*
*******************************... | 0 |
bitcoin/src/minisketch/src | bitcoin/src/minisketch/src/fields/clmul_common_impl.h | /**********************************************************************
* Copyright (c) 2018 Pieter Wuille, Greg Maxwell, Gleb Naumenko *
* Distributed under the MIT software license, see the accompanying *
* file LICENSE or http://www.opensource.org/licenses/mit-license.php.*
*******************************... | 0 |
bitcoin/src/minisketch/src | bitcoin/src/minisketch/src/fields/clmul_4bytes.cpp | /**********************************************************************
* Copyright (c) 2018 Pieter Wuille, Greg Maxwell, Gleb Naumenko *
* Distributed under the MIT software license, see the accompanying *
* file LICENSE or http://www.opensource.org/licenses/mit-license.php.*
*******************************... | 0 |
bitcoin/src/minisketch/src | bitcoin/src/minisketch/src/fields/clmul_5bytes.cpp | /**********************************************************************
* Copyright (c) 2018 Pieter Wuille, Greg Maxwell, Gleb Naumenko *
* Distributed under the MIT software license, see the accompanying *
* file LICENSE or http://www.opensource.org/licenses/mit-license.php.*
*******************************... | 0 |
bitcoin/src/minisketch/src | bitcoin/src/minisketch/src/fields/generic_6bytes.cpp | /**********************************************************************
* Copyright (c) 2018 Pieter Wuille, Greg Maxwell, Gleb Naumenko *
* Distributed under the MIT software license, see the accompanying *
* file LICENSE or http://www.opensource.org/licenses/mit-license.php.*
*******************************... | 0 |
bitcoin/src/minisketch/src | bitcoin/src/minisketch/src/fields/generic_7bytes.cpp | /**********************************************************************
* Copyright (c) 2018 Pieter Wuille, Greg Maxwell, Gleb Naumenko *
* Distributed under the MIT software license, see the accompanying *
* file LICENSE or http://www.opensource.org/licenses/mit-license.php.*
*******************************... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.