verifyBip340Signature method
Verifies a BIP-340 Schnorr signature using a public key.
digest: A 32-byte message digest that was signed.signature: A 64-byte Schnorr signature (R.x || s).tapTweakHash(optional): A 32-byte tweak hash used to modify the public key.
Implementation
bool verifyBip340Signature({
required List<int> digest,
required List<int> signature,
List<int>? tapTweakHash,
}) {
return verifyBip340SignatureUsingXOnly(
xOnly: _verifyKey.publicKey.point.toXonly(),
digest: digest,
signature: signature,
tapTweakHash: tapTweakHash,
);
}