Merge pull request #116 from jeandudey/2018-08-08-module-docs
Fix modules documentation title.
This commit is contained in:
commit
259c5902f1
|
@ -12,7 +12,7 @@
|
|||
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
|
||||
//
|
||||
|
||||
//! # Bitcoin Block
|
||||
//! Bitcoin Block
|
||||
//!
|
||||
//! A block is a bundle of transactions with a proof-of-work attached,
|
||||
//! which attaches to an earlier block to form the blockchain. This
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
|
||||
//
|
||||
|
||||
//! # Blockdata constants
|
||||
//! Blockdata constants
|
||||
//!
|
||||
//! This module provides various constants relating to the blockchain and
|
||||
//! consensus code. In particular, it defines the genesis block and its
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
|
||||
//
|
||||
|
||||
//! # Blockdata
|
||||
//! Blockdata
|
||||
//!
|
||||
//! This module defines structions and functions for storing the blocks and
|
||||
//! transactions which make up the Bitcoin system.
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
|
||||
//
|
||||
|
||||
//! # Opcodes
|
||||
//! Opcodes
|
||||
//!
|
||||
//! Bitcoin's script uses a stack-based assembly language. This module defines
|
||||
//! all of the opcodes
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
|
||||
//
|
||||
|
||||
//! # Script
|
||||
//! Script
|
||||
//!
|
||||
//! Scripts define Bitcoin's digital signature scheme: a signature is formed
|
||||
//! from a script (the second half of which is defined by a coin to be spent,
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
|
||||
//
|
||||
|
||||
//! # Bitcoin Transaction
|
||||
//! Bitcoin Transaction
|
||||
//!
|
||||
//! A transaction describes a transfer of money. It consumes previously-unspent
|
||||
//! transaction outputs and produces new ones, satisfying the condition to spend
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
|
||||
//
|
||||
|
||||
//! # Macros
|
||||
//! Macros
|
||||
//!
|
||||
//! Macros available to users of the Bitcoin library
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
|
||||
//
|
||||
|
||||
//! # Bitcoin network addresses
|
||||
//! Bitcoin network addresses
|
||||
//!
|
||||
//! This module defines the structures and functions needed to encode
|
||||
//! network addresses in Bitcoin messages.
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
|
||||
//
|
||||
|
||||
//! # Consensus parameters
|
||||
//! Consensus parameters
|
||||
//!
|
||||
//! This module provides predefined set of parameters for different chains.
|
||||
//!
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
|
||||
//
|
||||
|
||||
//! # Consensus-encodable types
|
||||
//! Consensus-encodable types
|
||||
//!
|
||||
//! This is basically a replacement of the `Encodable` trait which does
|
||||
//! normalization for endianness, etc., to ensure that the encoding
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
|
||||
//
|
||||
|
||||
//! # Abstract Bitcoin listener
|
||||
//! Abstract Bitcoin listener
|
||||
//!
|
||||
//! This module defines a listener on the Bitcoin network which is able
|
||||
//! to connect to a peer, send network messages, and receive Bitcoin data.
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
|
||||
//
|
||||
|
||||
//! # Network message
|
||||
//! Network message
|
||||
//!
|
||||
//! This module defines the `Message` traits which are used
|
||||
//! for (de)serializing Bitcoin objects for transmission on the network. It
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
|
||||
//
|
||||
|
||||
//! # Blockdata network messages
|
||||
//! Blockdata network messages
|
||||
//!
|
||||
//! This module describes network messages which are used for passing
|
||||
//! Bitcoin data (blocks and transactions) around.
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
|
||||
//
|
||||
|
||||
//! # Network-related network messages
|
||||
//! Network-related network messages
|
||||
//!
|
||||
//! This module defines network messages which describe peers and their
|
||||
//! capabilities
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
|
||||
//
|
||||
|
||||
//! # Network Support
|
||||
//! Network Support
|
||||
//!
|
||||
//! This module defines support for (de)serialization and network transport
|
||||
//! of Bitcoin data and network messages.
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
|
||||
//
|
||||
|
||||
//! # Network Serialization
|
||||
//! Network Serialization
|
||||
//!
|
||||
//! This module defines the `Serializable` trait which is used for
|
||||
//! (de)serializing Bitcoin objects for transmission on the network.
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
|
||||
//
|
||||
|
||||
//! # Sockets
|
||||
//! Sockets
|
||||
//!
|
||||
//! This module provides support for low-level network communication.
|
||||
//!
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
|
||||
//
|
||||
|
||||
//! # Macros
|
||||
//! Macros
|
||||
//!
|
||||
//! Internal macros used for unit tests
|
||||
|
||||
|
|
|
@ -11,7 +11,8 @@
|
|||
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
|
||||
//
|
||||
|
||||
//! # Addresses
|
||||
//! Addresses
|
||||
//!
|
||||
//! Support for ordinary base58 Bitcoin addresses and private keys
|
||||
//!
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
|
||||
//
|
||||
|
||||
//! # Base58 encoder and decoder
|
||||
//! Base58 encoder and decoder
|
||||
|
||||
use std::{error, fmt};
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
|
||||
//
|
||||
|
||||
//! # BIP143 Implementation
|
||||
//! BIP143 Implementation
|
||||
//!
|
||||
//! Implementation of BIP143 Segwit-style signatures. Should be sufficient
|
||||
//! to create signatures for Segwit transactions (which should be pushed into
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
|
||||
//
|
||||
|
||||
//! # BIP32 Implementation
|
||||
//! BIP32 Implementation
|
||||
//!
|
||||
//! Implementation of BIP32 hierarchical deterministic wallets, as defined
|
||||
//! at https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
|
||||
//
|
||||
|
||||
//! # Pay-to-contract-hash supporte
|
||||
//! Pay-to-contract-hash supporte
|
||||
//!
|
||||
//! See Appendix A of the Blockstream sidechains whitepaper
|
||||
//! at http://blockstream.com/sidechains.pdf for details of
|
||||
//! what this does.
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
|
||||
//
|
||||
|
||||
//! # Floating-point decimal type
|
||||
//! Floating-point decimal type
|
||||
//!
|
||||
//! `i64`-based floating-point decimal type designed to hold Bitcoin
|
||||
//! amounts. For satoshi amounts (8 decimal places) the maximum
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
|
||||
//
|
||||
|
||||
//! # Hash functions
|
||||
//! Hash functions
|
||||
//!
|
||||
//! Utility functions related to hashing data, including merkleization
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
|
||||
//
|
||||
|
||||
//! # Iterator adaptors
|
||||
//! Iterator adaptors
|
||||
//!
|
||||
//! Iterator adaptors needed by Bitcoin but not provided by the Rust
|
||||
//! standard library.
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
|
||||
//
|
||||
|
||||
//! # Miscellaneous functions
|
||||
//! Miscellaneous functions
|
||||
//!
|
||||
//! Various utility functions
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
|
||||
//
|
||||
|
||||
//! # Utility functions
|
||||
//! Utility functions
|
||||
//!
|
||||
//! Functions needed by all parts of the Bitcoin library
|
||||
|
||||
|
|
|
@ -11,7 +11,8 @@
|
|||
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
|
||||
//
|
||||
|
||||
//! # private key
|
||||
//! Private key
|
||||
//!
|
||||
//! A private key represents the secret data associated with its proposed use
|
||||
//!
|
||||
use std::str::FromStr;
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
|
||||
//
|
||||
|
||||
//! # Big unsigned integer types
|
||||
//! Big unsigned integer types
|
||||
//!
|
||||
//! Implementation of a various large-but-fixed sized unsigned integer types.
|
||||
//! The functions here are designed to be fast.
|
||||
|
|
Loading…
Reference in New Issue