The following variables here, assuming solidity 4.24 or later.
mapping(something => something) private yourmapping;
bool private yourbool;
address private youraddress;
uint256 private yournumber;
function dosomething() private {
*do stuff*
}
I see quite a few questions about hiding stuff in solidity. I'm not interested in that. My understanding of private variables is that they do not allow any other contract to call or change those variables, meaning that only the scope within the current contract is allowed to call or modify those variables. Am I wrong?
Further, any links or other information regarding private variables would be highly useful. I have added a private function as well for bonus points. What variables are allowed to be private? What other items can be considered private?