Good question! Generally speaking, there are two types of the accounts:
• Externally owned accounts(EOA)
• Contract accounts
Yeah, there are some differences between them, for EOA, it is a combination of public address and private key, and for contract accounts, they do not have a corresponding private key. The contract is generated by user’s wallet when he deploys contract. Although it does not have a private key, it has internal code, and these code have got to be triggered by an EOA or another contract

Apr 8, 2022, 5:00 PM
https://forum.openzeppelin.com/t/contract-accounts-do-not-have-private-keys-but-can-still-interact-with-other-contract-accounts/5145
In reality contract addresses have no priv key as explained in OZ’s response to the question
But you can’t access that address with a private key as one does not exist
In theory I understand what you are saying tho
Apr 8, 2022, 5:07 PM
Ok I give up
Apr 8, 2022, 5:07 PM
Well if part of the constructor then yes it will represent the deploying address but it doesn’t ALWAYS represent this, in fact it nearly never represents this
Apr 8, 2022, 5:19 PM
I'll give the last answer and then I stop, I don't earn a penny from this discussion about the nothing,
Always in theory there is no limit on the number of addresses that can be deployed by an address, so if I deploy an infinite number of addresses I will span the whole set of addresses on Ethereum, so eoas shouldn't exist if such a distinction existed
Apr 8, 2022, 5:20 PM
1. You couldn’t possibly deploy Infinite
2. Even if you could, you’d only fill the addresses possible from your pub key and nonce count. Idk in what world you can’t reverse ECC but you can DDOS the entire eth network spamming new contracts from one wallet 😭
Apr 8, 2022, 5:22 PM
I know it's not possible in practice lol as I know it's not possible in practice to get the hands on the private key of a contract
But I'm saying "in theory" not counting the odds of one such thing happening
Apr 8, 2022, 5:23 PM
Oh okay hahahaha my bad 😭
Apr 8, 2022, 5:24 PM

© 2024 Draquery.com All rights reserved.