musigPubkeyXonlyTweakAdd

abstract fun musigPubkeyXonlyTweakAdd(keyaggCache: ByteArray, tweak32: ByteArray): ByteArray

Tweak the aggregated public key of a signing session, treating it as an x-only public key (e.g. when using taproot).

Return

with_even_y(P) + tweak32 * G (where P is the aggregated public key from keyaggCache). The key aggregation cache will be updated with the tweaked public key.

Parameters

keyaggCache

key aggregation cache filled by musigPubkeyAgg.

tweak32

private key tweak to apply.