mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Cryptoconditions: ED25519 (RIPD-1214)
This commit is contained in:
@@ -36,6 +36,11 @@ SecretKey::~SecretKey()
|
||||
beast::secure_erase(buf_, sizeof(buf_));
|
||||
}
|
||||
|
||||
SecretKey::SecretKey (std::array<std::uint8_t, 32> const& key)
|
||||
{
|
||||
std::memcpy(buf_, key.data(), key.size());
|
||||
}
|
||||
|
||||
SecretKey::SecretKey (Slice const& slice)
|
||||
{
|
||||
if (slice.size() != sizeof(buf_))
|
||||
|
||||
Reference in New Issue
Block a user