Skip to content

fix: add w3c credential status check#72

Merged
nghaninn merged 4 commits into
mainfrom
fix/add-w3c-credential-status-check
Jun 17, 2025
Merged

fix: add w3c credential status check#72
nghaninn merged 4 commits into
mainfrom
fix/add-w3c-credential-status-check

Conversation

@RishabhS7

@RishabhS7 RishabhS7 commented Jun 17, 2025

Copy link
Copy Markdown
Contributor

Summary

add w3c credential status check

Jira Ticket

Summary by CodeRabbit

  • New Features
    • Improved handling and display of credential status, including clearer identification of revoked or suspended credentials.
    • Enhanced error messages for documents with revoked or suspended status.
  • Bug Fixes
    • More accurate detection and reporting of credential errors and statuses.
  • Chores
    • Updated a dependency to the latest version for improved reliability.

@coderabbitai

coderabbitai Bot commented Jun 17, 2025

Copy link
Copy Markdown
Contributor

Walkthrough

The changes introduce enhanced handling and classification of W3C credential status verification results. A new enum standardizes status codes, and error handling logic is updated to distinguish revoked and suspended states more precisely. Several utility functions are added to process verification fragments, and the error message handling is tailored for W3C credentials.

Changes

File(s) Change Summary
package.json Updated "@tradetrust-tt/tradetrust-utils" dependency from ^2.3.1 to ^2.3.2.
src/utils/fragment/index.ts Replaced direct export of errorMessageHandling; added new helper functions for W3C status detection; redefined error handling logic for W3C fragments.
src/verify/fragments/document-status/w3cCredentialStatus.ts Introduced W3CCredentialStatusCode enum; enriched verification fragments with standardized reason codes and messages.
src/tests/core/verify.test.ts Replaced numeric error codes with W3CCredentialStatusCode enum constants in tests; updated error code expectations for clarity.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant App
    participant W3CVerifier

    User->>App: Submit credential for verification
    App->>W3CVerifier: Call verify() on credential
    W3CVerifier->>App: Return verification fragments (with reason codes)
    App->>App: errorMessageHandling(fragments)
    alt Fragments are W3C-related
        App->>App: Check for revoked/suspended via helper functions
        App->>User: Return specific error messages (REVOKED/SUSPENDED)
    else Not W3C
        App->>App: Use OAErrorMessageHandling fallback
        App->>User: Return general error messages
    end
Loading

Suggested labels

released

Poem

A hop, a skip, a status check—
Now W3C codes are clear as heck!
Revoked or suspended, we know what’s true,
With enums and helpers to guide us through.
🐇✨
Bugs, beware—this rabbit’s on guard,
For every credential, we’re raising the bar!

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

npm error Exit handler never called!
npm error This is an error with npm itself. Please report this error at:
npm error https://github.com/npm/cli/issues
npm error A complete log of this run can be found in: /.npm/_logs/2025-06-17T04_16_43_250Z-debug-0.log


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 8a1c414 and 016431d.

