示例#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));
 }
示例#2
0
 public bool Equals(KeyPair other)
 {
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     return(PublicKey.Equals(other.PublicKey));
 }
示例#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)));
 }
示例#4
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);
 }