Exemple #1
0
        public void AddPublicKey(PeerId p, PublicKey pk)
        {
            if (!p.MatchesPublicKey(pk))
            {
                throw new Exception("Id does not match PublicKey");
            }

            _sync.Lock(() => _pks[p] = pk);
        }