Removed //! spare line at end of headers

This commit is contained in:
jamil.lambert 2024-05-16 09:59:55 +01:00
parent 819eaa95bc
commit 802af8e417
33 changed files with 0 additions and 33 deletions

View File

@ -3,7 +3,6 @@
//! BIP152 Compact Blocks //! BIP152 Compact Blocks
//! //!
//! Implementation of compact blocks data structure and algorithms. //! Implementation of compact blocks data structure and algorithms.
//!
use core::{convert, fmt, mem}; use core::{convert, fmt, mem};
#[cfg(feature = "std")] #[cfg(feature = "std")]

View File

@ -36,7 +36,6 @@
//! // get this block //! // get this block
//! } //! }
//! ``` //! ```
//!
use core::cmp::{self, Ordering}; use core::cmp::{self, Ordering};
use core::fmt::{self, Display, Formatter}; use core::fmt::{self, Display, Formatter};

View File

@ -4,7 +4,6 @@
//! //!
//! Implementation of BIP32 hierarchical deterministic wallets, as defined //! Implementation of BIP32 hierarchical deterministic wallets, as defined
//! at <https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki>. //! at <https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki>.
//!
use core::ops::Index; use core::ops::Index;
use core::str::FromStr; use core::str::FromStr;

View File

@ -6,7 +6,6 @@
//! which commits to an earlier block to form the blockchain. This //! which commits to an earlier block to form the blockchain. This
//! module describes structures and functions needed to describe //! module describes structures and functions needed to describe
//! these blocks and the blockchain. //! these blocks and the blockchain.
//!
use core::fmt; use core::fmt;

View File

@ -5,7 +5,6 @@
//! This module provides various constants relating to the blockchain and //! This module provides various constants relating to the blockchain and
//! consensus code. In particular, it defines the genesis block and its //! consensus code. In particular, it defines the genesis block and its
//! single transaction. //! single transaction.
//!
use hashes::{sha256d, Hash}; use hashes::{sha256d, Hash};
use hex_lit::hex; use hex_lit::hex;

View File

@ -4,7 +4,6 @@
//! //!
//! There are two types of lock time: lock-by-blockheight and lock-by-blocktime, distinguished by //! There are two types of lock time: lock-by-blockheight and lock-by-blocktime, distinguished by
//! whether `LockTime < LOCKTIME_THRESHOLD`. //! whether `LockTime < LOCKTIME_THRESHOLD`.
//!
use core::cmp::Ordering; use core::cmp::Ordering;
use core::fmt; use core::fmt;

View File

@ -1,7 +1,6 @@
// SPDX-License-Identifier: CC0-1.0 // SPDX-License-Identifier: CC0-1.0
//! Provides absolute and relative locktimes. //! Provides absolute and relative locktimes.
//!
pub mod absolute; pub mod absolute;
pub mod relative; pub mod relative;

View File

@ -4,7 +4,6 @@
//! //!
//! There are two types of lock time: lock-by-blockheight and lock-by-blocktime, distinguished by //! 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. //! whether bit 22 of the `u32` consensus value is set.
//!
#[cfg(feature = "ordered")] #[cfg(feature = "ordered")]
use core::cmp::Ordering; use core::cmp::Ordering;

View File

@ -4,7 +4,6 @@
//! //!
//! This module defines structures and functions for storing the blocks and //! This module defines structures and functions for storing the blocks and
//! transactions which make up the Bitcoin system. //! transactions which make up the Bitcoin system.
//!
pub mod block; pub mod block;
pub mod constants; pub mod constants;

View File

@ -4,7 +4,6 @@
//! //!
//! Bitcoin's script uses a stack-based assembly language. This module defines //! Bitcoin's script uses a stack-based assembly language. This module defines
//! all of the opcodes for that language. //! all of the opcodes for that language.
//!
#![allow(non_camel_case_types)] #![allow(non_camel_case_types)]

View File

@ -9,7 +9,6 @@
//! signatures ensures that coins cannot be spent by unauthorized parties. //! signatures ensures that coins cannot be spent by unauthorized parties.
//! //!
//! This module provides the structures and functions needed to support transactions. //! This module provides the structures and functions needed to support transactions.
//!
use core::{cmp, fmt, str}; use core::{cmp, fmt, str};

View File

