]> 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>
Tue, 12 May 2020 21:41:33 +0000 (17:41 -0400)
commit883b630aa212522f72019c53b647c3eaa1d4aa07
tree11c85779c213d0ec99d94869c2f3eeda2c30a6ae
parent609afb2e6a51bcdda6f457dfae64e17172da3d08
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