signSchnorr

fun signSchnorr(    data: ByteVector32,     privateKey: PrivateKey,     schnorrTweak: Crypto.SchnorrTweak,     auxrand32: ByteVector32? = null): ByteVector64

Return

the Schnorr signature of data with private key (optionally tweaked with the tapscript merkle root)

Parameters

data

data to sign (32 bytes)

privateKey

private key

schnorrTweak

specify how to tweak the private key.

auxrand32

optional auxiliary random data