llarp::service::ServiceInfo

Public Functions

Name
void RandomizeVanity()
bool Verify(const llarp_buffer_t & payload, const Signature & sig) const
const PubKey & EncryptionPublicKey() const
bool Update(const byte_t * sign, const byte_t * enc, const std::optional< VanityNonce > & nonce ={})
bool operator==(const ServiceInfo & other) const
bool operator!=(const ServiceInfo & other) const
bool operator<(const ServiceInfo & other) const
std::string ToString() const
std::string Name() const
.loki address
bool UpdateAddr()
const Address & Addr() const
bool CalculateAddress(std::array< byte_t, 32 > & data) const
calculate our address
bool BDecode(llarp_buffer_t * buf)
bool BEncode(llarp_buffer_t * buf) const
bool DecodeKey(const llarp_buffer_t & key, llarp_buffer_t * buf)

Public Attributes

Name
VanityNonce vanity
uint64_t version

Public Functions Documentation

function RandomizeVanity

inline void RandomizeVanity()

function Verify

bool Verify(
    const llarp_buffer_t & payload,
    const Signature & sig
) const

function EncryptionPublicKey

inline const PubKey & EncryptionPublicKey() const

function Update

bool Update(
    const byte_t * sign,
    const byte_t * enc,
    const std::optional< VanityNonce > & nonce ={}
)

function operator==

inline bool operator==(
    const ServiceInfo & other
) const

function operator!=

inline bool operator!=(
    const ServiceInfo & other
) const

function operator<

inline bool operator<(
    const ServiceInfo & other
) const

function ToString

std::string ToString() const

function Name

std::string Name() const

.loki address

function UpdateAddr

bool UpdateAddr()

function Addr

inline const Address & Addr() const

function CalculateAddress

bool CalculateAddress(
    std::array< byte_t, 32 > & data
) const

calculate our address

function BDecode

inline bool BDecode(
    llarp_buffer_t * buf
)

function BEncode

bool BEncode(
    llarp_buffer_t * buf
) const

function DecodeKey

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

Public Attributes Documentation

variable vanity

VanityNonce vanity;

variable version

uint64_t version = llarp::constants::proto_version;

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