Skip to content

Commit cb951b4

Browse files
authored
Merge pull request #4481 from wpaulino/remove-taproot
Remove TaprootChannelSigner and musig2 crate
2 parents 7d82e14 + 961b451 commit cb951b4

24 files changed

Lines changed: 197 additions & 874 deletions

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ check-cfg = [
6363
"cfg(c_bindings)",
6464
"cfg(ldk_bench)",
6565
"cfg(ldk_test_vectors)",
66-
"cfg(taproot)",
6766
"cfg(require_route_graph_test)",
6867
"cfg(simple_close)",
6968
"cfg(peer_storage)",

ci/ci-tests-cfg-flags.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ set -eox pipefail
55
source "$(dirname "$0")/ci-tests-common.sh"
66

77
echo -e "\n\nTest cfg-flag builds"
8-
RUSTFLAGS="--cfg=taproot" cargo test --quiet --color always -p lightning
9-
[ "$CI_MINIMIZE_DISK_USAGE" != "" ] && cargo clean
108
RUSTFLAGS="--cfg=simple_close" cargo test --quiet --color always -p lightning
119
[ "$CI_MINIMIZE_DISK_USAGE" != "" ] && cargo clean
1210
RUSTFLAGS="--cfg=peer_storage" cargo test --quiet --color always -p lightning

fuzz/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,4 @@ check-cfg = [
6262
"cfg(fuzzing)",
6363
"cfg(secp256k1_fuzz)",
6464
"cfg(hashes_fuzz)",
65-
"cfg(taproot)",
6665
]

fuzz/src/chanmon_consistency.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,8 +448,6 @@ impl NodeSigner for KeyProvider {
448448

449449
impl SignerProvider for KeyProvider {
450450
type EcdsaSigner = TestChannelSigner;
451-
#[cfg(taproot)]
452-
type TaprootSigner = TestChannelSigner;
453451

454452
fn generate_channel_keys_id(&self, _inbound: bool, _user_channel_id: u128) -> [u8; 32] {
455453
let id = self.rand_bytes_id.fetch_add(1, atomic::Ordering::Relaxed) as u8;

fuzz/src/full_stack.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,8 +457,6 @@ impl NodeSigner for KeyProvider {
457457

458458
impl SignerProvider for KeyProvider {
459459
type EcdsaSigner = TestChannelSigner;
460-
#[cfg(taproot)]
461-
type TaprootSigner = TestChannelSigner;
462460

463461
fn generate_channel_keys_id(&self, inbound: bool, _user_channel_id: u128) -> [u8; 32] {
464462
let ctr = self.counter.fetch_add(1, Ordering::Relaxed) as u8;

fuzz/src/onion_message.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,6 @@ impl NodeSigner for KeyProvider {
296296

297297
impl SignerProvider for KeyProvider {
298298
type EcdsaSigner = TestChannelSigner;
299-
#[cfg(taproot)]
300-
type TaprootSigner = TestChannelSigner;
301299

302300
fn generate_channel_keys_id(&self, _inbound: bool, _user_channel_id: u128) -> [u8; 32] {
303301
unreachable!()

lightning-background-processor/src/lib.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -378,18 +378,11 @@ type DynMessageRouter = lightning::onion_message::messenger::DefaultMessageRoute
378378
&'static (dyn EntropySource + Send + Sync),
379379
>;
380380

381-
#[cfg(all(not(c_bindings), not(taproot)))]
381+
#[cfg(not(c_bindings))]
382382
type DynSignerProvider = dyn lightning::sign::SignerProvider<EcdsaSigner = lightning::sign::InMemorySigner>
383383
+ Send
384384
+ Sync;
385385

386-
#[cfg(all(not(c_bindings), taproot))]
387-
type DynSignerProvider = (dyn lightning::sign::SignerProvider<
388-
EcdsaSigner = lightning::sign::InMemorySigner,
389-
TaprootSigner = lightning::sign::InMemorySigner,
390-
> + Send
391-
+ Sync);
392-
393386
#[cfg(not(c_bindings))]
394387
type DynChannelManager = lightning::ln::channelmanager::ChannelManager<
395388
&'static (dyn chain::Watch<lightning::sign::InMemorySigner> + Send + Sync),

lightning-tests/Cargo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,4 @@ level = "forbid"
2929
#
3030
# Note that Cargo automatically declares corresponding cfgs for every feature
3131
# defined in the member-level [features] tables as "expected".
32-
check-cfg = [
33-
"cfg(taproot)",
34-
]
32+
check-cfg = []

lightning-tests/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#[cfg_attr(test, macro_use)]
22
extern crate lightning;
33

4-
#[cfg(all(test, not(taproot)))]
4+
#[cfg(test)]
55
pub mod upgrade_downgrade_tests;

lightning/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,5 @@ features = ["bitcoinconsensus", "secp-recovery"]
6565
[target.'cfg(ldk_bench)'.dependencies]
6666
criterion = { version = "0.4", optional = true, default-features = false }
6767

68-
[target.'cfg(taproot)'.dependencies]
69-
musig2 = { git = "https://github.com/arik-so/rust-musig2", rev = "6f95a05718cbb44d8fe3fa6021aea8117aa38d50" }
70-
7168
[lints]
7269
workspace = true

0 commit comments

Comments
 (0)