docs: public boolean isValidAddress(NetworkParameters network) {
        byte version = getVersion();
        if (getAllAddressBytes().length != 21) {
           return false;
        }
        return ((byte) (network.getStandardAddressHeader() & 0xFF)) == version
              || ((byte) (network.getMultisigAddressHeader() & 0xFF)) == version;
     }