replace CalcuateIdentHash to identity.Hash to avoid duplication

This commit is contained in:
cpubug 2014-04-08 11:11:48 +04:00
parent 40d5489429
commit b3ee41bd91
5 changed files with 3 additions and 11 deletions

View file

@ -40,13 +40,6 @@ namespace data
return *this;
}
IdentHash CalculateIdentHash (const Identity& identity)
{
IdentHash hash;
CryptoPP::SHA256().CalculateDigest((uint8_t *)hash, (uint8_t *)&identity, sizeof (Identity));
return hash;
}
Keys CreateRandomKeys ()
{
Keys keys;