Skip to content

Is there a maximum number of credentials that can be issued per unit of time? #638

Answered by mirceanis
JovanShandro asked this question in Q&A
Discussion options

You must be logged in to vote

There is no limit imposed by Veramo.
I suspect that the reason you are only seeing a small number of credentials is because you are creating groups of identical credentials.
The only difference between the credentials you are creating is the timestamp, which has a resolution of Seconds.
When they are stored, they are hashed and the hash is used as primary key. since they are identical, the same hash is computed so they end up overwriting each other.

Please try to add a random nonce to your credentials and see if the issue manifests again.

import { v4 as uuidv4 } from 'uuid';
//...
  for (let i = 0; i < 100 * 1000; i++) {
    const credential: W3CCredential = {
      id: uuidv4(),
      is…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mirceanis
Comment options

@JovanShandro
Comment options

Answer selected by JovanShandro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants