validateMessageOwner method

bool validateMessageOwner(
  1. NearbyMessage message
)

Implementation

bool validateMessageOwner(NearbyMessage message) {
  if (verifier == null) {
    return false;
  }

  try {
    return verifier!.verifyMessage(message.message, message.signature);
  } catch (e) {
    logger.e("Could not validate message owner: $e");
    return false;
  }
}