mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-19 09:25:28 +00:00
21 lines
393 B
C++
21 lines
393 B
C++
|
#pragma once
|
||
|
#include <crypto/types.hpp>
|
||
|
#include <service/address.hpp>
|
||
|
|
||
|
namespace llarp::service
|
||
|
{
|
||
|
struct EncryptedName
|
||
|
{
|
||
|
SymmNonce nonce;
|
||
|
std::string ciphertext;
|
||
|
|
||
|
std::optional<Address>
|
||
|
Decrypt(std::string_view name) const;
|
||
|
};
|
||
|
|
||
|
/// check if an lns name complies with the registration rules
|
||
|
bool
|
||
|
NameIsValid(std::string_view name);
|
||
|
|
||
|
} // namespace llarp::service
|