OpenCBDC Transaction Processor
Loading...
Searching...
No Matches
cbdc::sentinel::interface Class Referenceabstract

Interface for a sentinel. More...

#include <interface.hpp>

Inheritance diagram for cbdc::sentinel::interface:

Public Member Functions

virtual ~interface ()=default
 
 interface ()=default
 
 interface (const interface &)=delete
 
auto operator= (const interface &) -> interface &=delete
 
 interface (interface &&)=delete
 
auto operator= (interface &&) -> interface &=delete
 
virtual auto execute_transaction (transaction::full_tx tx) -> std::optional< execute_response >=0
 Validate transaction on the sentinel, and forward it to the coordinator or shards depending on the implementation.
 
virtual auto validate_transaction (transaction::full_tx tx) -> std::optional< validate_response >=0
 Validate transaction and generate a sentinel attestation if the transaction is valid.
 

Detailed Description

Interface for a sentinel.

Definition at line 76 of file uhs/sentinel/interface.hpp.

Constructor & Destructor Documentation

◆ ~interface()

virtual cbdc::sentinel::interface::~interface ( )
virtualdefault

◆ interface() [1/3]

cbdc::sentinel::interface::interface ( )
default

◆ interface() [2/3]

cbdc::sentinel::interface::interface ( const interface & )
delete

◆ interface() [3/3]

cbdc::sentinel::interface::interface ( interface && )
delete

Member Function Documentation

◆ execute_transaction()

virtual auto cbdc::sentinel::interface::execute_transaction ( transaction::full_tx tx) -> std::optional< execute_response >
pure virtual

Validate transaction on the sentinel, and forward it to the coordinator or shards depending on the implementation.

Return the execution result.

Parameters
txtransaction to execute.
Returns
the response from the sentinel or std::nullopt if processing failed.

Implemented in cbdc::sentinel::controller, and cbdc::sentinel::rpc::client.

◆ operator=() [1/2]

auto cbdc::sentinel::interface::operator= ( const interface & ) -> interface &=delete
delete

◆ operator=() [2/2]

auto cbdc::sentinel::interface::operator= ( interface && ) -> interface &=delete
delete

◆ validate_transaction()

virtual auto cbdc::sentinel::interface::validate_transaction ( transaction::full_tx tx) -> std::optional< validate_response >
pure virtual

Validate transaction and generate a sentinel attestation if the transaction is valid.

Parameters
txtransaction to validate and attest to.
Returns
sentinel attestation for the given transaction, or std::nullopt if the transaction is invalid.

Implemented in cbdc::sentinel::controller, and cbdc::sentinel::rpc::client.


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