@ -3,7 +3,6 @@
//! Witness //! Witness
//! //!
//! This module contains the [`Witness`] struct and related methods to operate on it //! This module contains the [`Witness`] struct and related methods to operate on it
//!
use core::fmt; use core::fmt;
use core::ops::Index; use core::ops::Index;

View File

@ -13,7 +13,6 @@
//! course, but has some critical differences from the network format e.g., //! course, but has some critical differences from the network format e.g.,
//! scripts come with an opcode decode, hashes are big-endian, numbers are //! scripts come with an opcode decode, hashes are big-endian, numbers are
//! typically big-endian decimals, etc.) //! typically big-endian decimals, etc.)
//!
use core::{fmt, mem}; use core::{fmt, mem};

View File

@ -4,7 +4,6 @@
//! //!
//! This module defines structures, functions, and traits that are needed to //! This module defines structures, functions, and traits that are needed to
//! conform to Bitcoin consensus. //! conform to Bitcoin consensus.
//!
pub mod encode; pub mod encode;
pub mod params; pub mod params;

View File

@ -3,7 +3,6 @@
//! Cryptography //! Cryptography
//! //!
//! Cryptography related functionality: keys and signatures. //! Cryptography related functionality: keys and signatures.
//!
pub mod ecdsa; pub mod ecdsa;
pub mod key; pub mod key;

View File

@ -3,7 +3,6 @@
//! Bitcoin taproot keys. //! Bitcoin taproot keys.
//! //!
//! This module provides taproot keys used in Bitcoin (including reexporting secp256k1 keys). //! This module provides taproot keys used in Bitcoin (including reexporting secp256k1 keys).
//!
use core::fmt; use core::fmt;

View File

