@@ -65,8 +65,6 @@ use crate::util::transaction_utils;
6565use crate :: crypto:: chacha20:: ChaCha20 ;
6666use crate :: prelude:: * ;
6767use crate :: sign:: ecdsa:: EcdsaChannelSigner ;
68- #[ cfg( taproot) ]
69- use crate :: sign:: taproot:: TaprootChannelSigner ;
7068use crate :: util:: atomic_counter:: AtomicCounter ;
7169
7270use core:: convert:: TryInto ;
@@ -79,8 +77,6 @@ use musig2::types::{PartialSignature, PublicNonce};
7977pub ( crate ) mod type_resolver;
8078
8179pub mod ecdsa;
82- #[ cfg( taproot) ]
83- pub mod taproot;
8480pub mod tx_builder;
8581
8682pub ( crate ) const COMPRESSED_PUBLIC_KEY_SIZE : usize = bitcoin:: secp256k1:: constants:: PUBLIC_KEY_SIZE ;
@@ -1084,18 +1080,7 @@ impl<T: OutputSpender + ?Sized, O: Deref<Target = T>> OutputSpender for O {
10841080/// A dynamic [`SignerProvider`] temporarily needed for doc tests.
10851081///
10861082/// This is not exported to bindings users as it is not intended for public consumption.
1087- #[ cfg( taproot) ]
10881083#[ doc( hidden) ]
1089- #[ deprecated( note = "Remove once taproot cfg is removed" ) ]
1090- pub type DynSignerProvider =
1091- dyn SignerProvider < EcdsaSigner = InMemorySigner , TaprootSigner = InMemorySigner > ;
1092-
1093- /// A dynamic [`SignerProvider`] temporarily needed for doc tests.
1094- ///
1095- /// This is not exported to bindings users as it is not intended for public consumption.
1096- #[ cfg( not( taproot) ) ]
1097- #[ doc( hidden) ]
1098- #[ deprecated( note = "Remove once taproot cfg is removed" ) ]
10991084pub type DynSignerProvider = dyn SignerProvider < EcdsaSigner = InMemorySigner > ;
11001085
11011086/// A trait that can return signer instances for individual channels.
@@ -1109,9 +1094,6 @@ pub type DynSignerProvider = dyn SignerProvider<EcdsaSigner = InMemorySigner>;
11091094pub trait SignerProvider {
11101095 /// A type which implements [`EcdsaChannelSigner`] which will be returned by [`Self::derive_channel_signer`].
11111096 type EcdsaSigner : EcdsaChannelSigner ;
1112- #[ cfg( taproot) ]
1113- /// A type which implements [`TaprootChannelSigner`]
1114- type TaprootSigner : TaprootChannelSigner ;
11151097
11161098 /// Generates a unique `channel_keys_id` that can be used to obtain a [`Self::EcdsaSigner`] through
11171099 /// [`SignerProvider::derive_channel_signer`]. The `user_channel_id` is provided to allow
@@ -1151,8 +1133,6 @@ pub trait SignerProvider {
11511133
11521134impl < T : SignerProvider + ?Sized , SP : Deref < Target = T > > SignerProvider for SP {
11531135 type EcdsaSigner = T :: EcdsaSigner ;
1154- #[ cfg( taproot) ]
1155- type TaprootSigner = T :: TaprootSigner ;
11561136
11571137 fn generate_channel_keys_id ( & self , inbound : bool , user_channel_id : u128 ) -> [ u8 ; 32 ] {
11581138 self . deref ( ) . generate_channel_keys_id ( inbound, user_channel_id)
@@ -1983,65 +1963,6 @@ impl EcdsaChannelSigner for InMemorySigner {
19831963 }
19841964}
19851965
1986- #[ cfg( taproot) ]
1987- #[ allow( unused) ]
1988- impl TaprootChannelSigner for InMemorySigner {
1989- fn generate_local_nonce_pair (
1990- & self , commitment_number : u64 , secp_ctx : & Secp256k1 < All > ,
1991- ) -> PublicNonce {
1992- todo ! ( )
1993- }
1994-
1995- fn partially_sign_counterparty_commitment (
1996- & self , counterparty_nonce : PublicNonce , commitment_tx : & CommitmentTransaction ,
1997- inbound_htlc_preimages : Vec < PaymentPreimage > ,
1998- outbound_htlc_preimages : Vec < PaymentPreimage > , secp_ctx : & Secp256k1 < All > ,
1999- ) -> Result < ( PartialSignatureWithNonce , Vec < schnorr:: Signature > ) , ( ) > {
2000- todo ! ( )
2001- }
2002-
2003- fn finalize_holder_commitment (
2004- & self , commitment_tx : & HolderCommitmentTransaction ,
2005- counterparty_partial_signature : PartialSignatureWithNonce , secp_ctx : & Secp256k1 < All > ,
2006- ) -> Result < PartialSignature , ( ) > {
2007- todo ! ( )
2008- }
2009-
2010- fn sign_justice_revoked_output (
2011- & self , justice_tx : & Transaction , input : usize , amount : u64 , per_commitment_key : & SecretKey ,
2012- secp_ctx : & Secp256k1 < All > ,
2013- ) -> Result < schnorr:: Signature , ( ) > {
2014- todo ! ( )
2015- }
2016-
2017- fn sign_justice_revoked_htlc (
2018- & self , justice_tx : & Transaction , input : usize , amount : u64 , per_commitment_key : & SecretKey ,
2019- htlc : & HTLCOutputInCommitment , secp_ctx : & Secp256k1 < All > ,
2020- ) -> Result < schnorr:: Signature , ( ) > {
2021- todo ! ( )
2022- }
2023-
2024- fn sign_holder_htlc_transaction (
2025- & self , htlc_tx : & Transaction , input : usize , htlc_descriptor : & HTLCDescriptor ,
2026- secp_ctx : & Secp256k1 < All > ,
2027- ) -> Result < schnorr:: Signature , ( ) > {
2028- todo ! ( )
2029- }
2030-
2031- fn sign_counterparty_htlc_transaction (
2032- & self , htlc_tx : & Transaction , input : usize , amount : u64 , per_commitment_point : & PublicKey ,
2033- htlc : & HTLCOutputInCommitment , secp_ctx : & Secp256k1 < All > ,
2034- ) -> Result < schnorr:: Signature , ( ) > {
2035- todo ! ( )
2036- }
2037-
2038- fn partially_sign_closing_transaction (
2039- & self , closing_tx : & ClosingTransaction , secp_ctx : & Secp256k1 < All > ,
2040- ) -> Result < PartialSignature , ( ) > {
2041- todo ! ( )
2042- }
2043- }
2044-
20451966/// Simple implementation of [`EntropySource`], [`NodeSigner`], and [`SignerProvider`] that takes a
20461967/// 32-byte seed for use as a BIP 32 extended key and derives keys from that.
20471968///
@@ -2548,8 +2469,6 @@ impl OutputSpender for KeysManager {
25482469
25492470impl SignerProvider for KeysManager {
25502471 type EcdsaSigner = InMemorySigner ;
2551- #[ cfg( taproot) ]
2552- type TaprootSigner = InMemorySigner ;
25532472
25542473 fn generate_channel_keys_id ( & self , _inbound : bool , user_channel_id : u128 ) -> [ u8 ; 32 ] {
25552474 let child_idx = self . channel_child_index . fetch_add ( 1 , Ordering :: AcqRel ) ;
@@ -2697,8 +2616,6 @@ impl OutputSpender for PhantomKeysManager {
26972616
26982617impl SignerProvider for PhantomKeysManager {
26992618 type EcdsaSigner = InMemorySigner ;
2700- #[ cfg( taproot) ]
2701- type TaprootSigner = InMemorySigner ;
27022619
27032620 fn generate_channel_keys_id ( & self , inbound : bool , user_channel_id : u128 ) -> [ u8 ; 32 ] {
27042621 self . inner . generate_channel_keys_id ( inbound, user_channel_id)
0 commit comments