]> git.bitcoin.ninja Git - rust-lightning/commit
Ensure the per-channel key derivation counter doesn't role over
authorMatt Corallo <git@bluematt.me>
Wed, 28 Dec 2022 18:12:29 +0000 (18:12 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 3 Jan 2023 22:09:15 +0000 (22:09 +0000)
commit7d4df95e70fe08af4b7dee8c44d55b8614aaf8ea
tree8de0d32a880ca9e642c8093b0d6061ba429d6fef
parentb60253c61c4cc537b46f6393440a93279bd46f56
Ensure the per-channel key derivation counter doesn't role over

Previously, the `derive_channel_keys` derivation ID asserted that
the high bit of the per-channel key derivation counter doesn't
role over as it checked the 31st bit was zero. As we no longer do
that, we should ensure the assertion in `generate_channel_keys_id`
asserts that we don't role over.
lightning/src/chain/keysinterface.rs