3

I mean if I have address A and no ethers on it. And I will construct valid tx & and sign it with my privkey. Can I send this raw signed tx to my friend with address B, and he will push it to the network. He need to sign it, and gas will be taken from his B address, but in contract msg.sender will be set as address A, who initially signed this tx.

Is possible scenario like above? I assume it is not at this moment. But do Vitalik`s team want to implement something like that to be possible?

5

No. This is not possible.

A transaction is signed using a private key. msg.sender is set to the address that corresponds to that private key.

You can send the signed transaction data to anyone, and they can submit it on your behalf to the chain. The person who signed the data still pays for the gas, and is the msg.sender.

1

I do not have the reputation to post this as a comment to Thomas Clowes answer, so I will post it as a separate answer. Since the transaction is submitted by person B, wouldn't tx.origin point to the address of the one who signed it? Otherwise, it is not possible with the technology Ethereum currently implements.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.