]> git.bitcoin.ninja Git - rust-lightning/commit
Re-derive signers upon deserializing OnchainTxHandler
authorWilmer Paulino <wilmer.paulino@gmail.com>
Mon, 21 Nov 2022 20:49:05 +0000 (12:49 -0800)
committerWilmer Paulino <wilmer.paulino@gmail.com>
Mon, 5 Dec 2022 20:11:31 +0000 (12:11 -0800)
commitbfc848e89254d9b511dc6d9b516a2c24c9f43082
treec84392701dc96079be3d3f905bf1ab2c7475e6b3
parentf053860f2e98c92bbe69f114b6bb1e861cefbc6c
Re-derive signers upon deserializing OnchainTxHandler

Similar to the previous commit, we introduce a new serialization version
that doesn't store a monitor's signer. Since the monitor already knows
of a channel's `channel_keys_id`, there's no need to store any new data
to re-derive all private key material for said channel.
lightning/src/chain/channelmonitor.rs
lightning/src/chain/onchaintx.rs