Botan 3.13.0
Crypto and TLS for C&
Botan::Roughtime::Link Class Referencefinal

#include <roughtime.h>

Public Member Functions

 Link (const std::vector< uint8_t > &response, const Ed25519_PublicKey &public_key, const Nonce &nonce_or_blind)
Noncenonce_or_blind ()
const Noncenonce_or_blind () const
const Ed25519_PublicKeypublic_key () const
const std::vector< uint8_t > & response () const

Detailed Description

One response in a Roughtime chain

Definition at line 163 of file roughtime.h.

Constructor & Destructor Documentation

◆ Link()

Botan::Roughtime::Link::Link ( const std::vector< uint8_t > & response,
const Ed25519_PublicKey & public_key,
const Nonce & nonce_or_blind )
inline

Create a chain link

Parameters
responsethe raw response bytes
public_keythe public key of the server which produced it
nonce_or_blindthe nonce, or for later links the blind

Definition at line 171 of file roughtime.h.

171 :
172 m_response{response}, m_public_key{public_key}, m_nonce_or_blind{nonce_or_blind} {}

References nonce_or_blind(), public_key(), and response().

Member Function Documentation

◆ nonce_or_blind() [1/2]

Nonce & Botan::Roughtime::Link::nonce_or_blind ( )
inline

Access the nonce or blind

Returns
the nonce, or for later links the blind

Definition at line 196 of file roughtime.h.

196{ return m_nonce_or_blind; }

◆ nonce_or_blind() [2/2]

const Nonce & Botan::Roughtime::Link::nonce_or_blind ( ) const
inline

Access the nonce or blind

Returns
the nonce, or for later links the blind

Definition at line 190 of file roughtime.h.

190{ return m_nonce_or_blind; }

Referenced by Botan::Roughtime::Chain::append(), and Link().

◆ public_key()

const Ed25519_PublicKey & Botan::Roughtime::Link::public_key ( ) const
inline

Access the server public key

Returns
the public key of the server

Definition at line 184 of file roughtime.h.

184{ return m_public_key; }

Referenced by Link().

◆ response()

const std::vector< uint8_t > & Botan::Roughtime::Link::response ( ) const
inline

Access the raw response

Returns
the raw response bytes

Definition at line 178 of file roughtime.h.

178{ return m_response; }

Referenced by Link().


The documentation for this class was generated from the following file: