for byte in bytes {
            var carry = Int(byte)
            var index = 0

            for byteIndex in 0...base58.count-1 where carry != 0 || index < length {