Skip to content
This repository has been archived by the owner on Aug 3, 2021. It is now read-only.

Feature: Import/Export Wallet #57

Closed
wants to merge 63 commits into from
Closed

Conversation

TimovanDijk
Copy link

Added import export wallet support. Added Android support and using existing IOS support

jakubkoci and others added 30 commits January 27, 2020 14:05
Ignoring it globally causes android src to be excluded
from the packed tarball

Signed-off-by: Gaurav Narula <gnarula94@gmail.com>
npmignore: ignore src only in project root
Signed-off-by: Jakub Koci <jakub.koci@gmail.com>
* Store pool and wallet handles in maps

Makes the API compatible with libindy nodejs wrapper

* Update exported methods to use walletHandle and buffers

iOS native calls remain untested

* android: Update module name
* crypto: fix return types

Signed-off-by: Gaurav Narula <gnarula94@gmail.com>
Signed-off-by: Gaurav Narula <gnarula94@gmail.com>
Signed-off-by: Gaurav Narula <gnarula94@gmail.com>
Rename IndyBridge to IndySdk (AbsaOSS#10)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Added implementation of buildGetAttribRequest, buildGetNymRequest and
parseGetNymResponse

Signed-off-by: Gaurav Narula <gnarula94@gmail.com>
Signed-off-by: Timo Glastra <timo@animo.id>
Signed-off-by: Jakub Koci <jakub.koci@gmail.com>
Signed-off-by: Jakub Koci <jakub.koci@gmail.com>
TheArhaam and others added 23 commits January 4, 2021 22:52
…aOSS#33)

* Create Schema methods
* Create Credential Definition
* Issue credential
* Added missing Platform Check
* Issuer Create Credential

Signed-off-by: Arhaam Patvi <thearhaam@gmail.com>
* remove framework search paths, update docs
* docs: remove "Recommended" from ios install step

Signed-off-by: Timo Glastra <timo@animo.id>
* fix: fixed hot reload on React Native. Now it retains wallet and pool handle
* fix: added back credentialSearch variables
Signed-off-by: James Ebert <jamesebert.k@gmail.com>
Signed-off-by: James Ebert <jamesebert.k@gmail.com>
Bumps [y18n](https://github.com/yargs/y18n) from 3.2.1 to 3.2.2.
- [Release notes](https://github.com/yargs/y18n/releases)
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yargs/y18n/commits)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.19 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.19...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.5 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](npm/hosted-git-info@v2.8.5...v2.8.9)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [ua-parser-js](https://github.com/faisalman/ua-parser-js) from 0.7.21 to 0.7.28.
- [Release notes](https://github.com/faisalman/ua-parser-js/releases)
- [Commits](faisalman/ua-parser-js@0.7.21...0.7.28)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: James Ebert <jamesebert.k@gmail.com>
…aOSS#56)

Signed-off-by: James Ebert <jamesebert.k@gmail.com>
Signed-off-by: Timo Glastra <timo@animo.id>
Added import export wallet support. Added Android support and using existing IOS support
Copy link
Contributor

@jakubkoci jakubkoci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, @TimovanDijk. Thanks for your contribution. Could you just add the condition as I described. It will be easier to recognize what is not implemented on the iOS platform. Thanks.

@@ -291,6 +291,14 @@ const indy = {
return IndySdk.deleteWallet(JSON.stringify(config), JSON.stringify(credentials))
},

exportWallet(wh: WalletHandle, exportConfig: Object): Promise<void> {
return IndySdk.exportWallet(wh, JSON.stringify(exportConfig))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please throw an Error for the iOS platform? The same for the second method.

Suggested change
return IndySdk.exportWallet(wh, JSON.stringify(exportConfig))
if (Platform.OS === 'ios') {
throw new Error(`Unsupported operation! Platform: ${Platform.OS}`)
}
return IndySdk.exportWallet(wh, JSON.stringify(exportConfig))

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jakubkoci It is already implemented for iOS.

@TimovanDijk can't test on iOS, so I'll test it on iOS and report back

@TimoGlastra
Copy link
Contributor

I still need to look at it! Can you reopen?

@jakubkoci
Copy link
Contributor

jakubkoci commented Jul 14, 2021

Oh no. I'm sorry. I did a force push with sign-off for each of my commits to merge it to the new Hyperledger repo 🤦‍♂️ I cannot reopen the PR.

We should perhaps do a new PR there when I commit the changes from this repo to the Hyperledger one. I have everything prepared, waiting for an official approval now.

Hopefully, the changes should be available here bb75a2b

@TimoGlastra
Copy link
Contributor

I'll reopen when the transfer is complete

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

Successfully merging this pull request may close these issues.

10 participants