@@ -35,6 +35,7 @@ use crate::ln::types::ChannelId;
3535use crate :: ln:: msgs:: { self , BaseMessageHandler , Init , MessageSendEvent } ;
3636use crate :: ln:: our_peer_storage:: OurPeerStorage ;
3737use crate :: sign:: ecdsa:: EcdsaChannelSigner ;
38+ use crate :: sign:: PeerStorageKey ;
3839use crate :: events:: { self , Event , EventHandler , ReplayEvent } ;
3940use crate :: util:: logger:: { Logger , WithContext } ;
4041use crate :: util:: errors:: APIError ;
@@ -217,23 +218,6 @@ impl<ChannelSigner: EcdsaChannelSigner> Deref for LockedChannelMonitor<'_, Chann
217218 }
218219}
219220
220- /// Represents Secret Key used for encrypting Peer Storage.
221- #[ derive( Clone , PartialEq , Eq ) ]
222- pub struct PeerStorageKey ( [ u8 ; 32 ] ) ;
223-
224- impl PeerStorageKey {
225- /// Creates a new `PeerStorageKey` from a `[u8; 32]` array.
226- pub fn new ( key : [ u8 ; 32 ] ) -> Self {
227- PeerStorageKey ( key)
228- }
229-
230- /// Returns a reference to the inner `[u8; 32]` array.
231- pub fn as_bytes ( & self ) -> & [ u8 ; 32 ] {
232- & self . 0
233- }
234- }
235-
236-
237221/// An implementation of [`chain::Watch`] for monitoring channels.
238222///
239223/// Connected and disconnected blocks must be provided to `ChainMonitor` as documented by
@@ -702,7 +686,7 @@ where C::Target: chain::Filter,
702686 ///
703687 /// This function collects the counterparty node IDs from all monitors into a `HashSet`,
704688 /// ensuring unique IDs are returned.
705- fn get_peer_node_ids ( & self ) -> HashSet < PublicKey > {
689+ fn all_counterparty_node_ids ( & self ) -> HashSet < PublicKey > {
706690 let mon = self . monitors . read ( ) . unwrap ( ) ;
707691 mon
708692 . values ( )
0 commit comments