lokinet/llarp/service/name.hpp
2023-10-24 08:40:18 -07:00

22 lines
394 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
is_valid_name(std::string_view name);
} // namespace llarp::service