Remove stale comment

This comment appears to come from before we had types for tweaked and
untweaked keys in taproot. We can remove it.
This commit is contained in:
Tobin C. Harding 2023-12-01 07:19:54 +11:00
parent 83cefefa45
commit f7ab253ce4
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 0 additions and 2 deletions

View File

@ -479,8 +479,6 @@ impl Address {
} }
/// Creates a pay to taproot address from a pre-tweaked output key. /// Creates a pay to taproot address from a pre-tweaked output key.
///
/// This method is not recommended for use, [`Address::p2tr()`] should be used where possible.
pub fn p2tr_tweaked(output_key: TweakedPublicKey, network: Network) -> Address { pub fn p2tr_tweaked(output_key: TweakedPublicKey, network: Network) -> Address {
let prog = WitnessProgram::new(WitnessVersion::V1, output_key.to_inner().serialize()) let prog = WitnessProgram::new(WitnessVersion::V1, output_key.to_inner().serialize())
.expect("taproot output key has len 32 <= 40"); .expect("taproot output key has len 32 <= 40");