]> git.bitcoin.ninja Git - rust-lightning/commit
Split `sign_justice_transaction` in two halves
authorAntoine Riard <dev@ariard.me>
Sat, 15 May 2021 21:20:10 +0000 (17:20 -0400)
committerAntoine Riard <dev@ariard.me>
Tue, 18 May 2021 02:31:28 +0000 (22:31 -0400)
commit55eccfa7b3307796d80321982958cbaa2d2854de
treee459bb9351786980e32cfb6fbb4324f8b92815e7
parentfcc0723528c12462c851d8d75f399a5c571569d2
Split `sign_justice_transaction` in two halves

To avoid caller data struct storing HTLC-related information when
a revokeable output is claimed on top of a commitment/second-stage
HTLC transactions, we split `keysinterface::sign_justice_transaction`
in two new halves `keysinterfaces::sign_justice_revoked_output` and
`keysinterfaces::sign_justice_revoked_htlc`.

Further, this split offers more flexibility to signer policy as a
commitment revokeable output might be of a value far more significant
than HTLC ones.
lightning/src/chain/keysinterface.rs
lightning/src/ln/onchaintx.rs
lightning/src/util/enforcing_trait_impls.rs