lnd.xprv/lnwallet
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
..
btcwallet lnwallet: extend the SignDescriptor to include a PrivateTweak 2016-11-18 17:12:58 -08:00
channel_test.go lnwallet: convert CommitSpendRevoke+CommitSpendNoDelay to use Signer 2016-11-18 15:23:50 -08:00
channel.go lnwallet: encode obfuscated state hints in the commitment tx 2016-11-16 12:49:44 -08:00
config.go config: add --pendingchannel lnd flag 2016-10-22 02:11:18 +03:00
interface_test.go lnwallet: extend the SignDescriptor to include a PrivateTweak 2016-11-18 17:12:58 -08:00
interface.go lnwallet: extend the SignDescriptor to include a PrivateTweak 2016-11-18 17:12:58 -08:00
log.go lnwallet: switch name of package logger to avoid module collision 2016-07-27 11:29:07 -07:00
reservation.go lnwallet: integrate obfuscated state hints into funding workflow 2016-11-16 12:54:39 -08:00
script_utils_test.go lnwallet: convert CommitSpendRevoke+CommitSpendNoDelay to use Signer 2016-11-18 15:23:50 -08:00
script_utils.go lnwallet: convert CommitSpendRevoke+CommitSpendNoDelay to use Signer 2016-11-18 15:23:50 -08:00
wallet.go lnwallet: extend the SignDescriptor to include a PrivateTweak 2016-11-18 17:12:58 -08:00