Fetch schemaId on legacy cred def#3988
Conversation
Signed-off-by: Patrick St-Louis <patrick.st-louis@opsecid.ca>
jamshale
left a comment
There was a problem hiding this comment.
I don't really see how this could cause any issues except maybe if the controller creating a presentation request is providing the seq number in the cred_def identifier of the filter.
But even then it would still map correctly to the cred def?
|
I am wondering what happens if the controller provides the actual schema ID for lookup instead of the seq no. Maybe there's a switcharoo that can happen before fetching the cred def as well? I think the lookup is specific for using seq no (without looking at the code) |
The controller already needs to provide the schemaId when doing a looking, providing the seqNo won't return any results. This is about the GET |
|


When upgrading a wallet from askar to askar-anoncreds, a cred def created with a legacy did sov will return a seqNo instead of a schemaId. See #3986
This PR will resolve the schema from the seqNo and fetch the correct value.