/usr/include/bitcoin/bitcoin.hpp is in libbitcoin-dev 2.0-2.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 | /*
* Copyright (c) 2011-2013 libbitcoin developers (see AUTHORS)
*
* This file is part of libbitcoin.
*
* libbitcoin is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License with
* additional permissions to the one published by the Free Software
* Foundation, either version 3 of the License, or (at your option)
* any later version. For more information see LICENSE.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef LIBBITCOIN_BITCOIN_HPP
#define LIBBITCOIN_BITCOIN_HPP
/**
* @mainpage libbitcoin API dox
*
* @section intro_sec Introduction
*
* libbitcoin is a bitcoin library targeted towards high end use.
* The library places a heavy focus around asychronicity. This enables a
* big scope for future scalability as each component has its own
* thread pool. By increasing the number of threads for that component
* the library is able to scale outwards across CPU cores. This will be
* vital in the future as the demands of the bitcoin network grow.
*
* Another core design principle is libbitcoin is not a framework, but
* a toolkit. Frameworks hinder development during the latter stages of
* a development cycle, enforce one style of coding and do not work well
* with other frameworks. By contrast, we have gone to great pains to make
* libbitcoin function as an independent set of mutual components with no
* dependencies between them.
*
* @section overview_sec Overview
*
* Broadly speaking the main services in libbitcoin can be divided down
* three lines.
*
* @subsection network Network services
*
* These services are concerned with the network side of things.
*
* - @link libbitcoin::channel channel @endlink
* - @link libbitcoin::network network @endlink
* - @link libbitcoin::protocol protocol @endlink
* - @link libbitcoin::hosts hosts @endlink
* - @link libbitcoin::handshake handshake @endlink
*
* @subsection blockchain Blockchain service
*
* Bitcoin's blockchain is usually disk oriented. Backends all implement
* the blockchain interface allowing programs to utilise backends using the
* same code.
*
* - @link libbitcoin::blockchain blockchain @endlink (abstract interface
for blockchain backends)
* - @link libbitcoin::bdb_blockchain bdb_blockchain @endlink
* - @link libbitcoin::leveldb_blockchain leveldb_blockchain @endlink
*
* @subsection supporting Supporting services
*
* These services utilise other services and provide additional
* functionality. They can be thought of as composed services.
*
* - @link libbitcoin::poller poller @endlink
* - @link libbitcoin::transaction_pool transaction_pool @endlink
* - @link libbitcoin::session session @endlink
*
* @section primitive Primitive
*
* libbitcoin operates around primitives. Each primitive corresponds to
* one of the messages in the bitcoin network protocol.
*
* These primitives make up the corpus of libbitcoin.
*
* - @link libbitcoin::version_type version_type @endlink
* - @link libbitcoin::verack_type verack_type @endlink
* - @link libbitcoin::address_type address_type @endlink
* - @link libbitcoin::inventory_type inventory_type @endlink
* - @link libbitcoin::get_data_type get_data_type @endlink
* - @link libbitcoin::get_blocks_type get_blocks_type @endlink
* - @link libbitcoin::transaction_type transaction_type @endlink
* - @link libbitcoin::block_type block_type @endlink
* - @link libbitcoin::get_address_type get_address_type @endlink
* - @link libbitcoin::ping_type ping_type @endlink
* - @link libbitcoin::pong_type pong_type @endlink
*
* @section base Foundational
*
* These classes provide foundational functionality that is widely used.
*
* - @link libbitcoin::serializer serializer @endlink /
* @link libbitcoin::deserializer deserializer @endlink
* - @link libbitcoin::script script @endlink
* - @link libbitcoin::payment_address payment_address @endlink
* - @link libbitcoin::elliptic_curve_key elliptic_curve_key @endlink
* - @link libbitcoin::big_number big_number @endlink
* - @link libbitcoin::threadpool threadpool @endlink
*
* @section useful-funcs Useful functions
*
* In accordance with C++ principles of encapsulation, operations which
* wrap or compose other operations are not provided as member functions,
* but as free functions.
*
* This minimises intrusion of class interfaces and provides a clear
* separation as a matter of API design choice.
*
* @subsection transaction Transaction
*
* - @link libbitcoin::hash_transaction hash_transaction @endlink
* - @link libbitcoin::generate_merkle_root generate_merkle_root @endlink
* - @link libbitcoin::previous_output_is_null previous_output_is_null @endlink
* - @link libbitcoin::is_coinbase is_coinbase @endlink
* - @link libbitcoin::total_output_value total_output_value @endlink
*
* @subsection block Block
*
* - @link libbitcoin::hash_block_header hash_block_header @endlink
* - @link libbitcoin::block_value block_value @endlink
* - @link libbitcoin::block_work block_work @endlink
* - @link libbitcoin::block_locator_indices block_locator_indices @endlink
* - @link libbitcoin::genesis_block genesis_block @endlink
*
* @subsection blockchain Blockchain
*
* - @link libbitcoin::fetch_block fetch_block @endlink
*
* @subsection format Format
*
* - @link libbitcoin::encode_hex pretty_hex @endlink
* - @link libbitcoin::decode_hex bytes_from_pretty @endlink
* - @link libbitcoin::decode_hex_digest hash_from_pretty @endlink
* - @link libbitcoin::extend_data extend_data @endlink
* - @link libbitcoin::cast_chunk cast_chunk @endlink
* - @link libbitcoin::uncast_chunk uncast_chunk @endlink
*
* @subsection hashing Hashing
*
* - @link libbitcoin::generate_ripemd_hash generate_ripemd_hash @endlink
* - @link libbitcoin::generate_sha256_hash generate_sha256_hash @endlink
* - @link libbitcoin::generate_sha256_checksum generate_sha256_checksum @endlink
*
* @subsection base58 Base58
*
* - @link libbitcoin::encode_base58 encode_base58 @endlink
* - @link libbitcoin::decode_base58 decode_base58 @endlink
*
* @author Amir Taaki <amir@unsystem.net>
*
*/
// Convenience header that includes everything
// Not to be used internally. For API users.
#include <bitcoin/error.hpp>
#include <bitcoin/address.hpp>
#include <bitcoin/network/channel.hpp>
#include <bitcoin/network/shared_const_buffer.hpp>
#include <bitcoin/network/network.hpp>
#include <bitcoin/network/hosts.hpp>
#include <bitcoin/network/handshake.hpp>
#include <bitcoin/block.hpp>
#include <bitcoin/session.hpp>
#include <bitcoin/poller.hpp>
#include <bitcoin/format.hpp>
#include <bitcoin/validate.hpp>
#include <bitcoin/constants.hpp>
#include <bitcoin/getx_responder.hpp>
#include <bitcoin/types.hpp>
#include <bitcoin/primitives.hpp>
#include <bitcoin/blockchain/organizer.hpp>
#include <bitcoin/blockchain/blockchain.hpp>
#include <bitcoin/utility/async_parallel.hpp>
#include <bitcoin/utility/elliptic_curve_key.hpp>
#include <bitcoin/utility/assert.hpp>
#include <bitcoin/utility/ripemd.hpp>
#include <bitcoin/utility/logger.hpp>
#include <bitcoin/utility/sha256.hpp>
#include <bitcoin/utility/base58.hpp>
#include <bitcoin/utility/big_number.hpp>
#include <bitcoin/utility/serializer.hpp>
#include <bitcoin/utility/subscriber.hpp>
#include <bitcoin/utility/weak_bind.hpp>
#include <bitcoin/utility/mnemonic.hpp>
#include <bitcoin/script.hpp>
#include <bitcoin/transaction.hpp>
#include <bitcoin/transaction_pool.hpp>
#include <bitcoin/transaction_indexer.hpp>
#include <bitcoin/network/protocol.hpp>
#include <bitcoin/threadpool.hpp>
#ifdef LEVELDB_ENABLED
#include <bitcoin/blockchain/leveldb_blockchain.hpp>
#endif
namespace bc = libbitcoin;
#endif
|