Merge rust-bitcoin/rust-bitcoin#4358: Capitalize Taproot in rustdocs
c4ff2baa5a
Capitalize Taproot in rustdocs (Jamil Lambert) Pull request description: Some recent additions to the rustdocs used a lowercase t in taproot. Capitalize all cases of Taproot in rustdocs to be consistent. Closes #4354 ACKs for top commit: tcharding: ACKc4ff2baa5a
apoelstra: ACK c4ff2baa5a7c841ecdfe0e8a92b0a1a664f203ae; successfully ran local tests Tree-SHA512: 620ccf769a6dad3bcdfec8a0460f6f1bbf90780e280ca94317f6048117aaad06c41a90cd3ee00d670f799459316c1f84e96e4ce3ef3a44818243b21c2f41924b
This commit is contained in:
commit
89d7b3fe24
|
@ -90,7 +90,7 @@ pub enum AddressType {
|
||||||
P2wpkh,
|
P2wpkh,
|
||||||
/// Pay to witness script hash.
|
/// Pay to witness script hash.
|
||||||
P2wsh,
|
P2wsh,
|
||||||
/// Pay to taproot.
|
/// Pay to Taproot.
|
||||||
P2tr,
|
P2tr,
|
||||||
/// Pay to anchor.
|
/// Pay to anchor.
|
||||||
P2a,
|
P2a,
|
||||||
|
|
|
@ -183,7 +183,7 @@ crate::internal_macros::define_extension_trait! {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get the taproot control block following BIP341 rules.
|
/// Get the Taproot control block following BIP341 rules.
|
||||||
///
|
///
|
||||||
/// This does not guarantee that this represents a P2TR [`Witness`]. It
|
/// This does not guarantee that this represents a P2TR [`Witness`]. It
|
||||||
/// merely gets the last or second to last element depending on the first
|
/// merely gets the last or second to last element depending on the first
|
||||||
|
@ -197,7 +197,7 @@ crate::internal_macros::define_extension_trait! {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get the taproot annex following BIP341 rules.
|
/// Get the Taproot annex following BIP341 rules.
|
||||||
///
|
///
|
||||||
/// This does not guarantee that this represents a P2TR [`Witness`].
|
/// This does not guarantee that this represents a P2TR [`Witness`].
|
||||||
///
|
///
|
||||||
|
@ -241,9 +241,9 @@ enum P2TrSpend<'a> {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> P2TrSpend<'a> {
|
impl<'a> P2TrSpend<'a> {
|
||||||
/// Parses `Witness` to determine what kind of taproot spend this is.
|
/// Parses `Witness` to determine what kind of Taproot spend this is.
|
||||||
///
|
///
|
||||||
/// Note: this assumes `witness` is a taproot spend. The function cannot figure it out for sure
|
/// Note: this assumes `witness` is a Taproot spend. The function cannot figure it out for sure
|
||||||
/// (without knowing the output), so it doesn't attempt to check anything other than what is
|
/// (without knowing the output), so it doesn't attempt to check anything other than what is
|
||||||
/// required for the program to not crash.
|
/// required for the program to not crash.
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in New Issue