1

I know that the code is public, but is the contents of storage private?

closed as unclear what you're asking by Achala Dissanayake, Зелёный, flygoing, Nicolas Massart, Roman Frolov Mar 5 '18 at 19:34

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

3

The contents are private only in the sense that other contracts can't read them if you set them private, but otherwise everything is public. All nodes need to be able to process the data so they also have access to all the data (including private variables).

More reading: Store secret data in contract (and its duplicate)

  • You should answer a question when it has been closed. Your answer should be removed. – Trevor Oakley May 8 '18 at 6:39
  • Thanks for the input. Closing a questions does not make an answer invalid or wrong. If the question was closed when I opened it I couldn't have answered it anymore. – Lauri Peltonen May 8 '18 at 6:47
  • The question was closed and voted off the forum. That does make your answer invalid (obviously). A question is valid or invalid. It does not change its validity: if I say a brick is red, it was a red before I said it was a brick, my saying the colour does not change the colour. You answered an invalid question. You clearly think you can answer an invalid question but others cannot as if somehow your answer is better than others. As I said, your answer should be removed. If it is not removed, this forum is simply discriminating against other people. – Trevor Oakley May 8 '18 at 6:57
  • You are entitled to your opinion. You can flag the answer for moderator attention if you feel that necessary. – Lauri Peltonen May 8 '18 at 8:02

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