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

Extra feature #3

Open
andylim0221 opened this issue Jun 28, 2020 · 4 comments
Open

Extra feature #3

andylim0221 opened this issue Jun 28, 2020 · 4 comments

Comments

@andylim0221
Copy link

Wonder if we can consider to push features such as extracting private key from keystore available for this package?

@cawfree
Copy link
Owner

cawfree commented Jun 30, 2020

Hey @andylim0221,

Thanks for getting in touch! Sounds good to me. 🚀

Can you propose which existing Web3 APIs you think would be needed to achieve this? Then we'd be able to treat those as a reference. One thing to keep in mind is that this functionality of course might only be available if it is exposed by the native dependencies we're using in this project. But if this is standard behaviour, they should be there.

@andylim0221
Copy link
Author

In web3, there's web3.eth.accounts.decrypt(keystoreJsonV3, password) which takes keystoreJsonV3 and password as parameters.
From my last project, we load the keystore file in and process decryption in native modules with web3j and web3swift respectively. I think it's worth to try out if you have any alternatives.

@cawfree
Copy link
Owner

cawfree commented Jul 8, 2020

Hey @andylim0221, sounds good to me!

It looks like we can get the private key on iOS. It might take a little more searching for a similar function in web3j on Android... I'm sure it must be there somewhere.

@cawfree
Copy link
Owner

cawfree commented Jul 8, 2020

This line seems to provide us with the equivalent key pair, so we should be able to retrieve the private key from here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants