Removed //! spare line at end of headers
This commit is contained in:
parent
819eaa95bc
commit
802af8e417
|
@ -3,7 +3,6 @@
|
|||
//! BIP152 Compact Blocks
|
||||
//!
|
||||
//! Implementation of compact blocks data structure and algorithms.
|
||||
//!
|
||||
|
||||
use core::{convert, fmt, mem};
|
||||
#[cfg(feature = "std")]
|
||||
|
|
|
@ -36,7 +36,6 @@
|
|||
//! // get this block
|
||||
//! }
|
||||
//! ```
|
||||
//!
|
||||
|
||||
use core::cmp::{self, Ordering};
|
||||
use core::fmt::{self, Display, Formatter};
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
//!
|
||||
//! Implementation of BIP32 hierarchical deterministic wallets, as defined
|
||||
//! at <https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki>.
|
||||
//!
|
||||
|
||||
use core::ops::Index;
|
||||
use core::str::FromStr;
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
//! which commits to an earlier block to form the blockchain. This
|
||||
//! module describes structures and functions needed to describe
|
||||
//! these blocks and the blockchain.
|
||||
//!
|
||||
|
||||
use core::fmt;
|
||||
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
//! This module provides various constants relating to the blockchain and
|
||||
//! consensus code. In particular, it defines the genesis block and its
|
||||
//! single transaction.
|
||||
//!
|
||||
|
||||
use hashes::{sha256d, Hash};
|
||||
use hex_lit::hex;
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
//!
|
||||
//! There are two types of lock time: lock-by-blockheight and lock-by-blocktime, distinguished by
|
||||
//! whether `LockTime < LOCKTIME_THRESHOLD`.
|
||||
//!
|
||||
|
||||
use core::cmp::Ordering;
|
||||
use core::fmt;
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
// SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
//! Provides absolute and relative locktimes.
|
||||
//!
|
||||
|
||||
pub mod absolute;
|
||||
pub mod relative;
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
//!
|
||||
//! There are two types of lock time: lock-by-blockheight and lock-by-blocktime, distinguished by
|
||||
//! whether bit 22 of the `u32` consensus value is set.
|
||||
//!
|
||||
|
||||
#[cfg(feature = "ordered")]
|
||||
use core::cmp::Ordering;
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
//!
|
||||
//! This module defines structures and functions for storing the blocks and
|
||||
//! transactions which make up the Bitcoin system.
|
||||
//!
|
||||
|
||||
pub mod block;
|
||||
pub mod constants;
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
//!
|
||||
//! Bitcoin's script uses a stack-based assembly language. This module defines
|
||||
//! all of the opcodes for that language.
|
||||
//!
|
||||
|
||||
#![allow(non_camel_case_types)]
|
||||
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
//! signatures ensures that coins cannot be spent by unauthorized parties.
|
||||
//!
|
||||
//! This module provides the structures and functions needed to support transactions.
|
||||
//!
|
||||
|
||||
use core::{cmp, fmt, str};
|
||||
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
//! Witness
|
||||
//!
|
||||
//! This module contains the [`Witness`] struct and related methods to operate on it
|
||||
//!
|
||||
|
||||
use core::fmt;
|
||||
use core::ops::Index;
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
//! course, but has some critical differences from the network format e.g.,
|
||||
//! scripts come with an opcode decode, hashes are big-endian, numbers are
|
||||
//! typically big-endian decimals, etc.)
|
||||
//!
|
||||
|
||||
use core::{fmt, mem};
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
//!
|
||||
//! This module defines structures, functions, and traits that are needed to
|
||||
//! conform to Bitcoin consensus.
|
||||
//!
|
||||
|
||||
pub mod encode;
|
||||
pub mod params;
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
//! Cryptography
|
||||
//!
|
||||
//! Cryptography related functionality: keys and signatures.
|
||||
//!
|
||||
|
||||
pub mod ecdsa;
|
||||
pub mod key;
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
//! Bitcoin taproot keys.
|
||||
//!
|
||||
//! This module provides taproot keys used in Bitcoin (including reexporting secp256k1 keys).
|
||||
//!
|
||||
|
||||
use core::fmt;
|
||||
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
//! Internal macros.
|
||||
//!
|
||||
//! Macros meant to be used inside the Rust Bitcoin library.
|
||||
//!
|
||||
|
||||
macro_rules! impl_consensus_encoding {
|
||||
($thing:ident, $($field:ident),+) => (
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
//!
|
||||
//! This module defines the structures and functions needed to encode
|
||||
//! network addresses in Bitcoin messages.
|
||||
//!
|
||||
|
||||
use core::{fmt, iter};
|
||||
use std::net::{Ipv4Addr, Ipv6Addr, SocketAddr, SocketAddrV4, SocketAddrV6, ToSocketAddrs};
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
//!
|
||||
//! This module defines the `NetworkMessage` and `RawNetworkMessage` types that
|
||||
//! are used for (de)serializing Bitcoin objects for transmission on the network.
|
||||
//!
|
||||
|
||||
use core::{fmt, iter};
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
//!
|
||||
//! This module describes network messages which are used for passing
|
||||
//! Bitcoin data (blocks and transactions) around.
|
||||
//!
|
||||
|
||||
use hashes::{sha256d, Hash as _};
|
||||
use io::{BufRead, Write};
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
//! Bitcoin Connection Bloom filtering network messages.
|
||||
//!
|
||||
//! This module describes BIP37 Connection Bloom filtering network messages.
|
||||
//!
|
||||
|
||||
use io::{BufRead, Write};
|
||||
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
//!
|
||||
//! BIP152 Compact Blocks network messages
|
||||
//!
|
||||
|
||||
use crate::bip152;
|
||||
use crate::internal_macros::impl_consensus_encoding;
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
//! Bitcoin Client Side Block Filtering network messages.
|
||||
//!
|
||||
//! This module describes BIP157 Client Side Block Filtering network messages.
|
||||
//!
|
||||
|
||||
use crate::bip158::{FilterHash, FilterHeader};
|
||||
use crate::blockdata::block::BlockHash;
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
//!
|
||||
//! This module defines network messages which describe peers and their
|
||||
//! capabilities.
|
||||
//!
|
||||
|
||||
use hashes::sha256d;
|
||||
use io::{BufRead, Write};
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
//! Bitcoin. As such they must not be relied upon as if they were consensus rules.
|
||||
//!
|
||||
//! These values were taken from bitcoind v0.21.1 (194b9b8792d9b0798fdb570b79fa51f1d1f5ebaf).
|
||||
//!
|
||||
|
||||
use core::cmp;
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
//!
|
||||
//! Provides the [`Work`] and [`Target`] types that are used in proof-of-work calculations. The
|
||||
//! functions here are designed to be fast, by that we mean it is safe to use them to check headers.
|
||||
//!
|
||||
|
||||
use core::cmp;
|
||||
use core::fmt::{self, LowerHex, UpperHex};
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
//! Implementation of BIP174 Partially Signed Bitcoin Transaction Format as
|
||||
//! defined at <https://github.com/bitcoin/bips/blob/master/bip-0174.mediawiki>
|
||||
//! except we define PSBTs containing non-standard sighash types as invalid.
|
||||
//!
|
||||
|
||||
#[macro_use]
|
||||
mod macros;
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
//!
|
||||
//! Raw PSBT key-value pairs as defined at
|
||||
//! <https://github.com/bitcoin/bips/blob/master/bip-0174.mediawiki>.
|
||||
//!
|
||||
|
||||
use core::fmt;
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
//!
|
||||
//! Traits to serialize PSBT values to and from raw bytes
|
||||
//! according to the BIP-174 specification.
|
||||
//!
|
||||
|
||||
use hashes::{hash160, ripemd160, sha256, sha256d, Hash};
|
||||
use secp256k1::XOnlyPublicKey;
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
//! Bitcoin serde utilities.
|
||||
//!
|
||||
//! This module is for special serde serializations.
|
||||
//!
|
||||
|
||||
pub(crate) struct SerializeBytesAsHex<'a>(pub(crate) &'a [u8]);
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
//!
|
||||
//! This module provides signature related functions including secp256k1 signature recovery when
|
||||
//! library is used with the `secp-recovery` feature.
|
||||
//!
|
||||
|
||||
use hashes::{sha256d, Hash, HashEngine};
|
||||
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
//! Bitcoin Taproot.
|
||||
//!
|
||||
//! This module provides support for taproot tagged hashes.
|
||||
//!
|
||||
|
||||
pub mod merkle_branch;
|
||||
pub mod serialized_signature;
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
//! Bitcoin serde macros.
|
||||
//!
|
||||
//! This module provides internal macros used for unit tests.
|
||||
//!
|
||||
|
||||
#[cfg(feature = "serde")]
|
||||
macro_rules! serde_round_trip (
|
||||
|
|
Loading…
Reference in New Issue