-
Notifications
You must be signed in to change notification settings - Fork 405
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
Extract identities from a version specific wallet and store in the in memory wallet #1055
Changes from all commits
d63f9d9
eaddb9e
3d946c5
28fc3ee
e11de5e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -191,7 +191,14 @@ class IdentityManager { | |
* @private | ||
*/ | ||
async _extractIdentitiesFromWallet(mspId, wallet) { | ||
// TODO: To be implemented | ||
const walletFacade = await this.walletFacadeFactory.create(wallet.path); | ||
const allIDNames = await walletFacade.getAllIdentityNames(); | ||
// eslint-disable-next-line no-console | ||
console.log({allIDNames}); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like you left some debug code in, could you delete the console.log and the comment above it as well. |
||
for (const identityName in allIDNames){ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
const identity = await walletFacade.export(identityName); | ||
await this._addToWallet(identity.mspid, allIDNames[identityName], identity.certificate, identity.privateKey); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. with the change to |
||
} | ||
} | ||
|
||
/** | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you change
allIDNames
toallIdentityNames
as we don't want to use abbreviations