Comments (4)
Are you referring to all the types of credentials it can issue, or all the credentials itself that have been issued? If it's the former, you can utilize the following endpoint configuration for that particular endpoint:
https://<agent host>/.well-known/openid-credential-issuer
Look under "credentials_supported" then types. An example can be found here.
If it's the latter, I'll need to check this for you. We have a vc-status-list module, but I'll need to verify which credentials are stored there and what their life cycle is.
from ssi-sdk.
Yes, yes, i'm aware of this https://<agent host>/.well-known/openid-credential-issuer
, but i'm asking about the second one 'all the credentials itself that have been issued'.
Actually the question is, when the credential is issued it's stored on the wallet side, but is it stored somewhere on the agent side, or not?
from ssi-sdk.
Hi @DevId1000 By default the agent doesn't store issued credentials. We have the default Veramo datastore and datastoreOrm available though. There is also an optional parameter that can save the credential in the datastore during issuance. We probably aren't currently exposing that in the OID4VCI flows though.
const verifiableCredential = await agent.createVerifiableCredential({
credential: {
issuer: { id: identifiers[0].did },
issuanceDate: new Date().toISOString(),
credentialSubject: {
id: 'did:web:community.veramo.io',
you: 'Rock',
},
},
save: true,
proofFormat: 'jwt',
})
Then, provided that you have configured the agent with a dataStore and dataStoreORM, you would be able to query the credential by hash/id, or query for multiple credentials even by claims in the credentials
See for instance the following methods
https://veramo.io/docs/api/data-store.datastoreorm.datastoreormgetverifiablecredentials
https://veramo.io/docs/api/data-store.datastoreorm.datastoreormgetverifiablecredentialsbyclaims
So something like this is entirely possible:
const idOrHash = 'my VC id or calculated hash here';
const uniqueVCs = await agent.dataStoreORMGetVerifiableCredentials({
where: [
{
column: 'id',
value: [idOrHash],
op: 'Equal',
},
],
})
from ssi-sdk.
Hi @DevId1000 By default the agent doesn't store issued credentials. We have the default Veramo datastore and datastoreOrm available though. There is also an optional parameter that can save the credential in the datastore during issuance. We probably aren't currently exposing that in the OID4VCI flows though.
const verifiableCredential = await agent.createVerifiableCredential({ credential: { issuer: { id: identifiers[0].did }, issuanceDate: new Date().toISOString(), credentialSubject: { id: 'did:web:community.veramo.io', you: 'Rock', }, }, save: true, proofFormat: 'jwt', })Then, provided that you have configured the agent with a dataStore and dataStoreORM, you would be able to query the credential by hash/id, or query for multiple credentials even by claims in the credentials
See for instance the following methods https://veramo.io/docs/api/data-store.datastoreorm.datastoreormgetverifiablecredentials https://veramo.io/docs/api/data-store.datastoreorm.datastoreormgetverifiablecredentialsbyclaims
So something like this is entirely possible:
const idOrHash = 'my VC id or calculated hash here'; const uniqueVCs = await agent.dataStoreORMGetVerifiableCredentials({ where: [ { column: 'id', value: [idOrHash], op: 'Equal', }, ], })
Thanks!
from ssi-sdk.
Related Issues (18)
- nonce missing for verifiable presentations submission HOT 2
- When verifing from the mobile wallet, when the https://dev.uniresolver.io/ is down, the verification fails with gateway timeout HOT 3
- Get ERR_PACKAGE_PATH_NOT_EXPORTED when using ssi-sdk.oid4vci-issuer-rest-api. HOT 2
- State of OID4VC "auth. code flow" support HOT 2
- Status List bitstring bit ordering HOT 3
- oid4vciIssueCredential() fails when verifying did:peer proof HOT 1
- Including dynamic token for endpoint protection HOT 4
- Remove console.log from packages HOT 1
- Enhancement Request: Configurable CredentialOfferState in createVciIssuerBuilder HOT 1
- feature: make getInstanceOpts from SIOPv2RP fetching from the DB HOT 3
- Readme list of available functions doesn't match to code
- [oid4vci-issuer-rest-api] Can Access Tokens be Retrieved in CredentialDataSupplier? HOT 2
- Support for Bitstring Status List v1.0 HOT 1
- Dynamic update of presentation definitions HOT 3
- Converts a presentation to a wrapped presentation fails for sd-jwt HOT 2
- JWT is created with incorrect alg when making Authentication Response JWT HOT 3
- Intermittent issue when verifying Authentication Request HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ssi-sdk.