300 PTS Bounty for Multi-Bit Wallet Import Tool [CLOSED]

Started by bytemaster, February 10, 2014, 06:36:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bytemaster

Quote from: batmaninpink on February 21, 2014, 08:01:54 PM
I just made a pull request which fixes the OS X compile. Do you need anything else?

It didn't work... I posted the error on github
For the latest updates checkout my blog: [url="http://bytemaster.bitshares.org"]http://bytemaster.bitshares.org[/url]
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

batmaninpink

I just made a pull request which fixes the OS X compile. Do you need anything else?
All ur PTS belong to Pe8tGCH7uGjjQjfBGAbJ6FjQRwgK5u9rUK

bytemaster

Quote from: currencydebt on February 17, 2014, 07:38:57 AM
Are any of these working, secure, and ready to use or are we still working on it?

I need to evaluate the pull request and integrate it with bts_wallet and will be doing that this week.
For the latest updates checkout my blog: [url="http://bytemaster.bitshares.org"]http://bytemaster.bitshares.org[/url]
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

mint chocolate chip

Are any of these working, secure, and ready to use or are we still working on it?
[url="http://bitsharesblog.com/"]http://bitsharesblog.com/[/url]


batmaninpink

I spent a couple of hours wondering why my scrypt code wasn't working... Turned out to be me swapping the parameters. Doh.

Then it was the UTF issue, fortunately I decided to take a break and while taking a bit of fresh air I figured out that it probably was an encoding issue. But yes I shouldve read the forum to save me that bit. Instead I had to deal with the conversion. *shudder*
All ur PTS belong to Pe8tGCH7uGjjQjfBGAbJ6FjQRwgK5u9rUK

drekrob

Admit it you were glad about the tip with the 16-bit strings, that really messed with my head for quite some time...

batmaninpink

All ur PTS belong to Pe8tGCH7uGjjQjfBGAbJ6FjQRwgK5u9rUK

drekrob

Wow, i should go to sleep... just noticed i had mistaken UTF8 for 8bit chars...  :-[

bytemaster

Quote from: drekrob on February 11, 2014, 08:49:37 PM
This sure isn't my area of expertise. But let's say my password in multibit is four 16bit characters and it comes down to 0x1122334455667788. If the api call converts every input from UTF8 to UTF16 although it wasn't UTF8 in the first place, i would end up with 0x00110022003300440055006600770088 and could not decrypt my wallet. Where is my mistake?

Your mistake was in your application of conversions. 

If the string is already in UTF16 then you convert it to UTF8, pass it in, convert it back to UTF16 and you are good to go.

But when I grab a string from the command line it will be in UTF8, so I convert it to UTF16 and we are good to go.

When I grab a string from Qt I will grab it in UTF8, convert to to UTF16 and be good to go.

When the user enters their string into a QLineEdit then they will enter same characters they did in multibit and Qt will handle the representation internally (in what ever form they use).
For the latest updates checkout my blog: [url="http://bytemaster.bitshares.org"]http://bytemaster.bitshares.org[/url]
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

drekrob

This sure isn't my area of expertise. But let's say my password in multibit is four 16bit characters and it comes down to 0x1122334455667788. If the api call converts every input from UTF8 to UTF16 although it wasn't UTF8 in the first place, i would end up with 0x00110022003300440055006600770088 and could not decrypt my wallet. Where is my mistake?

bytemaster

Quote from: drekrob on February 11, 2014, 08:05:08 PM
That would make it impossible to use for everyone who uses 16bit chars in Multibit. Ascii password users only...

No it wouldn't.  All 16 bit UTF can be converted to and from 8 bit UTF.   When I produce a GUI that accepts characters in UTF8, it will convert to the proper UTF16 prior to being hashed for the password.

For the latest updates checkout my blog: [url="http://bytemaster.bitshares.org"]http://bytemaster.bitshares.org[/url]
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

drekrob

That would make it impossible to use for everyone who uses 16bit chars in Multibit. Ascii password users only...

bytemaster

The API calls for. UTF8. You should convert to utf 16 inside the call.


Sent from my iPhone using Tapatalk
For the latest updates checkout my blog: [url="http://bytemaster.bitshares.org"]http://bytemaster.bitshares.org[/url]
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

drekrob

oh and btw, the reason decryption did not work for me: Java Strings are UTF-16 (big endian)
So if you want to supply password you need to consider that!