Skip to content

feat(zkp): implement ZkpProof entity with TypeORM decorators (#340) - #441

Merged
llinsss merged 1 commit into
DogStark:mainfrom
coredevdave-cmd:feature/340-zkp-proof-entity
May 28, 2026
Merged

llinsss merged 1 commit into
DogStark:mainfrom
coredevdave-cmd:feature/340-zkp-proof-entity

Conversation

@coredevdave-cmd

Copy link
Copy Markdown
Contributor

Summary

Reimplements the deleted proof.entity.ts for the ZKP module.

Changes

  • ProofStatus enum: pending / valid / invalid / expired / revoked
  • Indexes on petId, vaccinationId, status, expiresAt for query performance
  • CHECK constraint: expiresAt > createdAt
  • Columns: publicInputs (jsonb), proof (text), commitment (text), isValid, expiresAt, verifiedAt, revokedAt
  • Private witness is never stored

Files

  • backend/src/modules/zkp/entities/proof.entity.ts

Closes #340

…xes (DogStark#340)

- Add ProofStatus enum (pending/valid/invalid/expired/revoked)
- Add composite indexes on petId, vaccinationId, status, expiresAt
- Add CHECK constraint ensuring expiresAt > createdAt
- Add revokedAt and verifiedAt timestamp columns
- Persist only public inputs; private witness is never stored
@drips-wave

drips-wave Bot commented May 27, 2026

Copy link
Copy Markdown

@coredevdave-cmd Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@llinsss
llinsss merged commit 9a5107e into DogStark:main May 28, 2026
1 check passed
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.

Implement ZKP Proof Entity

2 participants