OpenCBDC Transaction Processor
Loading...
Searching...
No Matches
interface.hpp File Reference
#include "uhs/transaction/validation.hpp"
#include "util/common/hash.hpp"
#include "util/network/connection_manager.hpp"
#include <optional>
#include <string>
Include dependency graph for uhs/sentinel/interface.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  cbdc::sentinel::shard_info
 Sentinel-specific representation of shard network information. More...
 
struct  cbdc::sentinel::execute_request
 Sentinel request message. More...
 
struct  cbdc::sentinel::execute_response
 Sentinel response message. More...
 
struct  cbdc::sentinel::validate_request
 Request type for transaction validation and attestation. More...
 
class  cbdc::sentinel::interface
 Interface for a sentinel. More...
 

Namespaces

namespace  cbdc
 
namespace  cbdc::sentinel
 

Typedefs

using cbdc::sentinel::validate_response = transaction::sentinel_attestation
 Response type from transaction validation, a sentinel attestation on the given transaction.
 
using cbdc::sentinel::request = std::variant<execute_request, validate_request>
 Sentinel RPC request type.
 
using cbdc::sentinel::response = std::variant<execute_response, validate_response>
 Sentinel RPC response type.
 

Enumerations

enum class  cbdc::sentinel::tx_status { cbdc::sentinel::pending , cbdc::sentinel::static_invalid , cbdc::sentinel::state_invalid , cbdc::sentinel::confirmed }
 Status of the transaction following sentinel processing. More...
 

Functions

auto cbdc::sentinel::to_string (tx_status status) -> std::string
 Return a human-readable string describing a tx_status.