Verify() public method

public Verify ( ) : bool
return bool
Esempio n. 1
0
        internal void ProcessAddMemoMessage(Node messageFrom, MemoInfo memoInfo)
        {
            Memo memo = new Memo (network, memoInfo);

            if (!Core.IsLocalNode(memo.Node)) {
                if (network.TrustedNodes.ContainsKey(memo.Node.NodeID) && memo.Verify() == false) {
                    LoggingService.LogWarning("Ignored a memo with an invalid signature!");
                    return;
                }
                network.AddOrUpdateMemo(memo);
            }
        }
Esempio n. 2
0
        internal void ProcessAddMemoMessage(Node messageFrom, MemoInfo memoInfo)
        {
            Memo memo = new Memo(network, memoInfo);

            if (!memo.Node.IsLocal)
            {
                if (network.TrustedNodes.ContainsKey(memo.Node.NodeID) && memo.Verify() == false)
                {
                    Core.LoggingService.LogWarning("Ignored a memo with an invalid signature!");
                    return;
                }
                network.AddOrUpdateMemo(memo);
            }
        }