lnd/lnwallet/btcwallet
Olaoluwa Osuntokun e942e70651
lnwallet: extend the SignDescriptor to include a PrivateTweak
This commit extends the SignDescriptor with a single attribute, the
‘PrivateTweak’. The duties of the Signer interface have also been
augmented to properly derive a private key using the specified tweak,
iff it’s non-nil.

As currently defined in order to generate the proper private key based
off of a PrivateTweak, the signer is to add the tweak value to the
private key for the specified public key. This generated value is to be
used for signing within the specified context.

This change paves the way for automatic revoked output sweeping with
signatures generated directly by the Signer interface, maintaining the
structure of the abstraction.

A test has been added at the interface level in order to excerise each
WalletController’s implementation of the key derivation as currently
defined.
2016-11-18 17:12:58 -08:00
..
blockchain.go lnwallet: add a BtcWallet implementation of WalletController 2016-09-08 12:25:32 -07:00
btcwallet.go multi: use witnessScript everywhere instead of redeemScript 2016-10-15 16:02:09 -07:00
config.go lnwallet: add a BtcWallet implementation of WalletController 2016-09-08 12:25:32 -07:00
driver.go lnwallet: add a BtcWallet implementation of WalletController 2016-09-08 12:25:32 -07:00
signer.go lnwallet: extend the SignDescriptor to include a PrivateTweak 2016-11-18 17:12:58 -08:00