<p> В следующем примере используется модификатор <code>private</code>:</p>
<pre>
<code>

// This code contains a vulnerability - do not use it!

pragma solidity 0.4.24;

contract OpenWallet {

    struct Wallet {
        bytes32 password;
        uint balance;
    }
    mapping(uint => Wallet) private wallets;

    function replacePassword(uint _wallet, bytes32 _previous, bytes32 _new) public {
        require(_previous == wallets[_wallet].password);
        wallets[_