2018-01-25 16:24:33 +00:00
|
|
|
#ifndef LLARP_SI_H
|
|
|
|
#define LLARP_SI_H
|
|
|
|
#include <llarp/crypto.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2018-01-29 14:27:24 +00:00
|
|
|
struct llarp_service_info {
|
|
|
|
llarp_buffer_t name;
|
|
|
|
llarp_pubkey_t signingkey;
|
|
|
|
llarp_buffer_t vanity;
|
|
|
|
};
|
|
|
|
|
|
|
|
void llarp_service_info_hash(struct llarp_service_info *si, llarp_hash_t *h);
|
|
|
|
bool llarp_service_info_bencode(struct llarp_serivce_info *si,
|
|
|
|
llarp_buffer_t *buff);
|
|
|
|
bool llarp_service_info_bdecode(struct llarp_serivce_info *si,
|
|
|
|
llarp_buffer_t buff);
|
|
|
|
void llarp_service_info_free(struct llarp_service_info **si);
|
2018-01-25 16:24:33 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|