Esempio n. 1
0
 public bool Equals(CfdKeyData other)
 {
     if (KeyType != other.KeyType)
     {
         return(false);
     }
     else if (KeyType == CfdDescriptorKeyType.Bip32)
     {
         return(ExtPubkey.Equals(other.ExtPubkey));
     }
     else if (KeyType == CfdDescriptorKeyType.Bip32Priv)
     {
         return(ExtPrivkey.Equals(other.ExtPrivkey));
     }
     else if (KeyType == CfdDescriptorKeyType.Public)
     {
         return(Pubkey.Equals(other.Pubkey));
     }
     else if (KeyType == CfdDescriptorKeyType.SchnorrPubkey)
     {
         return(SchnorrPubkey.Equals(other.SchnorrPubkey));
     }
     else
     {
         return(false);
     }
 }
 public bool Equals(TaprootScriptData other)
 {
     return(Pubkey.Equals(other.Pubkey) &&
            ControlBlock.Equals(other.ControlBlock) &&
            TapScript.Equals(other.TapScript));
 }