Linked Questions

1
vote
0answers
258 views

Will people still be able to see my smart contract code if I make the functions private? [duplicate]

I am interested in knowing if someone can read the code for my smart contract after I deploy it to the live ethereum blockchain. If I make my functions private. The goal is to hide the code.
5
votes
1answer
1k views

Solidity - Can an attacker call private functions?

Looking around I found Solidity functions - private visibility but not an answer to my specific question. Basically my question is: is the private keyword enforced at the Solidity language level or ...
5
votes
1answer
2k views

Who can access private state variables?

I was reading solidity Docs and everything made sense until I got to this: What are external observers? Is it clients listening for events or is it anyone who has access to web3 api? For example, ...
9
votes
1answer
625 views

What data will zk-SNARKs protect?

Implementing zk-SNARKs is planned in Ethereum roadmap, what data will be obfuscated? transaction sender and receiver? data in transactions? data stored in contracts? variables and methods in ...
6
votes
1answer
943 views

Accessibility of public variables

If I have a public state variable, does this mean that other contracts can access or even change its value? I have made a cryptocoin from here and all variables are declared as public, so I am ...
4
votes
1answer
467 views

Is the content of a function and the data in a smart contract publicly readable?

When I create a smart contract with some functions in it, I know anyone can execute those functions. My question is; can anyone also read the source/logic of those functions? And I've got the same ...
0
votes
1answer
845 views

Is it possible to fake contract owner address?

this link talks about contract visibility and accessibility in the blockchain. Solidity functions - private visibility So if I use the keyword "onlyOwner" only the owner can call the function? Is ...
1
vote
1answer
264 views

Are the contents of ethereum storage private? [closed]

I know that the code is public, but is the contents of storage private?
1
vote
2answers
93 views

Hide return values of a smart contract function

Let's say that I have a smart contract A with a public function f that can be called by anyone and this public function will return a number. In the smart contract there is also a private function p ...
3
votes
1answer
65 views

Make function invisible for general user

I have a pretty big contract with a few functions, some are designed for administrative goals. Here's a simplified example: contract big_contract { function user_function_1 (uint32 arg1, string ...
2
votes
2answers
44 views

Can only the contract creator send subsequent transactions to it to run the contract?

As the contract address is created based on the sender's address plus the nonce value of the transaction creating it, I would think that only the contract owner/creator would know this and could ...