Skip to content

fix: remove did verification for issuer identity#126

Merged
rongquan1 merged 2 commits intomainfrom
maintenance/remove-did
Feb 3, 2026
Merged

fix: remove did verification for issuer identity#126
rongquan1 merged 2 commits intomainfrom
maintenance/remove-did

Conversation

@pennhan-dex
Copy link
Copy Markdown
Contributor

@pennhan-dex pennhan-dex commented Feb 2, 2026

Summary

Remove Issuer Identity verification using DID method.

Changes

Removed OpenAttestationDidIdentityProof from verifier
Updated affected unit tests

Summary by CodeRabbit

  • Refactor

    • Removed DID-based issuer identity proof verification from the verification pipeline.
  • Tests

    • Updated snapshot expectations and test cases to reflect the removal of the DID-based identity proof entry.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Feb 2, 2026

📝 Walkthrough

Walkthrough

The PR removes the openAttestationDidIdentityProof verifier from verification logic and public exports, and updates test snapshots to no longer include the DID-based skipped identity proof entries.

Changes

Cohort / File(s) Summary
Test Snapshots
src/__tests__/core/verify.test.ts
Removed OpenAttestationDidIdentityProof/DID-based issuer identity proof entries from multiple V2/V3 inline snapshots.
Verification Logic & Exports
src/verify/verify.ts, src/verify/fragments/index.ts
Deleted openAttestationDidIdentityProof from issuer identity verifiers, from the aggregated verifier list, and from the module's public exports.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Suggested reviewers

  • rongquan1
  • RishabhS7

Poem

🐇 I hopped through proofs with care and cheer,
Found a DID that need not linger near.
Snapshots trimmed, exports light and spry,
A tidy hop beneath the sky. ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title 'fix: remove did verification for issuer identity' accurately and concisely summarizes the main change: removing DID-based issuer identity verification from the codebase.
Description check ✅ Passed The description covers the required template sections with adequate detail: Summary explains the main purpose, Changes lists key modifications, but the Issues section is missing.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch maintenance/remove-did

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In `@src/verify/verify.ts`:
- Line 60: Remove the lingering export/import of openAttestationDidIdentityProof
from src/verify/fragments/index.ts (delete it from the import list and from the
export statement) and ensure the final verifier list constant
openAttestationVerifiers does not reintroduce it by checking
originalOpenAttestationVerifiers (from `@tradetrust-tt/tt-verify`); if
originalOpenAttestationVerifiers includes openAttestationDidIdentityProof,
filter or omit that entry when creating openAttestationVerifiers (the const
openAttestationVerifiers = [...originalOpenAttestationVerifiers]) so the
verifier is excluded even if present upstream.

Comment thread src/verify/verify.ts
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Feb 2, 2026

@rongquan1 rongquan1 merged commit 3ea270c into main Feb 3, 2026
21 checks passed
@rongquan1 rongquan1 deleted the maintenance/remove-did branch February 3, 2026 05:12
nghaninn pushed a commit that referenced this pull request Feb 3, 2026
## [2.5.2](v2.5.1...v2.5.2) (2026-02-03)

### Bug Fixes

* remove did verification for issuer identity ([#126](#126)) ([3ea270c](3ea270c))
@tradetrustimda
Copy link
Copy Markdown

🎉 This PR is included in version 2.5.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants