Add rand feature flag to the example documentation

This commit is contained in:
yancy 2022-11-27 19:17:52 +01:00
parent e16b9bdb20
commit f7a6d17143
1 changed files with 6 additions and 0 deletions

View File

@ -21,6 +21,12 @@
//! // Generate pay-to-pubkey-hash address.
//! let address = Address::p2pkh(&public_key, Network::Bitcoin);
//! ```
//!
//! # Note: creating a new address requires the rand feature flag
//!
//! ```toml
//! bitcoin = { version = "...", features = ["rand"] }
//! ```
use core::convert::TryFrom;
use core::fmt;