equals method

  1. @override
Future<bool> equals(
  1. PublicKey other
)
override

Checks if this public key is equal to another

Implementation

@override
Future<bool> equals(p2pkeys.PublicKey other) async {
  if (other is! RsaPublicKey) return false;

  // Compare modulus and exponent
  return _key.modulus == other._key.modulus &&
         _key.exponent == other._key.exponent;
}