mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
load IdentHash from base32 string
This commit is contained in:
parent
66ff2c7875
commit
ceb2ec1bc0
2 changed files with 9 additions and 1 deletions
|
@ -40,6 +40,12 @@ namespace data
|
|||
return *this;
|
||||
}
|
||||
|
||||
bool IdentHash::FromBase32(const std::string& s)
|
||||
{
|
||||
size_t count = Base32ToByteStream(s.c_str(), s.length(), m_Hash, sizeof(m_Hash));
|
||||
return count == sizeof(m_Hash);
|
||||
}
|
||||
|
||||
Keys CreateRandomKeys ()
|
||||
{
|
||||
Keys keys;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue