Interface for a sentinel.
More...
#include <interface.hpp>
Interface for a sentinel.
Definition at line 76 of file uhs/sentinel/interface.hpp.
◆ ~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 |
◆ execute_transaction()
Validate transaction on the sentinel, and forward it to the coordinator or shards depending on the implementation.
Return the execution result.
- Parameters
-
tx | transaction 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]
◆ operator=() [2/2]
◆ validate_transaction()
Validate transaction and generate a sentinel attestation if the transaction is valid.
- Parameters
-
tx | transaction 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: