]> git.bitcoin.ninja Git - rust-lightning/commit
Make commitment transaction signing a part of ChannelKeys.
authorMatt Corallo <git@bluematt.me>
Wed, 27 Nov 2019 21:08:48 +0000 (16:08 -0500)
committerMatt Corallo <git@bluematt.me>
Wed, 11 Dec 2019 22:29:42 +0000 (17:29 -0500)
commit262666ad7fe266004845cd140a3c1923f757fd28
treed051f40517a596034072538121e178f9fb44d6eb
parentf2a2fd0d48be78972ed81481c2dfbfb68ecda44e
Make commitment transaction signing a part of ChannelKeys.

This adds a new fn to ChannelKeys which is called when we generte
a new remote commitment transaction for signing. While it may be
theoretically possible to unwind state updates by disconnecting and
reconnecting as well as making appropriate state machine changes,
the effort required to get it correct likely outweighs the UX cost
of "preflighting" the requests to hardwre wallets.
lightning/src/chain/keysinterface.rs
lightning/src/ln/chan_utils.rs
lightning/src/ln/channel.rs
lightning/src/ln/mod.rs
lightning/src/util/enforcing_trait_impls.rs
lightning/src/util/ser.rs