]> git.bitcoin.ninja Git - rust-lightning/commit
ChannelKeys - separate commitment revocation from getting the per-commitment point
authorDevrandom <c1.devrandom@niftybox.net>
Sat, 11 Jul 2020 10:19:43 +0000 (03:19 -0700)
committerDevrandom <c1.devrandom@niftybox.net>
Wed, 22 Jul 2020 18:47:10 +0000 (11:47 -0700)
commitb19d4475cbfb4c784d7f2ba3125baf31c81d4df0
treef37c16209170ebed4525fcafff0512b3438aae4f
parent50df4cf464261fbc6d808892cd43b7599c2274eb
ChannelKeys - separate commitment revocation from getting the per-commitment point

The commitment secret is sensitive - it can be used by an attacker to
steal funds if the node also signs the same transaction. Therefore,
only release the secret from ChannelKeys when we are revoking a
transaction.
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