Wrong schema Id is stored for credentials
sairanjit opened this issue · 3 comments
sairanjit commented
While storing the credential in wallet if thedid
of schemaId
and credDefId
are different then the wallet uses the did of credDefId
for schemaId
.
- The issue is here https://github.com/openwallet-foundation/credo-ts/blob/main/packages/indy-vdr/src/anoncreds/IndyVdrAnonCredsRegistry.ts#L274
- Same
namespaceIdentifier
is passed to functionthis.fetchIndySchemaWithSeqNo
but it should be of theschemaId
From where can we use the same namespaceIdentifier
for schemaId
?
TimoGlastra commented
Ah good catch. We should probably add tests where the schema creator is different from the cred def creator.
Would you be able to create a fix, and also add some tests?
sairanjit commented
Yeah Sure @TimoGlastra
pallavighule commented
@sairanjit @TimoGlastra I am looking into this . I will raise the PR soon