verify method

bool verify({
  1. required List<int> message,
  2. required List<int> signature,
})

Verify a message using the public key and signature.

Implementation

bool verify({required List<int> message, required List<int> signature}) {
  // Create a verifier from the public key bytes.
  final SolanaVerifier verifier = SolanaVerifier.fromKeyBytes(toBytes());
  // Verify the message and signature using the verifier.
  return verifier.verify(message, signature);
}