util/address: remove unused generic type

This commit is contained in:
Marko Bencun 2021-11-14 13:04:28 +01:00
parent abc242dfe1
commit 8b1dbf5c9f
No known key found for this signature in database
GPG Key ID: 804538928C37EAE8
1 changed files with 5 additions and 5 deletions

View File

@ -515,9 +515,9 @@ impl Address {
/// Create a pay to taproot address from untweaked key
pub fn p2tr<C: Verification>(
secp: Secp256k1<C>,
internal_key: UntweakedPublicKey,
merkle_root: Option<TapBranchHash>,
secp: Secp256k1<C>,
internal_key: UntweakedPublicKey,
merkle_root: Option<TapBranchHash>,
network: Network
) -> Address {
Address {
@ -532,8 +532,8 @@ impl Address {
/// Create a pay to taproot address from a pre-tweaked output key.
///
/// This method is not recommended for use and [Address::p2tr()] should be used where possible.
pub fn p2tr_tweaked<C: Verification>(
output_key: TweakedPublicKey,
pub fn p2tr_tweaked(
output_key: TweakedPublicKey,
network: Network
) -> Address {
Address {