コード例 #1
0
 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);
 }
コード例 #2
0
 private static bool IsMine(Number160 key, IPublicKey publicKey)
 {
     return(key.Equals(Utils.MakeShaHash(publicKey.GetEncoded())));
 }
コード例 #3
0
ファイル: StorageLayer.cs プロジェクト: pacificIT/TomP2P.NET
        private static bool IsMine(Number160 key, IPublicKey publicKey)
        {
		    return key.Equals(Utils.MakeShaHash(publicKey.GetEncoded()));
	    }