#include "TxOutput.h" #include "VarInt.h" #include TxOutput::TxOutput(const std::byte *data) { _value = *reinterpret_cast(data); data += sizeof(_value); VarInt scriptPubKeySize(data); data += scriptPubKeySize.size(); _pubKeyScript = std::make_unique