bitcoin_addresses/lib.rs
1// SPDX-License-Identifier: CC0-1.0
2
3//! # Bitcoin Addresses
4//!
5//! Bitcoin addresses do not appear on chain; rather, they are conventions used by Bitcoin (wallet)
6//! software to communicate where coins should be sent and are based on the output type e.g., P2WPKH.
7//!
8//! ref: <https://sprovoost.nl/2022/11/10/what-is-a-bitcoin-address/>
9
10#![cfg_attr(all(not(test), not(feature = "std")), no_std)]
11// Experimental features we need.
12#![cfg_attr(docsrs, feature(doc_auto_cfg))]
13// Coding conventions.
14#![warn(missing_docs)]
15// Exclude lints we don't think are valuable.
16#![allow(clippy::needless_question_mark)] // https://github.com/rust-bitcoin/rust-bitcoin/pull/2134
17#![allow(clippy::manual_range_contains)] // More readable than clippy's format.
18#![allow(clippy::needless_borrows_for_generic_args)] // https://github.com/rust-lang/rust-clippy/issues/12454
19
20extern crate alloc;
21
22#[cfg(feature = "std")]
23extern crate std;