verify static method
message
is a hex string
signature
is a hex string
publicKey
is a 32-bytes hex-encoded string
true if the signature is valid otherwise false
Implementation
static bool verify(String message, String signature, String? publicKey) {
if (publicKey == null) {
return false;
}
return bip340.verify(publicKey, message, signature);
}