Make TxCreationKeys public and wrap it in PreCalculatedTxCreationKeys
authorDevrandom <c1.devrandom@niftybox.net>
Sun, 9 Aug 2020 13:45:23 +0000 (15:45 +0200)
committerDevrandom <c1.devrandom@niftybox.net>
Mon, 10 Aug 2020 18:21:07 +0000 (20:21 +0200)
commitd2e6f2ac18159f4d9b3b1cbc30bebd03030f0304
treeb2dd300fa1f81208b9be15cd625dc2a44c31944f
parentd735a24e6a573eabbb0b2e6f1988d63a46351372
Make TxCreationKeys public and wrap it in PreCalculatedTxCreationKeys

Allows calling of InMemoryChannelKeys methods.

The wrapping makes it obvious to signer implementers that the pre-derived keys are a local cache and should not be trusted in a validating signer.
lightning/src/chain/keysinterface.rs
lightning/src/ln/chan_utils.rs
lightning/src/ln/channel.rs
lightning/src/ln/functional_tests.rs
lightning/src/util/enforcing_trait_impls.rs