I have a doubt related to multi-input transactions. Where the transaction is signed, the index of the input to be signed is requested in the function call:
sign(tx, i, private_key)
I don't figure out what it's used for. Is not the whole tx signed (or at least all the inputs and outputs) in order to avoid that any input or output could be modified after signing it?
Hi everyone,
I have a doubt related to multi-input transactions. Where the transaction is signed, the index of the input to be signed is requested in the function call:
sign(tx, i, private_key)
I don't figure out what it's used for. Is not the whole tx signed (or at least all the inputs and outputs) in order to avoid that any input or output could be modified after signing it?
Thank you.