]> git.bitcoin.ninja Git - rust-lightning/commit
Ensure the per-channel key derivation counter doesn't role over 2022-12-no-non-time-panic
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 17:34:19 +0000 (17:34 +0000)
commit5dde803d087dfbaab4e84241eaddd8407cc5baef
tree47c41336037745a05c27c2ac53d6bcfdbcda04fb
parent34de734194f88a63a9507aeeafb14ef6e8775eb2
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