#include "TxOutput.h" #include "VarInt.h" TxOutput::TxOutput(const std::byte *data) { _value = *reinterpret_cast(data); data += sizeof(_value); VarInt scriptPubKeySize(data); // TODO: Read ScriptSizeKey _size = sizeof(_value) + scriptPubKeySize.size() + scriptPubKeySize.value(); } size_t TxOutput::size() const { return _size; }