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