From f7a6d171438bd97b371efcc9adb01d24b0f345cd Mon Sep 17 00:00:00 2001 From: yancy Date: Sun, 27 Nov 2022 19:17:52 +0100 Subject: [PATCH] Add rand feature flag to the example documentation --- bitcoin/src/address.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bitcoin/src/address.rs b/bitcoin/src/address.rs index 5e08125d..debe3830 100644 --- a/bitcoin/src/address.rs +++ b/bitcoin/src/address.rs @@ -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;