knox-networks / ssi

Rust SSI library that helps developers handle Digital Identity, Verifiable Credentials and Verifiable Presentations.
Apache License 2.0
2 stars 0 forks source link

SSI ContextLoader to make context configurable/overridable #112

Open fkim7 opened 1 year ago

fkim7 commented 1 year ago

Currently credential.rs has the bankaccount credential context hardcoded but we should make this configurable so clients can use different values- ex V2 instead of v1 etc.. also it is not only the bankaccount credential that we need- there maybe many VC contexts we support in the future so we should be able to add more than pub const BANK_ACCOUNT_CREDENTIAL_CONTEXT and without changing code if possible

https://github.com/knox-networks/ssi/blob/5765319f5fe419b48ea89ac3b69d613f3bb6ec9c/core/src/credential.rs#L14

LuisOsta commented 1 year ago

https://github.com/knox-networks/ssi/issues/122 should be done as part of this