sult;
            }
            for (var i = 0; i < arr.length && arr[i] === 0; i++) {
                result = '1' + result;
            }
            return result;
        },
        hexToByteArray: function (hexString) {
            var bytes = new Uint8Array(hexString.length / 2);
            for (var i = 0; i < bytes.length; i++) {
                bytes[i] = parseInt(hexString.substr(i * 2, 2), 16);
            }
            return bytes;
        }
    };


    function Wallet(options) {
        optio