@@ -2145,6 +2145,7 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
2145
2145
.map(|(sig, _)| sig).ok()?
2146
2146
},
2147
2147
// TODO (taproot|arik)
2148
+ #[cfg(taproot)]
2148
2149
_ => todo!()
2149
2150
};
2150
2151
@@ -2199,6 +2200,7 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
2199
2200
(counterparty_initial_commitment_tx, funding_signed)
2200
2201
},
2201
2202
// TODO (taproot|arik)
2203
+ #[cfg(taproot)]
2202
2204
_ => todo!()
2203
2205
}
2204
2206
}
@@ -3492,6 +3494,7 @@ impl<SP: Deref> Channel<SP> where
3492
3494
).map_err(|_| ChannelError::Close("Failed to validate revocation from peer".to_owned()))?;
3493
3495
},
3494
3496
// TODO (taproot|arik)
3497
+ #[cfg(taproot)]
3495
3498
_ => todo!()
3496
3499
};
3497
3500
@@ -4447,6 +4450,7 @@ impl<SP: Deref> Channel<SP> where
4447
4450
}), None, None))
4448
4451
},
4449
4452
// TODO (taproot|arik)
4453
+ #[cfg(taproot)]
4450
4454
_ => todo!()
4451
4455
}
4452
4456
}
@@ -4700,6 +4704,7 @@ impl<SP: Deref> Channel<SP> where
4700
4704
}), signed_tx, shutdown_result))
4701
4705
},
4702
4706
// TODO (taproot|arik)
4707
+ #[cfg(taproot)]
4703
4708
_ => todo!()
4704
4709
}
4705
4710
}
@@ -5333,6 +5338,7 @@ impl<SP: Deref> Channel<SP> where
5333
5338
})
5334
5339
},
5335
5340
// TODO (taproot|arik)
5341
+ #[cfg(taproot)]
5336
5342
_ => todo!()
5337
5343
}
5338
5344
}
@@ -5362,6 +5368,7 @@ impl<SP: Deref> Channel<SP> where
5362
5368
})
5363
5369
},
5364
5370
// TODO (taproot|arik)
5371
+ #[cfg(taproot)]
5365
5372
_ => todo!()
5366
5373
}
5367
5374
} else {
@@ -5737,6 +5744,7 @@ impl<SP: Deref> Channel<SP> where
5737
5744
}, (counterparty_commitment_txid, commitment_stats.htlcs_included)))
5738
5745
},
5739
5746
// TODO (taproot|arik)
5747
+ #[cfg(taproot)]
5740
5748
_ => todo!()
5741
5749
}
5742
5750
}
@@ -9105,7 +9113,7 @@ use crate::ln::channelmanager::{self, HTLCSource, PaymentId};
9105
9113
assert_eq!(chan_utils::build_commitment_secret(&seed, 1),
9106
9114
<Vec<u8>>::from_hex("915c75942a26bb3a433a8ce2cb0427c29ec6c1775cfc78328b57f6ba7bfeaa9c").unwrap()[..]);
9107
9115
}
9108
-
9116
+
9109
9117
#[test]
9110
9118
fn test_key_derivation() {
9111
9119
// Test vectors from BOLT 3 Appendix E:
0 commit comments