llarp::service::EncryptedIntroSet

public version of the introset that is encrypted

#include <intro_set.hpp>

Public Types

Name
using std::vector< byte_t > Payload_t

Public Functions

Name
bool Sign(const PrivateKey & k)
bool IsExpired(llarp_time_t now) const
bool BEncode(llarp_buffer_t * buf) const
bool BDecode(llarp_buffer_t * buf)
bool DecodeKey(const llarp_buffer_t & key, llarp_buffer_t * buf)
bool OtherIsNewer(const EncryptedIntroSet & other) const
bool Verify(llarp_time_t now) const
verify signature and timestamp
std::string ToString() const
std::optional< IntroSet > MaybeDecrypt(const PubKey & rootKey) const

Public Attributes

Name
PubKey derivedSigningKey
llarp_time_t signedAt
Payload_t introsetPayload
TunnelNonce nounce
std::optional< Tag > topic
Signature sig

Public Types Documentation

using Payload_t

using llarp::service::EncryptedIntroSet::Payload_t =  std::vector<byte_t>;

Public Functions Documentation

function Sign

bool Sign(
    const PrivateKey & k
)

function IsExpired

bool IsExpired(
    llarp_time_t now
) const

function BEncode

bool BEncode(
    llarp_buffer_t * buf
) const

function BDecode

inline bool BDecode(
    llarp_buffer_t * buf
)

function DecodeKey

bool DecodeKey(
    const llarp_buffer_t & key,
    llarp_buffer_t * buf
)

function OtherIsNewer

bool OtherIsNewer(
    const EncryptedIntroSet & other
) const

function Verify

bool Verify(
    llarp_time_t now
) const

verify signature and timestamp

function ToString

std::string ToString() const

function MaybeDecrypt

std::optional< IntroSet > MaybeDecrypt(
    const PubKey & rootKey
) const

Public Attributes Documentation

variable derivedSigningKey

PubKey derivedSigningKey;

variable signedAt

llarp_time_t signedAt = 0s;

variable introsetPayload

Payload_t introsetPayload;

variable nounce

TunnelNonce nounce;

variable topic

std::optional< Tag > topic;

variable sig

Signature sig;

Updated on 2026-01-10 at 22:49:45 +0000