musigNonceValidate

open fun musigNonceValidate(secretnonce: ByteArray, pubkey: ByteArray): Boolean

Check that a secret nonce was generated with a public key that matches the private key used for signing.

Return

false if the secret nonce does not match the public key.

Parameters

secretnonce

secret nonce.

pubkey

public key for the private key that will be used, with the secret nonce, to generate a partial signature.