hyperledger / anoncreds-rs

anoncreds-rs
https://wiki.hyperledger.org/display/anoncreds
Apache License 2.0
74 stars 55 forks source link

refactor: only issuer id for legacy->w3c #320

Closed TimoGlastra closed 9 months ago

TimoGlastra commented 9 months ago

We were running into some issues when needing to transform between legacy -> w3c anoncreds as the method requires the cred_def to be passed. It seems the cred_def is only required for the issuer_id, and this PR updates it to only require a string issuer_id rather than the whole cred def.

In our case we know the issuer_id, but we'd have to resolve the cred_def from the ledger