Skip to content

Commit 9e57219

Browse files
committed
Add "Relevant BIPs to Address`
1 parent c7e8bfc commit 9e57219

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/blockdata/block.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ use crate::VarInt;
4040
/// A block header, which contains all the block's information except
4141
/// the actual transactions
4242
///
43-
/// # Bitcoin Core References
43+
/// ### Bitcoin Core References
4444
///
4545
/// * [CBlockHeader definition](https://github.com/bitcoin/bitcoin/blob/345457b542b6a980ccfbc868af0970a6f91d1b82/src/primitives/block.h#L20)
4646
#[derive(Copy, PartialEq, Eq, Clone, Debug)]

src/util/address.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,15 @@ impl<'a> fmt::Display for AddressEncoding<'a> {
536536
}
537537

538538
/// A Bitcoin address.
539+
///
540+
/// ### Relevant BIPs
541+
///
542+
/// * [BIP13 - Address Format for pay-to-script-hash](https://github.com/bitcoin/bips/blob/master/bip-0013.mediawiki)
543+
/// * [BIP16 - Pay to Script Hash](https://github.com/bitcoin/bips/blob/master/bip-0016.mediawiki)
544+
/// * [BIP141 - Segregated Witness (Consensus layer)](https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki)
545+
/// * [BIP142 - Address Format for Segregated Witness](https://github.com/bitcoin/bips/blob/master/bip-0142.mediawiki)
546+
/// * [BIP341 - Taproot: SegWit version 1 spending rules](https://github.com/bitcoin/bips/blob/master/bip-0341.mediawiki)
547+
/// * [BIP350 - Bech32m format for v1+ witness addresses](https://github.com/bitcoin/bips/blob/master/bip-0350.mediawiki)
539548
#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
540549
pub struct Address {
541550
/// The type of the address.

0 commit comments

Comments
 (0)