lokinet/llarp/consensus/table.cpp

18 lines
354 B
C++
Raw Normal View History

#include "table.hpp"
#include <llarp/crypto/crypto.hpp>
2020-01-21 17:31:48 +00:00
namespace llarp
{
namespace consensus
{
ShortHash
Table::CalculateHash() const
{
ShortHash h;
const llarp_buffer_t buf(begin()->data(), size());
CryptoManager::instance()->shorthash(h, buf);
return h;
}
} // namespace consensus
} // namespace llarp