Split KeysInterface::get_channel_signer into two
authorWilmer Paulino <wilmer.paulino@gmail.com>
Mon, 21 Nov 2022 20:45:30 +0000 (12:45 -0800)
committerWilmer Paulino <wilmer.paulino@gmail.com>
Mon, 5 Dec 2022 20:11:23 +0000 (12:11 -0800)
commitb04d1b868fe28bea2e4c711e6e6d2470d2b98d77
tree3074153b2d808a8cd821a9f7c1f196c89c19ecc0
parent52edb351575ec997c414a66df0142f46a39aeba3
Split KeysInterface::get_channel_signer into two

`get_channel_signer` previously had two different responsibilites:
generating unique `channel_keys_id` and using said ID to derive channel
keys. We decide to split it into two methods `generate_channel_keys_id`
and `derive_channel_signer`, such that we can use the latter to fulfill
our goal of re-deriving signers instead of persisting them. There's no
point in storing data that can be easily re-derived.
fuzz/src/chanmon_consistency.rs
fuzz/src/full_stack.rs
fuzz/src/onion_message.rs
lightning/src/chain/keysinterface.rs
lightning/src/ln/chan_utils.rs
lightning/src/ln/channel.rs
lightning/src/ln/functional_tests.rs
lightning/src/util/byte_utils.rs
lightning/src/util/test_utils.rs