-
Notifications
You must be signed in to change notification settings - Fork 525
Extract getting verification key for proof signing into VerificationKeyStrategy class #2348
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 getting verification key for proof signing into VerificationKeyStrategy class #2348
Conversation
…strategy class Signed-off-by: Matus Kempa <[email protected]>
@mkempa I'm finding this change a bit confusing. The added method is There are details there that would need to be worked out still though. Thoughts, @swcurran @andrewwhitehead @usingtechnology? |
My first intention was to return the verkey or None, hence the method name. Then I went on the path of the least resistence. Otherwise I would have to modify signature of _get_suite and fix more unit tests, etc. |
Kudos, SonarCloud Quality Gate passed! |
@PatStLouis is going to a take another look at this |
@PatStLouis -- any update on this? Thanks! |
The issue with using the When I create a did in the wallet, the current method of encoding the verkey is using the I could also have multiple Since the did and the verkey value are used to find the matching keypair, they act as a label for this keypair. The simplest approach would be to have an optional issuance options field However there is already an existing function get_local_did_for_verkey function available for this. I'm not convinced in the added value of making this pluggable. I would rather have an optional field in the issuance options for now. |
@dbluhm — thoughts on this? I’m sort of getting this, but don’t know the data flow — what is/could be where in the DID and proof. |
@PatStLouis is this superseded by having the keys in the wallet identifiable by kid/verification method id? |
Following the logic in PR 2235 it is also beneficial to have the strategy for getting verification key itself overridable by plugins.
Such a use case would be to use the universal resolver to get a DID Document and fetch a verkey identified by the key ID. Then search the wallet by the verkey to obtain DIDInfo.