mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-03 23:15:52 +00:00
085563ac2f
gut curvecp for now
18 lines
424 B
C++
18 lines
424 B
C++
#ifndef LLARP_LINK_ENCODER_HPP
|
|
#define LLARP_LINK_ENCODER_HPP
|
|
|
|
#include <llarp/bencode.h>
|
|
#include <llarp/buffer.h>
|
|
#include <llarp/router_contact.hpp>
|
|
|
|
namespace llarp
|
|
{
|
|
/// encode Link Introduce Message onto a buffer
|
|
/// if router is nullptr then the LIM's r member is omitted.
|
|
bool
|
|
EncodeLIM(llarp_buffer_t* buff, const RouterContact* router,
|
|
const KeyExchangeNonce& n);
|
|
} // namespace llarp
|
|
|
|
#endif
|