]> git.bitcoin.ninja Git - rust-lightning/commit
Add KeysManager::derive_unique_start
authorAntoine Riard <ariard@student.42.fr>
Tue, 12 May 2020 00:29:39 +0000 (20:29 -0400)
committerAntoine Riard <ariard@student.42.fr>
Mon, 18 May 2020 08:50:26 +0000 (04:50 -0400)
commitf8ea748268a7700c33b6e0905f9f33844469fc83
tree8e8c4ff8f0abfc16aa388dd8a99e2a700fa5c190
parentea238a24b4c02d06c29cb17320fcb463c91c7cd4
Add KeysManager::derive_unique_start

In next commit, we add derive_channel_keys, a helper to rederive
keys from a SpendableOuptutDescriptor. We still need to ensure
that user rederive same set of keys even if KeyManager is started
at a later time. For doing so we need to pass starting time as
part of the re-derived sha_state, therefore we need to make it
accessible and part of channel state key material.

Seed is already required to be conserved between KeysManager
serializations.
lightning/src/chain/keysinterface.rs