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?

1 Answer 1

0

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

This was answered here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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