From 9b2b32bfba07e65752a5c0c8c69b1fc7cdfa9573 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Tue, 10 May 2022 12:28:18 +1000 Subject: [PATCH] Remove stale comment This comment is stale, we no longer have `to_pk_ctx` in the codebase. --- examples/verify_tx.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/examples/verify_tx.rs b/examples/verify_tx.rs index 1654c6e2b..123c82429 100644 --- a/examples/verify_tx.rs +++ b/examples/verify_tx.rs @@ -77,12 +77,6 @@ fn main() { println!("\n\nExample two:\n"); let secp = Secp256k1::new(); - // Sometimes it is necessary to have additional information to get the - // `bitcoin::PublicKey` from the `MiniscriptKey` which can be supplied by - // the `to_pk_ctx` parameter. For example, when calculating the script - // pubkey of a descriptor with xpubs, the secp context and child information - // maybe required. - // We can set prevouts to be empty list because this is a legacy transaction // and this information is not required for sighash computation. let prevouts = sighash::Prevouts::All::(&[]);