OpenCBDC Transaction Processor
|
#include "transaction.hpp"
#include "crypto/sha256.h"
#include "messages.hpp"
#include "util/serialization/format.hpp"
#include "util/serialization/util.hpp"
Go to the source code of this file.
Namespaces | |
namespace | cbdc |
namespace | cbdc::transaction |
Functions | |
auto | cbdc::transaction::tx_id (const full_tx &tx) noexcept -> hash_t |
Calculates the unique hash of a full transaction. | |
auto | cbdc::transaction::input_from_output (const full_tx &tx, size_t i, const hash_t &txid) -> std::optional< input > |
Converts the output at the specified index to an input. | |
auto | cbdc::transaction::input_from_output (const full_tx &tx, size_t i) -> std::optional< input > |
Calls input_from_output after calculating the TXID. | |
auto | cbdc::transaction::uhs_id_from_output (const hash_t &entropy, uint64_t i, const output &output) -> hash_t |