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.
lokinet/include/llarp/service/frame.hpp

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