btcd/btcec/schnorr/musig2
Olaoluwa Osuntokun f7168c8663
schnorr/musig2: add native support for taproot output key tweaking
In this commit, we add a series of new options and methods to make it
easier to use the package in the context of a taproot output that
commits to a script root or some other value. Before this series of
changes, the API was hard to use in this context as the taproot tweak
actually includes the internal public key, which in this case is the
aggregated public key. So you actually needed to call that API w/o the
tweak, get that, then recompute the tweak itself.

To make things easier in the taproot context, we've added a series of
new options that'll return the aggregated key before any tweaks (to be
used as the internal key), and also handle computing the BIP 341 tweak
value for the caller.
2022-04-28 16:19:57 -07:00
..
bench_test.go schnorr/musig2: add native support for taproot output key tweaking 2022-04-28 16:19:57 -07:00
context.go schnorr/musig2: add native support for taproot output key tweaking 2022-04-28 16:19:57 -07:00
keys.go schnorr/musig2: add native support for taproot output key tweaking 2022-04-28 16:19:57 -07:00
musig2_test.go schnorr/musig2: add native support for taproot output key tweaking 2022-04-28 16:19:57 -07:00
nonces.go btcec/schnorr/musig2: add safer signing API with Session+Context 2022-04-28 16:19:53 -07:00
sign.go schnorr/musig2: add native support for taproot output key tweaking 2022-04-28 16:19:57 -07:00