musigNonceGenCounter

open override fun musigNonceGenCounter(nonRepeatingCounter: ULong, privkey: ByteArray, msg32: ByteArray?, keyaggCache: ByteArray?, extraInput32: ByteArray?): ByteArray

Alternative counter-based method for generating nonce. This nonce must never be persisted or reused across signing sessions. All optional arguments exist to enrich the quality of the randomness used, which is critical for security.

Return

serialized version of the secret nonce and the corresponding public nonce.

Parameters

nonRepeatingCounter

non-repeating counter that must never be reused with the same private key

privkey

signer's private key.

msg32

(optional) 32-byte message that will be signed, if already known.

keyaggCache

(optional) key aggregation cache data from the signing session.

extraInput32

(optional) additional 32-byte random data.