0

As a developer I know how to create a transaction with one input and one or multi outputs.

I know after we created a transaction with some of predefined parameters, we have to hash it and then we have to sign it with private key of the selected input transaction, but I can't understand what we have to do when we want to use of multi inputs? how to sign each of them with the related private key?

I used this tool to create a transaction with multi inputs:

[https://nubits.com/cointoolkit/#newTransaction][1]

here we can add multi inputs, but I don't know what should I put in the scriptSig? I read here that I should put 00, but I can't understand it, so can we use of any inputs for other persons and add 00 and sign it with our private key?

Anyway, after sign it from here:

[https://nubits.com/cointoolkit/#sign][1]

when I want to publish the raw, it say:

PUSH TRANSACTION ERROR: 16: MANDATORY-SCRIPT-VERIFY-FLAG-FAILED (SCRIPT FAILED AN OP_EQUALVERIFY OPERATION)

Anybody can explain it to me please?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.