fix: add w3c credential status check#72
Conversation
WalkthroughThe 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
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
Suggested labels
Poem
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
npm error Exit handler never called! 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed 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)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 1
🔭 Outside diff range comments (1)
src/verify/fragments/document-status/w3cCredentialStatus.ts (1)
8-37:SKIPPEDcode mismatch – enum says 4 but fragment uses 0.
skip()returns{ code: 0, codeString: 'SKIPPED' }, yetW3CCredentialStatusCode.SKIPPEDis4.
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 = 0and moveUNEXPECTED_ERRORto 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 againstundefinedpurposes to avoid noisy array entries.
verificationResult.map((item) => item.purpose)will yieldundefinedfor successful checks; these become extra items inpurposesand 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 descriptivecodeStringinstead 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 –issuedFragment→statusFragmentto avoid confusion.Inside
w3cCredentialStatusRevoked/w3cCredentialStatusSuspendedthe variableissuedFragmentactually 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
⛔ Files ignored due to path filters (1)
package-lock.jsonis 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 bumpingtradetrust-utils.The only change is the minor version bump from
^2.3.1→^2.3.2.
Please make sure to:
- run
npm installso thatpackage-lock.json/pnpm-lock.yamlis updated, and- trigger the full test / type-check pipeline to catch any breaking changes in the new utils release.
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (2)
src/__tests__/core/verify.test.ts (2)
240-240: Remove strayconsole.logto keep test output cleanThe
console.logleft 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’sdebug()utilities, but avoid committing raw logs.- console.log(await verifyDocument(tampered));
246-248: Replace magic-number status code with enum / constantHard-coding
code: 3risks 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
📒 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)
## [1.5.4](v1.5.3...v1.5.4) (2025-06-17) ### Bug Fixes * add w3c credential status check ([#72](#72)) ([0111cb3](0111cb3))
|
🎉 This PR is included in version 1.5.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
* 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>
* 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>
* 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>
## [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)
* 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>
* 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>
* 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>
* 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>
* 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>
## [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)
* 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 * fix: update test * fix: update enum status codes * fix: remove console
* 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>
## [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)
Summary
add w3c credential status check
Jira Ticket
Summary by CodeRabbit