📒 Files selected for processing (1)
  • src/__tests__/core/verify.test.ts (8 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/tests/core/verify.test.ts
✨ Finishing Touches
  • 📝 Generate Docstrings

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🔭 Outside diff range comments (1)
src/verify/fragments/document-status/w3cCredentialStatus.ts (1)

8-37: SKIPPED code mismatch – enum says 4 but fragment uses 0.

skip() returns { code: 0, codeString: 'SKIPPED' }, yet W3CCredentialStatusCode.SKIPPED is 4.
This breaks downstream helpers that rely on the enum value (e.g. utils/fragment/index.ts) and may cause false negatives.

-      reason: {
-        code: 0,
-        codeString: 'SKIPPED',
+      reason: {
+        code: W3CCredentialStatusCode.SKIPPED,
+        codeString: 'SKIPPED',

Alternatively make the enum assign SKIPPED = 0 and move UNEXPECTED_ERROR to a different value – but keep the mapping consistent in both places.

🧹 Nitpick comments (4)
src/verify/fragments/document-status/w3cCredentialStatus.ts (3)

66-70: Guard against undefined purposes to avoid noisy array entries.

verificationResult.map((item) => item.purpose) will yield undefined for successful checks; these become extra items in purposes and are harmless today but brittle.

-const purposes = verificationResult.map((item) => item.purpose);
+const purposes = verificationResult
+  .map((item) => item.purpose)
+  .filter((p): p is string => typeof p === 'string');

Keeps the intent clear and prevents accidental includes(undefined) confusion.


76-79: Use a descriptive codeString instead of the generic "ERROR".

The enum already exposes ETHERS_UNHANDLED_ERROR; propagate it for easier log aggregation:

-          codeString: 'ERROR',
+          codeString: 'ETHERS_UNHANDLED_ERROR',

96-108: Granular error message improves UX & downstream handling.

Right now the message is always 'Document has been revoked or suspended.', even when only one condition applies.

Consider templating:

-          message: 'Document has been revoked or suspended.',
+          message: hasRevocationAndSuspension
+            ? 'Document has been revoked and suspended.'
+            : hasRevocation
+              ? 'Document has been revoked.'
+              : 'Document has been suspended.',

Makes UI and analytics clearer.

src/utils/fragment/index.ts (1)

15-30: Helper naming – issuedFragmentstatusFragment to avoid confusion.

Inside w3cCredentialStatusRevoked / w3cCredentialStatusSuspended the variable issuedFragment actually represents the status fragment, not an issuance fragment. Minor but avoids mental overhead.

-  const issuedFragment = getW3CCredentialStatusFragment(fragments);
+  const statusFragment = getW3CCredentialStatusFragment(fragments);

Repeat for the suspension helper.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 8ac3c63 and a06091a.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (3)
  • package.json (1 hunks)
  • src/utils/fragment/index.ts (1 hunks)
  • src/verify/fragments/document-status/w3cCredentialStatus.ts (3 hunks)
🧰 Additional context used
🧬 Code Graph Analysis (1)
src/utils/fragment/index.ts (1)
src/verify/verify.ts (3)
  • utils (82-82)
  • InvalidVerificationFragment (89-89)
  • VerificationFragment (95-95)
🔇 Additional comments (1)
package.json (1)

118-118: Lock-file & CI sanity check after bumping tradetrust-utils.

The only change is the minor version bump from ^2.3.1^2.3.2.
Please make sure to:

  1. run npm install so that package-lock.json/pnpm-lock.yaml is updated, and
  2. trigger the full test / type-check pipeline to catch any breaking changes in the new utils release.

Comment thread src/utils/fragment/index.ts

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (2)
src/__tests__/core/verify.test.ts (2)

240-240: Remove stray console.log to keep test output clean

The console.log left in the test will add noise to CI logs and local runs. If you need this information for debugging, wrap it in a conditional or use Vitest’s debug() utilities, but avoid committing raw logs.

-      console.log(await verifyDocument(tampered));

246-248: Replace magic-number status code with enum / constant

Hard-coding code: 3 risks drift if the enum changes. Import the enum (e.g., ReasonCode.ERROR) or a helper constant so the test self-documents the meaning and stays in sync with implementation.

-              code: 3,
-              codeString: 'ERROR',
+              code: ReasonCode.ERROR,
+              codeString: 'ERROR',

(Adjust the import path according to where the enum is defined.)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a06091a and 73be2b4.

📒 Files selected for processing (1)
  • src/__tests__/core/verify.test.ts (1 hunks)
🧰 Additional context used
🧬 Code Graph Analysis (1)
src/__tests__/core/verify.test.ts (1)
src/core/verify.ts (1)
  • verifyDocument (51-81)

@nghaninn nghaninn merged commit 0111cb3 into main Jun 17, 2025
12 checks passed
@nghaninn nghaninn deleted the fix/add-w3c-credential-status-check branch June 17, 2025 04:21
nghaninn pushed a commit that referenced this pull request Jun 17, 2025
## [1.5.4](v1.5.3...v1.5.4) (2025-06-17)

### Bug Fixes

* add w3c credential status check ([#72](#72)) ([0111cb3](0111cb3))
@nghaninn

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 1.5.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

RishabhS7 added a commit that referenced this pull request Jun 30, 2025
* fix: add w3c credential status check (#72)

* fix: add w3c credential status check

* fix: update test

* fix: update enum status codes

* fix: remove console

* chore(release): 1.5.4 [skip ci]

## [1.5.4](v1.5.3...v1.5.4) (2025-06-17)

### Bug Fixes

* add w3c credential status check ([#72](#72)) ([0111cb3](0111cb3))

* fix: upgrade package (#73)

* chore(release): 1.5.5 [skip ci]

## [1.5.5](v1.5.4...v1.5.5) (2025-06-18)

### Bug Fixes

* upgrade package ([#73](#73)) ([3c6c9c7](3c6c9c7))

---------

Co-authored-by: RishabhS7 <59636880+RishabhS7@users.noreply.github.com>
Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>
nghaninn pushed a commit that referenced this pull request Jun 30, 2025
## [1.6.0-alpha.1](v1.5.3...v1.6.0-alpha.1) (2025-06-30)

### Features

* token registry functions ([#74](#74)) ([5690fcd](5690fcd))

### Miscellaneous Chores

* back merge ([#75](#75)) ([7cc1891](7cc1891)), closes [#72](#72) [#72](#72) [#73](#73) [#73](#73)
RishabhS7 pushed a commit that referenced this pull request Jun 30, 2025
* add w3c credential status check ([#72](#72)) ([0111cb3](0111cb3))
nghaninn added a commit that referenced this pull request Jul 4, 2025
* fix: add w3c credential status check (#72)

* fix: add w3c credential status check

* fix: update test

* fix: update enum status codes

* fix: remove console

* chore(release): 1.5.4 [skip ci]

## [1.5.4](v1.5.3...v1.5.4) (2025-06-17)

### Bug Fixes

* add w3c credential status check ([#72](#72)) ([0111cb3](0111cb3))

* fix: upgrade package (#73)

* chore(release): 1.5.5 [skip ci]

## [1.5.5](v1.5.4...v1.5.5) (2025-06-18)

### Bug Fixes

* upgrade package ([#73](#73)) ([3c6c9c7](3c6c9c7))

* feat: add transfer holder function

* feat: add transfer owners beneficiary

* chore: tests cleanup

* chore: tests cleanup

* fix: remove console

* fix: rever useendorement chain

* fix: remove console

* feat: add reject transfer functions

* chore: trigger rebuild after rebase

* chore(release): 1.5.4 [skip ci]

* add w3c credential status check ([#72](#72)) ([0111cb3](0111cb3))

* feat: add transfer holder function

* feat: add transfer owners beneficiary

* chore: tests cleanup

* fix: remove console

* fix: rever useendorement chain

* feat: add reject transfer functions

* chore: trigger rebuild after rebase

* chore: trigger rebuild after rebase

* feat: token registry return functions

* feat: add mint function

* fix: update fixes

* fix: update tests

* revert: revert changes

---------

Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>
Co-authored-by: Ng Han Inn <43451336+nghaninn@users.noreply.github.com>
@coderabbitai coderabbitai Bot mentioned this pull request Jul 7, 2025
nghaninn pushed a commit that referenced this pull request Jul 15, 2025
## [1.6.0-alpha.2](v1.6.0-alpha.1...v1.6.0-alpha.2) (2025-07-15)

### Features

* mint function ([#78](#78)) ([2ea52ce](2ea52ce)), closes [#72](#72) [#72](#72) [#73](#73) [#73](#73) [#72](#72)
* owner of function ([#79](#79)) ([81d0e36](81d0e36))
RishabhS7 added a commit that referenced this pull request Jul 23, 2025
* fix: add w3c credential status check (#72)

* fix: add w3c credential status check

* fix: update test

* fix: update enum status codes

* fix: remove console

* chore(release): 1.5.4 [skip ci]

## [1.5.4](v1.5.3...v1.5.4) (2025-06-17)

### Bug Fixes

* add w3c credential status check ([#72](#72)) ([0111cb3](0111cb3))

* fix: upgrade package (#73)

* chore(release): 1.5.5 [skip ci]

## [1.5.5](v1.5.4...v1.5.5) (2025-06-18)

### Bug Fixes

* upgrade package ([#73](#73)) ([3c6c9c7](3c6c9c7))

* feat: support passing titleEscrowAddress to fetchEndorsementChain (#80)

Co-authored-by: moiz-sgtradex <moiz.shaikh@sgtradextech.com>

* chore(release): 1.6.0 [skip ci]

## [1.6.0](v1.5.5...v1.6.0) (2025-07-14)

### Features

* support passing titleEscrowAddress to fetchEndorsementChain ([#80](#80)) ([aa7b4f0](aa7b4f0))

* feat: add astron v5 (#81)

Co-authored-by: maxufeng <maxufeng@caict.ac.cn>

* chore(release): 1.7.0 [skip ci]

## [1.7.0](v1.6.0...v1.7.0) (2025-07-15)

### Features

* add astron v5 ([#81](#81)) ([0bebeae](0bebeae))

---------

Co-authored-by: RishabhS7 <59636880+RishabhS7@users.noreply.github.com>
Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>
Co-authored-by: Ng Han Inn <43451336+nghaninn@users.noreply.github.com>
Co-authored-by: moiz-sgtradex <moiz.shaikh@sgtradextech.com>
Co-authored-by: caict-develop-zhangbo <68949988+caict-develop-zhangbo@users.noreply.github.com>
Co-authored-by: maxufeng <maxufeng@caict.ac.cn>
nghaninn pushed a commit that referenced this pull request Jul 23, 2025
## [1.6.0-alpha.4](v1.6.0-alpha.3...v1.6.0-alpha.4) (2025-07-23)

### Bug Fixes

* trigger release ([#86](#86)) ([d2fb6fb](d2fb6fb))

### Miscellaneous Chores

* merge main into v1  ([#85](#85)) ([b81b422](b81b422)), closes [#72](#72) [#72](#72) [#73](#73) [#73](#73) [#80](#80) [#80](#80) [#81](#81) [#81](#81)
Moiz47 added a commit that referenced this pull request Jul 30, 2025
* fix: add w3c credential status check (#72)

* fix: add w3c credential status check

* fix: update test

* fix: update enum status codes

* fix: remove console

* chore(release): 1.5.4 [skip ci]

## [1.5.4](v1.5.3...v1.5.4) (2025-06-17)

### Bug Fixes

* add w3c credential status check ([#72](#72)) ([0111cb3](0111cb3))

* fix: upgrade package (#73)

* chore(release): 1.5.5 [skip ci]

## [1.5.5](v1.5.4...v1.5.5) (2025-06-18)

### Bug Fixes

* upgrade package ([#73](#73)) ([3c6c9c7](3c6c9c7))

* feat: support passing titleEscrowAddress to fetchEndorsementChain (#80)

Co-authored-by: moiz-sgtradex <moiz.shaikh@sgtradextech.com>

* chore(release): 1.6.0 [skip ci]

## [1.6.0](v1.5.5...v1.6.0) (2025-07-14)

### Features

* support passing titleEscrowAddress to fetchEndorsementChain ([#80](#80)) ([aa7b4f0](aa7b4f0))

* feat: add astron v5 (#81)

Co-authored-by: maxufeng <maxufeng@caict.ac.cn>

* chore(release): 1.7.0 [skip ci]

## [1.7.0](v1.6.0...v1.7.0) (2025-07-15)

### Features

* add astron v5 ([#81](#81)) ([0bebeae](0bebeae))

* fix: update tradetrust-tt/tradetrust package (#87)

* fix: update tradetrust-tt/tradetrust package

* fix: update version

* fix: update imports

* chore(release): 1.7.1 [skip ci]

## [1.7.1](v1.7.0...v1.7.1) (2025-07-25)

### Bug Fixes

* update tradetrust-tt/tradetrust package ([#87](#87)) ([e4f75a4](e4f75a4))

* fix: upgrade packages (#88)

* chore(release): 1.7.2 [skip ci]

## [1.7.2](v1.7.1...v1.7.2) (2025-07-28)

### Bug Fixes

* upgrade packages ([#88](#88)) ([0cc314e](0cc314e))

* fix: error message types (#89)

* chore(release): 1.7.3 [skip ci]

## [1.7.3](v1.7.2...v1.7.3) (2025-07-28)

### Bug Fixes

* error message types ([#89](#89)) ([d83bada](d83bada))

* fix: upgrade packages (#90)

* chore(release): 1.7.4 [skip ci]

## [1.7.4](v1.7.3...v1.7.4) (2025-07-29)

### Bug Fixes

* upgrade packages ([#90](#90)) ([758651d](758651d))

---------

Co-authored-by: RishabhS7 <59636880+RishabhS7@users.noreply.github.com>
Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>
Co-authored-by: Ng Han Inn <43451336+nghaninn@users.noreply.github.com>
Co-authored-by: moiz-sgtradex <moiz.shaikh@sgtradextech.com>
Co-authored-by: caict-develop-zhangbo <68949988+caict-develop-zhangbo@users.noreply.github.com>
Co-authored-by: maxufeng <maxufeng@caict.ac.cn>
nghaninn added a commit that referenced this pull request Jul 30, 2025
* fix: add w3c credential status check (#72)

* fix: add w3c credential status check

* fix: update test

* fix: update enum status codes

* fix: remove console

* chore(release): 1.5.4 [skip ci]

## [1.5.4](v1.5.3...v1.5.4) (2025-06-17)

### Bug Fixes

* add w3c credential status check ([#72](#72)) ([0111cb3](0111cb3))

* fix: upgrade package (#73)

* chore(release): 1.5.5 [skip ci]

## [1.5.5](v1.5.4...v1.5.5) (2025-06-18)

### Bug Fixes

* upgrade package ([#73](#73)) ([3c6c9c7](3c6c9c7))

* feat: support passing titleEscrowAddress to fetchEndorsementChain (#80)

Co-authored-by: moiz-sgtradex <moiz.shaikh@sgtradextech.com>

* chore(release): 1.6.0 [skip ci]

## [1.6.0](v1.5.5...v1.6.0) (2025-07-14)

### Features

* support passing titleEscrowAddress to fetchEndorsementChain ([#80](#80)) ([aa7b4f0](aa7b4f0))

* feat: add astron v5 (#81)

Co-authored-by: maxufeng <maxufeng@caict.ac.cn>

* chore(release): 1.7.0 [skip ci]

## [1.7.0](v1.6.0...v1.7.0) (2025-07-15)

### Features

* add astron v5 ([#81](#81)) ([0bebeae](0bebeae))

* fix: update tradetrust-tt/tradetrust package (#87)

* fix: update tradetrust-tt/tradetrust package

* fix: update version

* fix: update imports

* chore(release): 1.7.1 [skip ci]

## [1.7.1](v1.7.0...v1.7.1) (2025-07-25)

### Bug Fixes

* update tradetrust-tt/tradetrust package ([#87](#87)) ([e4f75a4](e4f75a4))

* fix: upgrade packages (#88)

* chore(release): 1.7.2 [skip ci]

## [1.7.2](v1.7.1...v1.7.2) (2025-07-28)

### Bug Fixes

* upgrade packages ([#88](#88)) ([0cc314e](0cc314e))

* fix: error message types (#89)

* chore(release): 1.7.3 [skip ci]

## [1.7.3](v1.7.2...v1.7.3) (2025-07-28)

### Bug Fixes

* error message types ([#89](#89)) ([d83bada](d83bada))

* fix: upgrade packages (#90)

* chore(release): 1.7.4 [skip ci]

## [1.7.4](v1.7.3...v1.7.4) (2025-07-29)

### Bug Fixes

* upgrade packages ([#90](#90)) ([758651d](758651d))

---------

Co-authored-by: RishabhS7 <59636880+RishabhS7@users.noreply.github.com>
Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>
Co-authored-by: Ng Han Inn <43451336+nghaninn@users.noreply.github.com>
Co-authored-by: moiz-sgtradex <moiz.shaikh@sgtradextech.com>
Co-authored-by: caict-develop-zhangbo <68949988+caict-develop-zhangbo@users.noreply.github.com>
Co-authored-by: maxufeng <maxufeng@caict.ac.cn>
Moiz47 pushed a commit to Moiz47/trustvc that referenced this pull request Jul 30, 2025
* fix: add w3c credential status check (TrustVC#72)

* fix: add w3c credential status check

* fix: update test

* fix: update enum status codes

* fix: remove console

* chore(release): 1.5.4 [skip ci]

* add w3c credential status check ([TrustVC#72](TrustVC#72)) ([0111cb3](TrustVC@0111cb3))

* fix: upgrade package (TrustVC#73)

* chore(release): 1.5.5 [skip ci]

* upgrade package ([TrustVC#73](TrustVC#73)) ([3c6c9c7](TrustVC@3c6c9c7))

* feat: add transfer holder function

* feat: add transfer owners beneficiary

* chore: tests cleanup

* chore: tests cleanup

* fix: remove console

* fix: rever useendorement chain

* fix: remove console

* feat: add reject transfer functions

* chore: trigger rebuild after rebase

* chore(release): 1.5.4 [skip ci]

* add w3c credential status check ([TrustVC#72](TrustVC#72)) ([0111cb3](TrustVC@0111cb3))

* feat: add transfer holder function

* feat: add transfer owners beneficiary

* chore: tests cleanup

* fix: remove console

* fix: rever useendorement chain

* feat: add reject transfer functions

* chore: trigger rebuild after rebase

* chore: trigger rebuild after rebase

* feat: token registry return functions

* feat: add mint function

* fix: update fixes

* fix: update tests

* revert: revert changes

---------

Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>
Co-authored-by: Ng Han Inn <43451336+nghaninn@users.noreply.github.com>
RishabhS7 pushed a commit that referenced this pull request Aug 14, 2025
## [1.6.0-alpha.1](v1.5.3...v1.6.0-alpha.1) (2025-06-30)

### Features

* token registry functions ([#74](#74)) ([5690fcd](5690fcd))

### Miscellaneous Chores

* back merge ([#75](#75)) ([7cc1891](7cc1891)), closes [#72](#72) [#72](#72) [#73](#73) [#73](#73)
RishabhS7 added a commit that referenced this pull request Aug 14, 2025
* fix: add w3c credential status check (#72)

* fix: add w3c credential status check

* fix: update test

* fix: update enum status codes

* fix: remove console

* chore(release): 1.5.4 [skip ci]

## [1.5.4](v1.5.3...v1.5.4) (2025-06-17)

### Bug Fixes

* add w3c credential status check ([#72](#72)) ([0111cb3](0111cb3))

* fix: upgrade package (#73)

* chore(release): 1.5.5 [skip ci]

## [1.5.5](v1.5.4...v1.5.5) (2025-06-18)

### Bug Fixes

* upgrade package ([#73](#73)) ([3c6c9c7](3c6c9c7))

* feat: add transfer holder function

* feat: add transfer owners beneficiary

* chore: tests cleanup

* chore: tests cleanup

* fix: remove console

* fix: rever useendorement chain

* fix: remove console

* feat: add reject transfer functions

* chore: trigger rebuild after rebase

* chore(release): 1.5.4 [skip ci]

* add w3c credential status check ([#72](#72)) ([0111cb3](0111cb3))

* feat: add transfer holder function

* feat: add transfer owners beneficiary

* chore: tests cleanup

* fix: remove console

* fix: rever useendorement chain

* feat: add reject transfer functions

* chore: trigger rebuild after rebase

* chore: trigger rebuild after rebase

* feat: token registry return functions

* feat: add mint function

* fix: update fixes

* fix: update tests

* revert: revert changes

---------

Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>
Co-authored-by: Ng Han Inn <43451336+nghaninn@users.noreply.github.com>
RishabhS7 pushed a commit that referenced this pull request Aug 14, 2025
## [1.6.0-alpha.2](v1.6.0-alpha.1...v1.6.0-alpha.2) (2025-07-15)

### Features

* mint function ([#78](#78)) ([2ea52ce](2ea52ce)), closes [#72](#72) [#72](#72) [#73](#73) [#73](#73) [#72](#72)
* owner of function ([#79](#79)) ([81d0e36](81d0e36))
RishabhS7 added a commit that referenced this pull request Aug 14, 2025
* fix: add w3c credential status check (#72)

* fix: add w3c credential status check

* fix: update test

* fix: update enum status codes

* fix: remove console

* chore(release): 1.5.4 [skip ci]

## [1.5.4](v1.5.3...v1.5.4) (2025-06-17)

### Bug Fixes

* add w3c credential status check ([#72](#72)) ([0111cb3](0111cb3))

* fix: upgrade package (#73)

* chore(release): 1.5.5 [skip ci]

## [1.5.5](v1.5.4...v1.5.5) (2025-06-18)

### Bug Fixes

* upgrade package ([#73](#73)) ([3c6c9c7](3c6c9c7))

* feat: support passing titleEscrowAddress to fetchEndorsementChain (#80)

Co-authored-by: moiz-sgtradex <moiz.shaikh@sgtradextech.com>

* chore(release): 1.6.0 [skip ci]

## [1.6.0](v1.5.5...v1.6.0) (2025-07-14)

### Features

* support passing titleEscrowAddress to fetchEndorsementChain ([#80](#80)) ([aa7b4f0](aa7b4f0))

* feat: add astron v5 (#81)

Co-authored-by: maxufeng <maxufeng@caict.ac.cn>

* chore(release): 1.7.0 [skip ci]

## [1.7.0](v1.6.0...v1.7.0) (2025-07-15)

### Features

* add astron v5 ([#81](#81)) ([0bebeae](0bebeae))

---------

Co-authored-by: RishabhS7 <59636880+RishabhS7@users.noreply.github.com>
Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>
Co-authored-by: Ng Han Inn <43451336+nghaninn@users.noreply.github.com>
Co-authored-by: moiz-sgtradex <moiz.shaikh@sgtradextech.com>
Co-authored-by: caict-develop-zhangbo <68949988+caict-develop-zhangbo@users.noreply.github.com>
Co-authored-by: maxufeng <maxufeng@caict.ac.cn>
RishabhS7 pushed a commit that referenced this pull request Aug 14, 2025
## [1.6.0-alpha.4](v1.6.0-alpha.3...v1.6.0-alpha.4) (2025-07-23)

### Bug Fixes

* trigger release ([#86](#86)) ([d2fb6fb](d2fb6fb))

### Miscellaneous Chores

* merge main into v1  ([#85](#85)) ([b81b422](b81b422)), closes [#72](#72) [#72](#72) [#73](#73) [#73](#73) [#80](#80) [#80](#80) [#81](#81) [#81](#81)
RishabhS7 added a commit that referenced this pull request Aug 14, 2025
* fix: add w3c credential status check (#72)

* fix: add w3c credential status check

* fix: update test

* fix: update enum status codes

* fix: remove console

* chore(release): 1.5.4 [skip ci]

* add w3c credential status check ([#72](#72)) ([0111cb3](0111cb3))

* fix: upgrade package (#73)

* chore(release): 1.5.5 [skip ci]

* upgrade package ([#73](#73)) ([3c6c9c7](3c6c9c7))

* feat: support passing titleEscrowAddress to fetchEndorsementChain (#80)

Co-authored-by: moiz-sgtradex <moiz.shaikh@sgtradextech.com>

* chore(release): 1.6.0 [skip ci]

* support passing titleEscrowAddress to fetchEndorsementChain ([#80](#80)) ([aa7b4f0](aa7b4f0))

* feat: add astron v5 (#81)

Co-authored-by: maxufeng <maxufeng@caict.ac.cn>

* chore(release): 1.7.0 [skip ci]

* add astron v5 ([#81](#81)) ([0bebeae](0bebeae))

* fix: update tradetrust-tt/tradetrust package (#87)

* fix: update tradetrust-tt/tradetrust package

* fix: update version

* fix: update imports

* chore(release): 1.7.1 [skip ci]

* update tradetrust-tt/tradetrust package ([#87](#87)) ([e4f75a4](e4f75a4))

* fix: upgrade packages (#88)

* chore(release): 1.7.2 [skip ci]

* upgrade packages ([#88](#88)) ([0cc314e](0cc314e))

* fix: error message types (#89)

* chore(release): 1.7.3 [skip ci]

* error message types ([#89](#89)) ([d83bada](d83bada))

* fix: upgrade packages (#90)

* chore(release): 1.7.4 [skip ci]

* upgrade packages ([#90](#90)) ([758651d](758651d))

---------

Co-authored-by: RishabhS7 <59636880+RishabhS7@users.noreply.github.com>
Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>
Co-authored-by: Ng Han Inn <43451336+nghaninn@users.noreply.github.com>
Co-authored-by: moiz-sgtradex <moiz.shaikh@sgtradextech.com>
Co-authored-by: caict-develop-zhangbo <68949988+caict-develop-zhangbo@users.noreply.github.com>
Co-authored-by: maxufeng <maxufeng@caict.ac.cn>
RishabhS7 added a commit that referenced this pull request Aug 14, 2025
* fix: add w3c credential status check

* fix: update test

* fix: update enum status codes

* fix: remove console
RishabhS7 pushed a commit that referenced this pull request Aug 14, 2025
* add w3c credential status check ([#72](#72)) ([0111cb3](0111cb3))
rongquan1 added a commit that referenced this pull request Aug 15, 2025
* fix: add w3c credential status check (#72)

* fix: add w3c credential status check

* fix: update test

* fix: update enum status codes

* fix: remove console

* chore(release): 1.5.4 [skip ci]

## [1.5.4](v1.5.3...v1.5.4) (2025-06-17)

### Bug Fixes

* add w3c credential status check ([#72](#72)) ([0111cb3](0111cb3))

* fix: upgrade package (#73)

* chore(release): 1.5.5 [skip ci]

## [1.5.5](v1.5.4...v1.5.5) (2025-06-18)

### Bug Fixes

* upgrade package ([#73](#73)) ([3c6c9c7](3c6c9c7))

* feat: support passing titleEscrowAddress to fetchEndorsementChain (#80)

Co-authored-by: moiz-sgtradex <moiz.shaikh@sgtradextech.com>

* chore(release): 1.6.0 [skip ci]

## [1.6.0](v1.5.5...v1.6.0) (2025-07-14)

### Features

* support passing titleEscrowAddress to fetchEndorsementChain ([#80](#80)) ([aa7b4f0](aa7b4f0))

* feat: add astron v5 (#81)

Co-authored-by: maxufeng <maxufeng@caict.ac.cn>

* chore(release): 1.7.0 [skip ci]

## [1.7.0](v1.6.0...v1.7.0) (2025-07-15)

### Features

* add astron v5 ([#81](#81)) ([0bebeae](0bebeae))

* fix: update tradetrust-tt/tradetrust package (#87)

* fix: update tradetrust-tt/tradetrust package

* fix: update version

* fix: update imports

* chore(release): 1.7.1 [skip ci]

## [1.7.1](v1.7.0...v1.7.1) (2025-07-25)

### Bug Fixes

* update tradetrust-tt/tradetrust package ([#87](#87)) ([e4f75a4](e4f75a4))

* fix: upgrade packages (#88)

* chore(release): 1.7.2 [skip ci]

## [1.7.2](v1.7.1...v1.7.2) (2025-07-28)

### Bug Fixes

* upgrade packages ([#88](#88)) ([0cc314e](0cc314e))

* fix: error message types (#89)

* chore(release): 1.7.3 [skip ci]

## [1.7.3](v1.7.2...v1.7.3) (2025-07-28)

### Bug Fixes

* error message types ([#89](#89)) ([d83bada](d83bada))

* fix: upgrade packages (#90)

* chore(release): 1.7.4 [skip ci]

## [1.7.4](v1.7.3...v1.7.4) (2025-07-29)

### Bug Fixes

* upgrade packages ([#90](#90)) ([758651d](758651d))

* feat: token registry functions (#96)

* chore(release): 1.8.0 [skip ci]

## [1.8.0](v1.7.4...v1.8.0) (2025-07-30)

### Features

* token registry functions ([#96](#96)) ([6c379e9](6c379e9))

* fix: accept return function (#97)

* chore(release): 1.8.1 [skip ci]

## [1.8.1](v1.8.0...v1.8.1) (2025-08-07)

### Bug Fixes

* accept return function ([#97](#97)) ([6398017](6398017))

* fix: update edsa w3c verifier

* fix: update vefiable doc v2.0

* feat: token registry functions (#74)

* chore(release): 1.6.0-alpha.1 [skip ci]

## [1.6.0-alpha.1](v1.5.3...v1.6.0-alpha.1) (2025-06-30)

### Features

* token registry functions ([#74](#74)) ([5690fcd](5690fcd))

### Miscellaneous Chores

* back merge ([#75](#75)) ([7cc1891](7cc1891)), closes [#72](#72) [#72](#72) [#73](#73) [#73](#73)

* feat: mint function (#78)

* fix: add w3c credential status check (#72)

* fix: add w3c credential status check

* fix: update test

* fix: update enum status codes

* fix: remove console

* chore(release): 1.5.4 [skip ci]

## [1.5.4](v1.5.3...v1.5.4) (2025-06-17)

### Bug Fixes

* add w3c credential status check ([#72](#72)) ([0111cb3](0111cb3))

* fix: upgrade package (#73)

* chore(release): 1.5.5 [skip ci]

## [1.5.5](v1.5.4...v1.5.5) (2025-06-18)

### Bug Fixes

* upgrade package ([#73](#73)) ([3c6c9c7](3c6c9c7))

* feat: add transfer holder function

* feat: add transfer owners beneficiary

* chore: tests cleanup

* chore: tests cleanup

* fix: remove console

* fix: rever useendorement chain

* fix: remove console

* feat: add reject transfer functions

* chore: trigger rebuild after rebase

* chore(release): 1.5.4 [skip ci]

* add w3c credential status check ([#72](#72)) ([0111cb3](0111cb3))

* feat: add transfer holder function

* feat: add transfer owners beneficiary

* chore: tests cleanup

* fix: remove console

* fix: rever useendorement chain

* feat: add reject transfer functions

* chore: trigger rebuild after rebase

* chore: trigger rebuild after rebase

* feat: token registry return functions

* feat: add mint function

* fix: update fixes

* fix: update tests

* revert: revert changes

---------

Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>
Co-authored-by: Ng Han Inn <43451336+nghaninn@users.noreply.github.com>

* feat: owner of function (#79)

* feat: add ownerOf function

* feat: add test cases

* fix: update test cases for ownerof function

* fix: update imports

* fix: update imports

* chore(release): 1.6.0-alpha.2 [skip ci]

## [1.6.0-alpha.2](v1.6.0-alpha.1...v1.6.0-alpha.2) (2025-07-15)

### Features

* mint function ([#78](#78)) ([2ea52ce](2ea52ce)), closes [#72](#72) [#72](#72) [#73](#73) [#73](#73) [#72](#72)
* owner of function ([#79](#79)) ([81d0e36](81d0e36))

* chore: e2e transfers tests (#82)

* feat: add ownerOf function

* feat: add test cases

* fix: update test cases for ownerof function

* chore: add e2e test for transfer functions

* chore: add e2e test for transfer functions

* feat: add ownerOf function

* feat: add test cases

* fix: update test cases for ownerof function

* chore: add e2e test for transfer functions

* chore: add e2e test for transfer functions

* fix: update mock tests

* fix: update mock test fixtures

* fix: update mock tests for mint and return

* fix: update test script

* fix: update imports

* fix: update gitignore

* fix: delete cache

* fix: update imports

* chore: e2e tests reject transfer (#83)

* chore: e2e tests for reject functions

* fix: reject function ethers v6 compatible

* fix: update imports

* fix: mock test cases

* fix: import fixed

* fix: e2e return token tests (#84)

* chore: e2e tests for reject functions

* fix: reject function ethers v6 compatible

* fix: update imports

* fix: mock test cases

* fix: static call fixes

* chore: add e2e test cases

* fix: update imports

* fix: update imports

* fix: tests

* fix: mock functions

* fix: change name

* fix: update imports

* fix: update src imports

* chore(release): 1.6.0-alpha.3 [skip ci]

## [1.6.0-alpha.3](v1.6.0-alpha.2...v1.6.0-alpha.3) (2025-07-18)

### Bug Fixes

* e2e return token tests ([#84](#84)) ([703be01](703be01))

### Miscellaneous Chores

* e2e tests reject transfer ([#83](#83)) ([58a8da2](58a8da2))
* e2e transfers tests ([#82](#82)) ([145e763](145e763))

* chore: merge main into v1  (#85)

* fix: add w3c credential status check (#72)

* fix: add w3c credential status check

* fix: update test

* fix: update enum status codes

* fix: remove console

* chore(release): 1.5.4 [skip ci]

## [1.5.4](v1.5.3...v1.5.4) (2025-06-17)

### Bug Fixes

* add w3c credential status check ([#72](#72)) ([0111cb3](0111cb3))

* fix: upgrade package (#73)

* chore(release): 1.5.5 [skip ci]

## [1.5.5](v1.5.4...v1.5.5) (2025-06-18)

### Bug Fixes

* upgrade package ([#73](#73)) ([3c6c9c7](3c6c9c7))

* feat: support passing titleEscrowAddress to fetchEndorsementChain (#80)

Co-authored-by: moiz-sgtradex <moiz.shaikh@sgtradextech.com>

* chore(release): 1.6.0 [skip ci]

## [1.6.0](v1.5.5...v1.6.0) (2025-07-14)

### Features

* support passing titleEscrowAddress to fetchEndorsementChain ([#80](#80)) ([aa7b4f0](aa7b4f0))

* feat: add astron v5 (#81)

Co-authored-by: maxufeng <maxufeng@caict.ac.cn>

* chore(release): 1.7.0 [skip ci]

## [1.7.0](v1.6.0...v1.7.0) (2025-07-15)

### Features

* add astron v5 ([#81](#81)) ([0bebeae](0bebeae))

---------

Co-authored-by: RishabhS7 <59636880+RishabhS7@users.noreply.github.com>
Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>
Co-authored-by: Ng Han Inn <43451336+nghaninn@users.noreply.github.com>
Co-authored-by: moiz-sgtradex <moiz.shaikh@sgtradextech.com>
Co-authored-by: caict-develop-zhangbo <68949988+caict-develop-zhangbo@users.noreply.github.com>
Co-authored-by: maxufeng <maxufeng@caict.ac.cn>

* fix: trigger release (#86)

Co-authored-by: moiz-sgtradex <moiz.shaikh@sgtradextech.com>

* chore(release): 1.6.0-alpha.4 [skip ci]

## [1.6.0-alpha.4](v1.6.0-alpha.3...v1.6.0-alpha.4) (2025-07-23)

### Bug Fixes

* trigger release ([#86](#86)) ([d2fb6fb](d2fb6fb))

### Miscellaneous Chores

* merge main into v1  ([#85](#85)) ([b81b422](b81b422)), closes [#72](#72) [#72](#72) [#73](#73) [#73](#73) [#80](#80) [#80](#80) [#81](#81) [#81](#81)

* chore: rebase v1 with main (#95)

* fix: add w3c credential status check (#72)

* fix: add w3c credential status check

* fix: update test

* fix: update enum status codes

* fix: remove console

* chore(release): 1.5.4 [skip ci]

* add w3c credential status check ([#72](#72)) ([0111cb3](0111cb3))

* fix: upgrade package (#73)

* chore(release): 1.5.5 [skip ci]

* upgrade package ([#73](#73)) ([3c6c9c7](3c6c9c7))

* feat: support passing titleEscrowAddress to fetchEndorsementChain (#80)

Co-authored-by: moiz-sgtradex <moiz.shaikh@sgtradextech.com>

* chore(release): 1.6.0 [skip ci]

* support passing titleEscrowAddress to fetchEndorsementChain ([#80](#80)) ([aa7b4f0](aa7b4f0))

* feat: add astron v5 (#81)

Co-authored-by: maxufeng <maxufeng@caict.ac.cn>

* chore(release): 1.7.0 [skip ci]

* add astron v5 ([#81](#81)) ([0bebeae](0bebeae))

* fix: update tradetrust-tt/tradetrust package (#87)

* fix: update tradetrust-tt/tradetrust package

* fix: update version

* fix: update imports

* chore(release): 1.7.1 [skip ci]

* update tradetrust-tt/tradetrust package ([#87](#87)) ([e4f75a4](e4f75a4))

* fix: upgrade packages (#88)

* chore(release): 1.7.2 [skip ci]

* upgrade packages ([#88](#88)) ([0cc314e](0cc314e))

* fix: error message types (#89)

* chore(release): 1.7.3 [skip ci]

* error message types ([#89](#89)) ([d83bada](d83bada))

* fix: upgrade packages (#90)

* chore(release): 1.7.4 [skip ci]

* upgrade packages ([#90](#90)) ([758651d](758651d))

---------

Co-authored-by: RishabhS7 <59636880+RishabhS7@users.noreply.github.com>
Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>
Co-authored-by: Ng Han Inn <43451336+nghaninn@users.noreply.github.com>
Co-authored-by: moiz-sgtradex <moiz.shaikh@sgtradextech.com>
Co-authored-by: caict-develop-zhangbo <68949988+caict-develop-zhangbo@users.noreply.github.com>
Co-authored-by: maxufeng <maxufeng@caict.ac.cn>

* fix: add w3c credential status check (#72)

* fix: add w3c credential status check

* fix: update test

* fix: update enum status codes

* fix: remove console

* chore(release): 1.5.4 [skip ci]

* add w3c credential status check ([#72](#72)) ([0111cb3](0111cb3))

* fix: upgrade package (#73)

* chore(release): 1.5.5 [skip ci]

* upgrade package ([#73](#73)) ([3c6c9c7](3c6c9c7))

* fix: update edsa w3c verifier

* fix: resolve conflicts

* fix: rebase

* fix: resolve conflicts

* fix: update package lock

* fix: resolve conflicts

* fix: verify test

* fix: cryptosuit types

---------

Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>
Co-authored-by: Ng Han Inn <43451336+nghaninn@users.noreply.github.com>
Co-authored-by: Moiz Shaikh <58319530+Moiz47@users.noreply.github.com>
Co-authored-by: moiz-sgtradex <moiz.shaikh@sgtradextech.com>
Co-authored-by: caict-develop-zhangbo <68949988+caict-develop-zhangbo@users.noreply.github.com>
Co-authored-by: maxufeng <maxufeng@caict.ac.cn>
Co-authored-by: rongquan1 <rongquan.low@gmail.com>
nghaninn pushed a commit that referenced this pull request Aug 19, 2025
## [1.6.0-alpha.5](v1.6.0-alpha.4...v1.6.0-alpha.5) (2025-08-19)

### Bug Fixes

* add w3c version detection function ([#103](#103)) ([3270cc6](3270cc6))

### Miscellaneous Chores

* ecdsa w3c verify ([#100](#100)) ([484e1ff](484e1ff)), closes [#72](#72) [#72](#72) [#73](#73) [#73](#73) [#80](#80) [#80](#80) [#81](#81) [#81](#81) [#87](#87) [#87](#87) [#88](#88) [#88](#88) [#89](#89) [#89](#89) [#90](#90) [#90](#90) [#96](#96) [#96](#96) [#97](#97) [#97](#97) [#74](#74) [#74](#74) [#72](#72) [#72](#72) [#73](#73) [#73](#73) [#78](#78) [#72](#72) [#72](#72) [#73](#73) [#73](#73) [#72](#72)
* rebase v1 with main ([#95](#95)) ([b54b146](b54b146)), closes [#72](#72) [#72](#72) [#73](#73) [#73](#73) [#80](#80) [#80](#80) [#81](#81) [#81](#81) [#87](#87) [#87](#87) [#88](#88) [#88](#88) [#89](#89) [#89](#89) [#90](#90) [#90](#90)
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.

2 participants