Add test_key_derivation_params
authorAntoine Riard <ariard@student.42.fr>
Mon, 18 May 2020 08:19:32 +0000 (04:19 -0400)
committerAntoine Riard <ariard@student.42.fr>
Thu, 28 May 2020 08:21:47 +0000 (04:21 -0400)
commit81e358c91ff398fbf5a16e3a94207d612c5181a4
tree93fdbed4cfba0edf699fd1f5b5c63c64da951428
parentd0c5e9c81d74c667684bba34166074c89f158485
Add test_key_derivation_params

`to_local` output or remote output on remote commitment transaction
needs a channel keys to be spent. As per-channel keys are derived from
KeysManager seed and per-channel secrets those must be backed up by
any descriptor bookmarking for latter spend. We test that generating
a new KeysManager loaded with such backed-up seed/per-channel secrets
return the correct keys for spending a `to_local` output.
lightning/src/ln/functional_tests.rs