Author Topic: 300 PTS Bounty for Multi-Bit Wallet Import Tool [CLOSED]  (Read 7547 times)

0 Members and 1 Guest are viewing this topic.

Offline bytemaster

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: http://bytemaster.bitshares.org
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.

Offline batmaninpink

  • Newbie
  • *
  • Posts: 12
    • View Profile
I just made a pull request which fixes the OS X compile. Do you need anything else?
All ur PTS belong to Pe8tGCH7uGjjQjfBGAbJ6FjQRwgK5u9rUK

Offline bytemaster

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: http://bytemaster.bitshares.org
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.

Offline mint chocolate chip

Are any of these working, secure, and ready to use or are we still working on it?


Offline batmaninpink

  • Newbie
  • *
  • Posts: 12
    • View Profile
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

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

Offline batmaninpink

  • Newbie
  • *
  • Posts: 12
    • View Profile
All ur PTS belong to Pe8tGCH7uGjjQjfBGAbJ6FjQRwgK5u9rUK

drekrob

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

Offline bytemaster

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: http://bytemaster.bitshares.org
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

  • Guest
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?

Offline bytemaster

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: http://bytemaster.bitshares.org
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

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

Offline 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: http://bytemaster.bitshares.org
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

  • Guest
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!

drekrob

  • Guest
Any program using this method will need protobuf as dependency.

drekrob

  • Guest
Well here it is, I tried it localy and it loads the right keys from encrypted and unencrypted wallets.
https://github.com/InvictusInnovations/BitShares/pull/35

drekrob

  • Guest
same here, i'm basicaly done but the decryption produces errors...

Offline batmaninpink

  • Newbie
  • *
  • Posts: 12
    • View Profile
I am looking at importing the Multi-Bit wallet. In fact I just need to get the scrypt-nastiness in order.
All ur PTS belong to Pe8tGCH7uGjjQjfBGAbJ6FjQRwgK5u9rUK

Offline bytemaster

how should i import without such a tool now?
Export private keys manually and then import them manually.

I use Armory and Electrum sending bitcoins. Can I export the private keys from those 2 client and import the private keys to Bitcoin- QT and import QT's wallet into Bitshares to my ags? Or I just need to import the private keys directly into Bitshares?

I will create bounties for importing from any wallet.
For the latest updates checkout my blog: http://bytemaster.bitshares.org
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.

Offline ifocus

  • Newbie
  • *
  • Posts: 2
    • View Profile
how should i import without such a tool now?
Export private keys manually and then import them manually.

I use Armory and Electrum sending bitcoins. Can I export the private keys from those 2 client and import the private keys to Bitcoin- QT and import QT's wallet into Bitshares to my ags? Or I just need to import the private keys directly into Bitshares?
« Last Edit: February 11, 2014, 05:17:53 am by ifocus »

Offline bytemaster

how should i import without such a tool now?
Export private keys manually and then import them manually.
For the latest updates checkout my blog: http://bytemaster.bitshares.org
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.

Offline oco101

  • Hero Member
  • *****
  • Posts: 586
    • View Profile
how should i import without such a tool now?

Now there is nothing to import because there is no BitshareX wallet out yet. When it will happen you'll use the import tool.

Offline Paypal

  • Newbie
  • *
  • Posts: 11
    • View Profile
how should i import without such a tool now?

Offline bytemaster

for who use multibit wallet sending BTC for obtaining AGS?

Yes, to make it easier for these users.
For the latest updates checkout my blog: http://bytemaster.bitshares.org
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.

Offline Paypal

  • Newbie
  • *
  • Posts: 11
    • View Profile
for who use multibit wallet sending BTC for obtaining AGS?

Offline bytemaster

I am looking for someone to implement an import tool for MultiBit wallets:

Code: [Select]
namespace bts  {
      std::vector<fc::ecc::private_key> import_multibit_wallet( const fc::path& wallet_dat, const std::string& passphrase );
}

This method should be implemented as a pull request as a single .hpp and .cpp file. 
« Last Edit: February 23, 2014, 08:13:23 am by bytemaster »
For the latest updates checkout my blog: http://bytemaster.bitshares.org
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.