Your “private” #solidity Variable is Not “private.” Save it before it becomes Public
▻https://hackernoon.com/your-private-solidity-variable-is-not-private-save-it-before-it-becomes-
One of the most Common but Unheard Issues with EthereumIf you have worked with #ethereum then you must have written smart contracts, and thus most probably used the keyword private . It seems like it does its work well. Right? Well, actually not.Anyone in this world with a blockchain explorer can see your so called private variables.Sounds ridiculous, but yes its true. Let’s see how to hack a contract.▻https://medium.com/media/3a7f379e550e01f53629778334342f97/hrefLet’s take a vulnerable contract.▻https://medium.com/media/f1722686fc7a175f1cafad2727ac960f/hrefIt’s basically a game: an odd-even multiplayer game contract, which chooses the winner based on the numbers guessed. Each player chooses a number and if the sum is even then the first player wins, otherwise the second player wins.The game (...)
#solidity-issues #private-solidity-variable #privatevariable