]> git.bitcoin.ninja Git - rust-lightning/commit
Add ChanSigner in OnchainTxHandler
authorAntoine Riard <ariard@student.42.fr>
Wed, 18 Mar 2020 04:29:26 +0000 (00:29 -0400)
committerAntoine Riard <ariard@student.42.fr>
Sat, 21 Mar 2020 21:03:48 +0000 (17:03 -0400)
commit16fba9fd664522ac8d24111547b41dd4ff94812b
treee69967d2157d24bceb3f0c39dc11eecc0d2f06ce
parent1dbda4faedc33506e63176e6a45687b5d756fe10
Add ChanSigner in OnchainTxHandler

Rename ChannelMonitor::Storage to OnchainDetection,
holder of channel state (base_key+per_commitment_point)
to detect onchain transactions accordingly.

Going further between splitting detection and transaction
generation, we endow OnchainTxHandler with keys access.
That way, in latter commits, we may remove secret keys entirely
from ChannelMonitor.
lightning/src/ln/channelmonitor.rs
lightning/src/ln/onchaintx.rs