1

I was wondering how smart contract can validate the sender address. That means the transaction is coming from the valid Ethereum address. Do we have to have any validation logic inside the contract. I know that the one who deployed the contract can be set as the owner but then how Dapp signs the transactions and smart contracts verify that it has come from the proper source.

1 Answer 1

1

to call smart contract method, user have to sign the transaction with their private key as usual other transactions. The signer of the tnx will be the msg.sender in smart contract.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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