]> git.bitcoin.ninja Git - rust-lightning/commit
Move node_id signing of ChannelAnnouncement into Signer
authorMatt Corallo <git@bluematt.me>
Sun, 14 Nov 2021 17:25:39 +0000 (17:25 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 21 Dec 2021 00:16:55 +0000 (00:16 +0000)
commit92f49603374730b1adf7ea27d17bc68bb466b0cd
treeeb1740ea423d1a001cb8b5cba67e19a1f91a8992
parent2a8a396f1ed612ed0cbd2b6cef7d1816b128c5c9
Move node_id signing of ChannelAnnouncement into Signer

This removes one more place where we directly access the node_id
secret key in `ChannelManager`, slowly marching towards allowing
the node_id secret key to be offline in the signer.

More importantly, it allows more ChannelAnnouncement logic to move
into the `Channel` without having to pass the node secret key
around, avoiding the announcement logic being split across two
files.
fuzz/src/chanmon_consistency.rs
fuzz/src/full_stack.rs
lightning/src/chain/channelmonitor.rs
lightning/src/chain/keysinterface.rs
lightning/src/ln/channel.rs
lightning/src/ln/channelmanager.rs
lightning/src/util/enforcing_trait_impls.rs
lightning/src/util/test_utils.rs