verify method

bool verify(
  1. String message,
  2. Uint8List signature
)

returns true if the message was signed with this public key's

Implementation

bool verify(String message, Uint8List signature) {
  final msg = singleHash(magicMessage(message));
  return ec.verify(msg, toBytes(), signature.sublist(1));
}