Dry-up witnessScript in sign_remote_htlc_transaction
authorAntoine Riard <ariard@student.42.fr>
Mon, 4 May 2020 06:35:54 +0000 (02:35 -0400)
committerAntoine Riard <ariard@student.42.fr>
Thu, 28 May 2020 08:21:47 +0000 (04:21 -0400)
commit06445b61893ab74ec09765a10c091415e877a82c
tree1253d260e7b30ebb80535ea90b1a7f2c1883c488
parent479e1c8ddfc6caa11cd4f872e0b7149534035423
Dry-up witnessScript in sign_remote_htlc_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