From 325ea8fb7d16322bc45015713d1f8939ce4450ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dawid=20Ci=C4=99=C5=BCarkiewicz?= Date: Fri, 27 May 2022 19:50:24 -0700 Subject: [PATCH] Add "Relevant BIPs` to `Address` --- src/blockdata/block.rs | 2 +- src/util/address.rs | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/blockdata/block.rs b/src/blockdata/block.rs index 18140c50..24fac3d9 100644 --- a/src/blockdata/block.rs +++ b/src/blockdata/block.rs @@ -40,7 +40,7 @@ use crate::VarInt; /// A block header, which contains all the block's information except /// the actual transactions /// -/// # Bitcoin Core References +/// ### Bitcoin Core References /// /// * [CBlockHeader definition](https://github.com/bitcoin/bitcoin/blob/345457b542b6a980ccfbc868af0970a6f91d1b82/src/primitives/block.h#L20) #[derive(Copy, PartialEq, Eq, Clone, Debug)] diff --git a/src/util/address.rs b/src/util/address.rs index afa4c714..b0b9765d 100644 --- a/src/util/address.rs +++ b/src/util/address.rs @@ -536,6 +536,15 @@ impl<'a> fmt::Display for AddressEncoding<'a> { } /// A Bitcoin address. +/// +/// ### Relevant BIPs +/// +/// * [BIP13 - Address Format for pay-to-script-hash](https://github.com/bitcoin/bips/blob/master/bip-0013.mediawiki) +/// * [BIP16 - Pay to Script Hash](https://github.com/bitcoin/bips/blob/master/bip-0016.mediawiki) +/// * [BIP141 - Segregated Witness (Consensus layer)](https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki) +/// * [BIP142 - Address Format for Segregated Witness](https://github.com/bitcoin/bips/blob/master/bip-0142.mediawiki) +/// * [BIP341 - Taproot: SegWit version 1 spending rules](https://github.com/bitcoin/bips/blob/master/bip-0341.mediawiki) +/// * [BIP350 - Bech32m format for v1+ witness addresses](https://github.com/bitcoin/bips/blob/master/bip-0350.mediawiki) #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct Address { /// The type of the address.