Timeline for Is it possible to get direct access to a contract?
Current License: CC BY-SA 3.0
15 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 1, 2018 at 16:40 | history | reopened |
Achala Dissanayake Badr Bellaj♦ |
||
Mar 30, 2018 at 7:10 | comment | added | Jaime | Let us continue this discussion in chat. | |
Mar 30, 2018 at 7:10 | comment | added | Jaime | ethereum.stackexchange.com/questions/4299/… here info about the account uniqueness. | |
Mar 30, 2018 at 7:08 | comment | added | Jaime | You are right that the new contract address is the hash of the sender address + nonce ethereum.stackexchange.com/questions/760/… . The nonce is the number of transactions the sender has done. notice the to deploy a contract and get for it the same dress you have is impossible under this scheme. However if the contract is deployed by someone else there is a chance that you will get the same address of an existing account, but this is the same with EOAs and contracts but the probability is 1 on 2^160. | |
Mar 29, 2018 at 21:52 | comment | added | JBrouwer | Do you have any sources on this? Because this creates bugs into the system - if you create a transaction creating a contract (where your address + nonce determine the contract address if I am right) and this address already is taken by an EOA, this should then be reverted. I find that very strange. Questions: 1) source on contracts have no private key (the duplicate question says elsewise!) and 2) address cannot be EOA and contract at same time - source? Thanks! | |
Mar 29, 2018 at 19:47 | comment | added | Jaime | Thanks for the link, I find it educative. What do you mean by SAME address, the EOA, and the contract have the same address? I do not think this is possible. But this is going to other topics. Your question ask (1) about the private key of the contract and there is no such thing and (2) If an address is already assigned to an EOA then that address will not be assigned to a contract. And again, and EOA and a contract can not have the same address so the scenario that you present is not possible. If I am wrong, please let me know. Thanks for the discussion. | |
Mar 29, 2018 at 19:06 | review | Reopen votes | |||
Apr 1, 2018 at 16:40 | |||||
Mar 29, 2018 at 18:47 | history | edited | JBrouwer | CC BY-SA 3.0 |
added 543 characters in body
|
Mar 29, 2018 at 18:44 | comment | added | JBrouwer |
I understand wat EOA's and contracts are. I'll keep pushing my question. Let's say I send a transaction from a contract and from an EOA with the SAME address. Now a contract calls extcodesize (see ethereum.stackexchange.com/questions/44127/…) on the address. What will it return? Are you telling me it can return zero and nonzero for the same address?
|
|
Mar 29, 2018 at 17:28 | comment | added | Jaime | contracts do not have and do not generate private keys at any point. You seem to be confusing externally owned accounts with contract accounts. See this for more information ethereum.stackexchange.com/questions/29683/… | |
Mar 29, 2018 at 17:05 | comment | added | JBrouwer | If I have the private key which results into the contract address, then what? | |
Mar 29, 2018 at 16:29 | comment | added | Jaime | There are not private keys for the contract. you own the contract only if you wrote code allowing you to take control of it. | |
Mar 29, 2018 at 3:28 | history | closed |
Richard Horrocks Achala Dissanayake user19510 qbsp Ismael♦ |
Duplicate of What if I had the private key that had the public address of a contract? | |
Mar 28, 2018 at 20:14 | review | Close votes | |||
Mar 29, 2018 at 3:33 | |||||
Mar 28, 2018 at 19:49 | history | asked | JBrouwer | CC BY-SA 3.0 |