Skip to content

Commit 29d6c13

Browse files
committed
Drop stale and cleanup TODO entries in keysinterface
1 parent d9ab122 commit 29d6c13

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

lightning/src/chain/keysinterface.rs

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

0 commit comments

Comments
 (0)