| 24 | } |
| 25 | |
| 26 | void AddressWriter::serializeExistingOutput(const AnyScriptOutput &output, bool topLevel) { |
| 27 | mpark::visit([&](auto &scriptOutput) { return this->serializeExistingOutput(scriptOutput, topLevel); }, output.wrapped); |
| 28 | } |
| 29 | |
| 30 | void AddressWriter::serializeInput(const AnyScriptInput &input, uint32_t txNum, uint32_t outputTxNum) { |
| 31 | mpark::visit([&](auto &scriptInput) { this->serializeInput(scriptInput, txNum, outputTxNum); }, input.wrapped); |