-
Notifications
You must be signed in to change notification settings - Fork 515
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
Feature multikey management #3246
Feature multikey management #3246
Conversation
Signed-off-by: Patrick <patrick.st-louis@opsecid.ca>
Signed-off-by: Patrick <patrick.st-louis@opsecid.ca>
Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca>
Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca>
…s-cloudagent-python into feature-multikey-management
Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca>
@jamshale I'm having issues with the linting tests. I have ruff version 0.6.5 and even if I apply formatting it's still causing errors without much details. Do you have a clue what I'm doing wrong here? |
I think it's working correctly. Sometimes the formatter won't be able to automatically fix things. The line too long is annoying sometimes. I'm fine with just adding Usually I just run |
Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca>
now it's asking me to use version ruff==
|
Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca>
ok I think I sorted it out this time! |
Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca>
Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca>
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.
LGTM. I'm going to let Daniel have a look before approving.
Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca>
Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca>
Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca>
Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca>
Upon further testing I noticed that for it to be compatible with the askar wallet there was some slight changes required. I've implemented those. One issue is Askar is unable for find the key given a |
Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca>
Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca>
Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca>
ok I got it to work as I intended |
Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca>
Done. One thing I was wondering was if we can or should do a scenario integration test for this? They are a lot quicker and easier to write than before. |
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.
Some recommended changes
Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca>
…s-cloudagent-python into feature-multikey-management
Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca>
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.
Sorry, one more type issue to report that I spotted while reviewing your new changes.
Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca>
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.
Just one comment and I'll approve.
Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca>
Quality Gate failedFailed conditions |
* load key plugin Signed-off-by: Patrick <patrick.st-louis@opsecid.ca> * simplify functions Signed-off-by: Patrick <patrick.st-louis@opsecid.ca> * added option kid field to KeyInfo Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca> * improving linting and unit tests Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca> * add empty kid value for bbs tests Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca> * linting fix Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca> * more linting Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca> * add 2 more tests Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca> * linting Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca> * await function in tests Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca> * askar support Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca> * implement askar Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca> * spelling mistake Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca> * use a constant for default algorithm Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca> * linting Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca> * remove unused code Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca> * formatting Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca> * linting Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca> * fix key by kid Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca> * fix unit tests Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca> * add type hints and pass session to call functions instead of profile Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca> * remove manager from test function instanciation Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca> * replace inject_or with inject for providing wallet interface Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca> * move wallet injection to class initialization step Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca> --------- Signed-off-by: Patrick <patrick.st-louis@opsecid.ca> Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca>
Supersedes #3168.
During the last aca-py call, it was discuss that it would be preferable to create keys instead of dids for associating a verification method.
This PR adds 3 routes to the wallet and adds an optional
kid
property to the KeyInfo class.Deleting a key should be looked at in a separate PR as this feature isn't currently supported by aca-py and could have other ramifications to be taken into account.
@dbluhm @jamshale