Пример #1
0
 public override int GetHashCode()
 {
     if (KeyType == CfdDescriptorKeyType.Bip32)
     {
         return(KeyType.GetHashCode() + ExtPubkey.GetHashCode());
     }
     else if (KeyType == CfdDescriptorKeyType.Bip32Priv)
     {
         return(KeyType.GetHashCode() + ExtPrivkey.GetHashCode());
     }
     else if (KeyType == CfdDescriptorKeyType.Public)
     {
         return(KeyType.GetHashCode() + Pubkey.GetHashCode());
     }
     else
     {
         return(KeyType.GetHashCode());
     }
 }
 public override int GetHashCode()
 {
     return(Pubkey.GetHashCode() + ControlBlock.GetHashCode() + TapScript.GetHashCode());
 }