web3swift
web3swift copied to clipboard
Extract private key by importing keystore file and password
Is it possible to add in the feature stated above? Because for the UNSAFE method for extracting privateKey from the address, each time the app is reloaded, the address inside the keystore manager is undefined.
There is no such feature yet. I'd be more than happy to merge a PR adding this feature, it seems like it would be useful for sure 👍
Sure. Will be working on this.
@andylim0221 great let me know about your progress. I can issue @gitcoin grant for this feature.
@andylim0221 let me know if you are interested to implement this.
FYI:
https://github.com/matter-labs/web3swift/tree/develop/Documentation#design-decisions
Public function for private key export is exposed for user convenience but marked as UNSAFE_. Typical workflow takes care of EIP155 compatibility and proper clearing of private key data from memory
@skywinder yes I am interested in implementing this. A little busy recently
Issue Status: 1. Open 2. Started 3. Submitted 4. Done
This issue now has a funding of 12.0 DAI (12.0 USD @ $1.0/DAI) attached to it.
- If you would like to work on this issue you can 'start work' on the Gitcoin Issue Details page.
- Want to chip in? Add your own contribution here.
- Questions? Checkout Gitcoin Help or the Gitcoin Chat
- $737,289.06 more funded OSS Work available on the Gitcoin Issue Explorer
Issue Status: 1. Open 2. Started 3. Submitted 4. Done
Work for 12.0 DAI (12.0 USD @ $1.0/DAI) has been submitted by:
- Learn more on the Gitcoin Issue Details page
- Want to chip in? Add your own contribution here.
- Questions? Checkout Gitcoin Help or the Gitcoin Chat
- $737,206.80 more funded OSS Work available on the Gitcoin Issue Explorer
Hello, @jordan69420 thanks for your contribution via Gitcoin. Unfortunately I can't accept it. the implementation should be written natively on swift. So this bounty keep open for submissions
hmm... that would be more difficult. would a compiled file work or does it need to be purely in swift
if an executable would work, you can compile it using python to get a pyc file then in linux mark it as executable, that is how I got solidity to read python.
I left instructions in the colab notebook to turn it into an executable, then you just have to import it 😄
@andylim0221 please, have a look, if this solution will work for you. 👍
It is possible. We can setup a bridge between python executable and swift. I would take that as an initiative to try out
@andylim0221 afaik it's not possible in native way. (That's why I can't accept solution by @jordan69420 )
I use the keystore and do this. I also import the data from a database (NOT SAFE) and both methods work...
Is this still an issue? I'd like to help!!
Please welcome to contribute.
If you can give me more info I can contribute? What exactly do you want to do? Currently I store the keyData in the keystone on Ios encrypted. Then retrieve and add to web3. I also backup the keyData in a db, and retrieve and store in the iOS keystone.
You want to take it from a file on the phone? You want to store on the phone as json file and then retrieve?
I can do the above.... I think.
@jordan69420 Thanks for the help. Let me pay you this 12 DAI for the python notebook.
Please, make PR with it to this repository. (you can save it in separate folded named Utils as an example). In spite of fact that it's not native, I hope it would help others.
ANd thank for contributing. I'm glad that we have a chance to work together on a great project! 👍
@dangell7 it would be great to write in in swift, rather than port Python. But it's not the priority for now. But thanks for your response and willingness to help!
Has anyone made progress on this? I am looking at implementing something similar for the wallet I am building