mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-17 15:25:35 +00:00
46ad8d4058
- includes are now sorted in consistent, logical order; first step in an attempt to fix the tomfoolery (no relation to Tom) brought in by include-what-you-use - shuffled around some cmake linking to simplify dependency graph - superfluous files removed
22 lines
394 B
C++
22 lines
394 B
C++
#pragma once
|
|
#include "address.hpp"
|
|
|
|
#include <llarp/crypto/types.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
|
|
is_valid_name(std::string_view name);
|
|
|
|
} // namespace llarp::service
|