@ -3,7 +3,6 @@
//! Internal macros. //! Internal macros.
//! //!
//! Macros meant to be used inside the Rust Bitcoin library. //! Macros meant to be used inside the Rust Bitcoin library.
//!
macro_rules! impl_consensus_encoding { macro_rules! impl_consensus_encoding {
($thing:ident, $($field:ident),+) => ( ($thing:ident, $($field:ident),+) => (

View File

@ -4,7 +4,6 @@
//! //!
//! This module defines the structures and functions needed to encode //! This module defines the structures and functions needed to encode
//! network addresses in Bitcoin messages. //! network addresses in Bitcoin messages.
//!
use core::{fmt, iter}; use core::{fmt, iter};
use std::net::{Ipv4Addr, Ipv6Addr, SocketAddr, SocketAddrV4, SocketAddrV6, ToSocketAddrs}; use std::net::{Ipv4Addr, Ipv6Addr, SocketAddr, SocketAddrV4, SocketAddrV6, ToSocketAddrs};

View File

@ -4,7 +4,6 @@
//! //!
//! This module defines the `NetworkMessage` and `RawNetworkMessage` types that //! This module defines the `NetworkMessage` and `RawNetworkMessage` types that
//! are used for (de)serializing Bitcoin objects for transmission on the network. //! are used for (de)serializing Bitcoin objects for transmission on the network.
//!
use core::{fmt, iter}; use core::{fmt, iter};

View File

@ -4,7 +4,6 @@
//! //!
//! This module describes network messages which are used for passing //! This module describes network messages which are used for passing
//! Bitcoin data (blocks and transactions) around. //! Bitcoin data (blocks and transactions) around.
//!
use hashes::{sha256d, Hash as _}; use hashes::{sha256d, Hash as _};
use io::{BufRead, Write}; use io::{BufRead, Write};

View File

@ -3,7 +3,6 @@
//! Bitcoin Connection Bloom filtering network messages. //! Bitcoin Connection Bloom filtering network messages.
//! //!
//! This module describes BIP37 Connection Bloom filtering network messages. //! This module describes BIP37 Connection Bloom filtering network messages.
//!
use io::{BufRead, Write}; use io::{BufRead, Write};

View File

@ -2,7 +2,6 @@
//! //!
//! BIP152 Compact Blocks network messages //! BIP152 Compact Blocks network messages
//!
use crate::bip152; use crate::bip152;
use crate::internal_macros::impl_consensus_encoding; use crate::internal_macros::impl_consensus_encoding;

View File

@ -3,7 +3,6 @@
//! Bitcoin Client Side Block Filtering network messages. //! Bitcoin Client Side Block Filtering network messages.
//! //!
//! This module describes BIP157 Client Side Block Filtering network messages. //! This module describes BIP157 Client Side Block Filtering network messages.
//!
use crate::bip158::{FilterHash, FilterHeader}; use crate::bip158::{FilterHash, FilterHeader};
use crate::blockdata::block::BlockHash; use crate::blockdata::block::BlockHash;

View File

@ -4,7 +4,6 @@
//! //!
//! This module defines network messages which describe peers and their //! This module defines network messages which describe peers and their
//! capabilities. //! capabilities.
//!
use hashes::sha256d; use hashes::sha256d;
use io::{BufRead, Write}; use io::{BufRead, Write};

View File

@ -10,7 +10,6 @@
//! Bitcoin. As such they must not be relied upon as if they were consensus rules. //! 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). //! These values were taken from bitcoind v0.21.1 (194b9b8792d9b0798fdb570b79fa51f1d1f5ebaf).
//!
use core::cmp; use core::cmp;

View File

@ -4,7 +4,6 @@
//! //!
//! Provides the [`Work`] and [`Target`] types that are used in proof-of-work calculations. The //! 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. //! 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::cmp;
use core::fmt::{self, LowerHex, UpperHex}; use core::fmt::{self, LowerHex, UpperHex};

View File

@ -5,7 +5,6 @@
//! Implementation of BIP174 Partially Signed Bitcoin Transaction Format as //! Implementation of BIP174 Partially Signed Bitcoin Transaction Format as
//! defined at <https://github.com/bitcoin/bips/blob/master/bip-0174.mediawiki> //! defined at <https://github.com/bitcoin/bips/blob/master/bip-0174.mediawiki>
//! except we define PSBTs containing non-standard sighash types as invalid. //! except we define PSBTs containing non-standard sighash types as invalid.
//!
#[macro_use] #[macro_use]
mod macros; mod macros;

View File

@ -4,7 +4,6 @@
//! //!
//! Raw PSBT key-value pairs as defined at //! Raw PSBT key-value pairs as defined at
//! <https://github.com/bitcoin/bips/blob/master/bip-0174.mediawiki>. //! <https://github.com/bitcoin/bips/blob/master/bip-0174.mediawiki>.
//!
use core::fmt; use core::fmt;

View File

@ -4,7 +4,6 @@
//! //!
//! Traits to serialize PSBT values to and from raw bytes //! Traits to serialize PSBT values to and from raw bytes
//! according to the BIP-174 specification. //! according to the BIP-174 specification.
//!
use hashes::{hash160, ripemd160, sha256, sha256d, Hash}; use hashes::{hash160, ripemd160, sha256, sha256d, Hash};
use secp256k1::XOnlyPublicKey; use secp256k1::XOnlyPublicKey;

View File

@ -3,7 +3,6 @@
//! Bitcoin serde utilities. //! Bitcoin serde utilities.
//! //!
//! This module is for special serde serializations. //! This module is for special serde serializations.
//!
pub(crate) struct SerializeBytesAsHex<'a>(pub(crate) &'a [u8]); pub(crate) struct SerializeBytesAsHex<'a>(pub(crate) &'a [u8]);

View File

@ -4,7 +4,6 @@
//! //!
//! This module provides signature related functions including secp256k1 signature recovery when //! This module provides signature related functions including secp256k1 signature recovery when
//! library is used with the `secp-recovery` feature. //! library is used with the `secp-recovery` feature.
//!
use hashes::{sha256d, Hash, HashEngine}; use hashes::{sha256d, Hash, HashEngine};

View File

@ -3,7 +3,6 @@
//! Bitcoin Taproot. //! Bitcoin Taproot.
//! //!
//! This module provides support for taproot tagged hashes. //! This module provides support for taproot tagged hashes.
//!
pub mod merkle_branch; pub mod merkle_branch;
pub mod serialized_signature; pub mod serialized_signature;

View File

@ -3,7 +3,6 @@
//! Bitcoin serde macros. //! Bitcoin serde macros.
//! //!
//! This module provides internal macros used for unit tests. //! This module provides internal macros used for unit tests.
//!
#[cfg(feature = "serde")] #[cfg(feature = "serde")]
macro_rules! serde_round_trip ( macro_rules! serde_round_trip (