Beispiel #1
0
        public void AddTpkePrivateKeyAfterBlock(ulong block, PrivateKey key)
        {
            if (_tpkeKeys.Contains(block))
            {
                _tpkeKeys.Update(block, key);
                Logger.LogWarning($"TpkePrivateKey for block {block} is overwritten");
            }
            else
            {
                _tpkeKeys.Add(block, key);
            }

            SaveWallet(_walletPath, _walletPassword);
        }