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>
Tue, 12 May 2020 21:41:33 +0000 (17:41 -0400)
commit7d22e5d516ed2a3cac6f91ea24f92f803b1b3c8d
tree25e23e41bb1c803583827dfe0711bb917d8d36a6
parent883b630aa212522f72019c53b647c3eaa1d4aa07
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