pylibra icon indicating copy to clipboard operation
pylibra copied to clipboard

Should we implement pbkdf2 for LibraWallet account generator?

Open totiz opened this issue 5 years ago • 2 comments

As I tested import mnemonic from Libra cli it got a different address (but all the signing func work properly).

I think the problem is how the account is generated. Refer to this for seed generator https://github.com/libra/libra/blob/master/client/libra_wallet/src/key_factory.rs#L172

So I think if we implement seed / pbkdf2 in the same way as Libra cli does, we can guarantee that user can use the same mnemonic to access to the same account.

totiz avatar Jul 04 '19 07:07 totiz

Yeah that is still an open issue. As specified in README, "Note that PyLibra's mnemonic scheme is not similar to that of Libra's CLI, so you cannot import mnemonic between the two libraries (yet)."

I will look into that probably this weekend. Or you can open a pull request if you feel writing and hacking in Python (:

sorawit avatar Jul 04 '19 07:07 sorawit

@sorawit yeah that sounds great, thanks.

totiz avatar Jul 04 '19 08:07 totiz