]> git.bitcoin.ninja Git - rust-lightning/commit
Dry-up witnessScript in sign_justice_transaction
authorAntoine Riard <ariard@student.42.fr>
Mon, 4 May 2020 06:20:56 +0000 (02:20 -0400)
committerAntoine Riard <ariard@student.42.fr>
Thu, 28 May 2020 08:21:47 +0000 (04:21 -0400)
commit479e1c8ddfc6caa11cd4f872e0b7149534035423
tree3fc9e371be3473a3eb367fced6c34235df0422ff
parent7de03e175b590e5b1173778186afaa6815f3512b
Dry-up witnessScript in sign_justice_transaction

Instead of blindly signing provided witnessScript, signer must derive
channel keys corresponding to the provided per-commitment-point and
regenerate templated witnessScript to ensure its syntax correctness.
lightning/src/chain/keysinterface.rs
lightning/src/ln/onchaintx.rs
lightning/src/util/enforcing_trait_impls.rs