Beispiel #1
0
 public bool Equals(StealthKeyPair other)
 {
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     return(PayloadPubKey.Equals(other.PayloadPubKey) && ViewPubKey.Equals(other.ViewPubKey));
 }
Beispiel #2
0
 public bool Equals(KeyPair other)
 {
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     return(PublicKey.Equals(other.PublicKey));
 }
Beispiel #3
0
 public bool Equals(KeyPair other)
 {
     TR.Enter();
     if (ReferenceEquals(this, other))
     {
         return(TR.Exit(true));
     }
     if (ReferenceEquals(null, other))
     {
         return(TR.Exit(false));
     }
     return(TR.Exit(PublicKey.Equals(other.PublicKey)));
 }
 public bool Equals(StealthKeyPair other)
 {
     if (ReferenceEquals(this, other)) return true;
     if (ReferenceEquals(null, other)) return false;
     return PayloadPubKey.Equals(other.PayloadPubKey) && ViewPubKey.Equals(other.ViewPubKey);
 }