]> 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>
Tue, 12 May 2020 00:29:39 +0000 (20:29 -0400)
commit95f3c9774463a2a22dddbfdf4b8aec2ba43db1b8
tree8f00b805dabf9e5cb4a8ead2a89c63dabb27516e
parent299d16fd247921d2735c9d3df6152d5088215e72
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