private bool ForceOverrideEntry(Number160 entryKey, IPublicKey publicKey) { // we are in public key mode if (ProtectionEntryMode == ProtectionMode.MasterPublicKey && publicKey?.GetEncoded() != null) { // if the hash of the public key is the same as the domain, we can overwrite return(IsMine(entryKey, publicKey)); } return(false); }
private static bool IsMine(Number160 key, IPublicKey publicKey) { return(key.Equals(Utils.MakeShaHash(publicKey.GetEncoded()))); }
private static bool IsMine(Number160 key, IPublicKey publicKey) { return key.Equals(Utils.MakeShaHash(publicKey.GetEncoded())); }