1

Let's say i have a variable, whose value is set by a user calling a certain method

string commitment;

function setValue(x) public { commitment = x; }

if I want to hide the value of this 'commitment' variable from all other parties interacting the contract, until a certain condition is fulfilled, is it possible to do this in Solidity?

Muhammad Yasir
  • 270
  • 3
  • 13

1 Answers1

0

Is not possible, even if you declare private variables since you can still read it using the opcode getStorageAt

This was answered here

Casareafer
  • 648
  • 2
  • 12