mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-09 13:10:25 +00:00
28 lines
570 B
C++
28 lines
570 B
C++
#ifndef LLARP_SERVICE_FRAME_HPP
|
|
#define LLARP_SERVICE_FRAME_HPP
|
|
#include <llarp/bencode.hpp>
|
|
#include <llarp/crypto.hpp>
|
|
#include <llarp/encrypted.hpp>
|
|
|
|
namespace llarp
|
|
{
|
|
namespace service
|
|
{
|
|
struct DataFrame : public llarp::IBEncodeMessage
|
|
{
|
|
llarp::Encrypted D;
|
|
llarp::PubKey H;
|
|
llarp::KeyExchangeNonce N;
|
|
uint64_t S = 0;
|
|
llarp::Signature Z;
|
|
|
|
bool
|
|
BEncode(llarp_buffer_t* buf) const;
|
|
|
|
bool
|
|
DecodeKey(llarp_buffer_t key, llarp_buffer_t* val);
|
|
};
|
|
} // namespace service
|
|
} // namespace llarp
|
|
|
|
#endif |