#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(); //std::cout << "=== Creating PubKey script of size: " << scriptPubKeySize.value() << std::endl; _pubKeyScript = std::make_unique