@@ -140,8 +140,6 @@ pub enum SpendableOutputDescriptor {
140
140
/// regenerated by passing the revocation_pubkey (derived as above), our delayed_payment pubkey
141
141
/// (derived as above), and the to_self_delay contained here to
142
142
/// chan_utils::get_revokeable_redeemscript.
143
- //
144
- // TODO: we need to expose utility methods in KeyManager to do all the relevant derivation.
145
143
DynamicOutputP2WSH ( DynamicP2WSHOutputDescriptor ) ,
146
144
/// An output to a P2WPKH, spendable exclusively by our payment key (ie the private key which
147
145
/// corresponds to the public key in ChannelKeys::pubkeys().payment_point).
@@ -229,14 +227,6 @@ impl Readable for SpendableOutputDescriptor {
229
227
/// In any case, ChannelMonitor or fallback watchtowers are always going to be trusted
230
228
/// to act, as liveness and breach reply correctness are always going to be hard requirements
231
229
/// of LN security model, orthogonal of key management issues.
232
- ///
233
- /// If you're implementing a custom signer, you almost certainly want to implement
234
- /// Readable/Writable to serialize out a unique reference to this set of keys so
235
- /// that you can serialize the full ChannelManager object.
236
- ///
237
- // (TODO: We shouldn't require that, and should have an API to get them at deser time, due mostly
238
- // to the possibility of reentrancy issues by calling the user's code during our deserialization
239
- // routine).
240
230
// TODO: We should remove Clone by instead requesting a new ChannelKeys copy when we create
241
231
// ChannelMonitors instead of expecting to clone the one out of the Channel into the monitors.
242
232
pub trait ChannelKeys : Send +Clone + Writeable {
@@ -252,7 +242,7 @@ pub trait ChannelKeys : Send+Clone + Writeable {
252
242
/// May be called more than once for the same index.
253
243
///
254
244
/// Note that the commitment number starts at (1 << 48) - 1 and counts backwards.
255
- /// TODO: return a Result so we can signal a validation error
245
+ // TODO: return a Result so we can signal a validation error
256
246
fn release_commitment_secret ( & self , idx : u64 ) -> [ u8 ; 32 ] ;
257
247
/// Gets the holder's channel public keys and basepoints
258
248
fn pubkeys ( & self ) -> & ChannelPublicKeys ;
0 commit comments