mirror of https://github.com/oxen-io/lokinet
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
391 B
C++
21 lines
391 B
C++
#pragma once
|
|
#include <llarp/crypto/types.hpp>
|
|
#include "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
|