Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Requires mvsd export key-store-file same format as lightwallet format #248

Closed
betachen opened this Issue Feb 8, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@betachen
Copy link
Member

commented Feb 8, 2018

Requires mvsd export key-store-file same format as lightwallet format.

chengzhpchn added a commit that referenced this issue Apr 2, 2018

@chengzhpchn

This comment has been minimized.

Copy link
Contributor

commented Apr 2, 2018

  1. lightwallet use CryptoJS-- an open-source crypto library for javascript to export encrypted mnemonic;
  2. During that procedure, the user-sepcified passphrase and a salt(a random uint64_t number) are used as input of MDS digest Alg, to derive the key and iv of AES_256 encrypt Alg(Mode CBC);
  3. The last procedure: mix the salt and encrypted cipher_text and encode to Base64.

I have implement the same function in C++, so that the mvsd and the lightwallet can share the same key-store-file.

More details:

  1. From now on, the mvsd dumpkeyfile command will export key file in json format, which is compatable with lightwallet;
  2. However, lightwallet's key-store-file contains mnemonic only, the full account info is also export by mvsd, which remains the same format with the old mvsd version.
  3. Both the key-store file exported by old and new mvsd, can be imported by new mvsd.

chengzhpchn added a commit that referenced this issue Apr 2, 2018

chengzhpchn added a commit that referenced this issue Apr 10, 2018

Requires mvsd export key-store-file same format as lightwallet format #…
…248

Use a independed MD5-alg, rather than depend on mongoose!

chengzhpchn added a commit that referenced this issue Apr 11, 2018

@chengzhpchn

This comment has been minimized.

Copy link
Contributor

commented Jun 27, 2018

this feature has been published with Super Nova

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.