Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create anon set DB #48

Merged
merged 3 commits into from
Dec 15, 2023
Merged

Create anon set DB #48

merged 3 commits into from
Dec 15, 2023

Conversation

lsankar4033
Copy link
Collaborator

Database that serves as our store of all anonymity sets.

Currently deployed to render with a read-replica for frontends like creddd.xyz

Copy link

vercel bot commented Dec 12, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
cred-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 15, 2023 2:25am


addressesWithMerkleProof AddressWithMerkleProof[]
AnonSet AnonSet? @relation(fields: [anonSetId], references: [id])
anonSetId String?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lsankar4033 Do you think we should make this a required foreign key? (remove the "?")

pathIndices Int[]

AnonSetMerkleTree AnonSetMerkleTree? @relation(fields: [anonSetMerkleTreeMerkleRoot], references: [merkleRoot])
anonSetMerkleTreeMerkleRoot String?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lsankar4033 here too

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes on both

@DanTehrani
Copy link
Member

@lsankar4033
The schema looks good!
I think we can add these tables to the credmapper-db (future "cred" db) as part of the consolidation: personaelabs/credmapper#4

@lsankar4033 lsankar4033 reopened this Dec 15, 2023
@lsankar4033 lsankar4033 merged commit 9536108 into main Dec 15, 2023
1 check passed
@lsankar4033 lsankar4033 deleted the lsankar/anon-set-db branch December 15, 2023 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants