lnd/lnrpc/signrpc
Olaoluwa Osuntokun 630fc36dcf
multi: introduce and use new TapTweak and SignMethod fields
In this commit, we add a new field `TapTweak` to be used for key path
spends. Before this commit, we'd overload the existing `WitnessScript`
field to pass this information to the signing context. This was
confusing as for tapscript spends, this was the leaf script, which
mirrors the other script based spending types.

With this new filed, users need to set this to the script root for
keypath spends where the output key commits to a real merkle root, and
nothing when bip 86 spending is being used.

To make the signing even more explicit, we also add a new field called
sign_method with an enum type that differentiates between the different
segwit v0 and v1 signing methods.

Fixes https://github.com/lightningnetwork/lnd/issues/6446.
2022-05-11 10:07:49 +02:00
..
config_active.go multi: add golang 1.17 compatible build tags 2021-09-29 17:31:37 -07:00
config_default.go multi: add golang 1.17 compatible build tags 2021-09-29 17:31:37 -07:00
driver.go multi: Fix typos [skip ci] 2022-01-24 12:19:02 +02:00
log.go lnrpc: fix log.go files 2022-04-01 18:12:59 -07:00
signer_grpc.pb.go signrpc: add MuSig2Cleanup RPC 2022-05-04 19:23:57 +02:00
signer_server.go multi: introduce and use new TapTweak and SignMethod fields 2022-05-11 10:07:49 +02:00
signer.pb.go multi: introduce and use new TapTweak and SignMethod fields 2022-05-11 10:07:49 +02:00
signer.pb.gw.go signrpc: add MuSig2Cleanup RPC 2022-05-04 19:23:57 +02:00
signer.pb.json.go signrpc: add MuSig2Cleanup RPC 2022-05-04 19:23:57 +02:00
signer.proto multi: introduce and use new TapTweak and SignMethod fields 2022-05-11 10:07:49 +02:00
signer.swagger.json multi: introduce and use new TapTweak and SignMethod fields 2022-05-11 10:07:49 +02:00
signer.yaml signrpc: add MuSig2Cleanup RPC 2022-05-04 19:23:57 +02:00