mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-10-31 09:20:21 +00:00
18 lines
358 B
C++
18 lines
358 B
C++
|
#include <consensus/table.hpp>
|
||
|
#include <crypto/crypto.hpp>
|
||
|
|
||
|
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
|