verify static method

bool verify(
  1. String message,
  2. String signature,
  3. String? publicKey
)

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) {
  return bip340.verify(publicKey, message, signature);
}