Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
120 commits
Select commit Hold shift + click to select a range
7fe49f8
fix: update fetchCredentialStatusVC to use documentLoader (#46)
nghaninn Apr 9, 2025
9244c35
chore(release): @trustvc/w3c-context@1.2.3-alpha.1 [skip ci]
semantic-release-bot Apr 9, 2025
5afee33
chore(release): @trustvc/w3c-credential-status@1.2.3-alpha.1 [skip ci]
semantic-release-bot Apr 9, 2025
2a80068
chore(release): @trustvc/w3c-vc@1.2.7-alpha.1 [skip ci]
semantic-release-bot Apr 9, 2025
d31b356
chore(release): @trustvc/w3c-cli@1.2.7-alpha.1 [skip ci]
semantic-release-bot Apr 9, 2025
57f94c9
chore(release): @trustvc/w3c@1.2.7-alpha.1 [skip ci]
semantic-release-bot Apr 9, 2025
dae74e7
fix: add export (#47)
nghaninn Apr 9, 2025
7413fa8
chore(release): @trustvc/w3c-vc@1.2.7-alpha.2 [skip ci]
semantic-release-bot Apr 9, 2025
3563950
chore(release): @trustvc/w3c-cli@1.2.7-alpha.2 [skip ci]
semantic-release-bot Apr 9, 2025
c3b8f9c
chore(release): @trustvc/w3c@1.2.7-alpha.2 [skip ci]
semantic-release-bot Apr 9, 2025
4a9f52a
fix: add cache for jws 2020 v1 (#48)
nghaninn Apr 9, 2025
e36cecc
chore(release): @trustvc/w3c-context@1.2.3-alpha.2 [skip ci]
semantic-release-bot Apr 9, 2025
b2faa80
chore(release): @trustvc/w3c-credential-status@1.2.3-alpha.2 [skip ci]
semantic-release-bot Apr 9, 2025
aea5752
chore(release): @trustvc/w3c-vc@1.2.7-alpha.3 [skip ci]
semantic-release-bot Apr 9, 2025
b957e09
chore(release): @trustvc/w3c-cli@1.2.7-alpha.3 [skip ci]
semantic-release-bot Apr 9, 2025
8380e2d
chore(release): @trustvc/w3c@1.2.7-alpha.3 [skip ci]
semantic-release-bot Apr 9, 2025
ce1c81f
chore: add multikey and data integrity support (#65)
rongquan1 Jul 24, 2025
2511e38
chore: safely rebase alpha on top of main (#66)
rongquan1 Jul 25, 2025
1ad1690
feat: add bbs-2023 and ecdsa-sd-2023 key generation and did support (…
rongquan1 Jul 31, 2025
de0be8a
chore(release): @trustvc/w3c-issuer@1.3.0-alpha.1 [skip ci]
semantic-release-bot Jul 31, 2025
67941f1
chore(release): @trustvc/w3c-context@1.3.0-alpha.1 [skip ci]
semantic-release-bot Jul 31, 2025
39b84ae
chore(release): @trustvc/w3c-credential-status@1.3.0-alpha.1 [skip ci]
semantic-release-bot Jul 31, 2025
9a6f647
chore(release): @trustvc/w3c-vc@1.3.0-alpha.1 [skip ci]
semantic-release-bot Jul 31, 2025
6335669
chore(release): @trustvc/w3c-cli@1.3.0-alpha.1 [skip ci]
semantic-release-bot Jul 31, 2025
2609c71
chore(release): @trustvc/w3c@1.3.0-alpha.1 [skip ci]
semantic-release-bot Jul 31, 2025
20d5e69
feat: add ecdsa-sd-2023 support (#68)
rongquan1 Aug 7, 2025
77b1898
chore(release): @trustvc/w3c-issuer@1.3.0-alpha.2 [skip ci]
semantic-release-bot Aug 7, 2025
7fca3d0
chore(release): @trustvc/w3c-context@1.3.0-alpha.2 [skip ci]
semantic-release-bot Aug 7, 2025
d348a8b
chore(release): @trustvc/w3c-credential-status@1.3.0-alpha.2 [skip ci]
semantic-release-bot Aug 7, 2025
e1ecbf1
chore(release): @trustvc/w3c-vc@1.3.0-alpha.2 [skip ci]
semantic-release-bot Aug 7, 2025
c4d2265
chore(release): @trustvc/w3c-cli@1.3.0-alpha.2 [skip ci]
semantic-release-bot Aug 7, 2025
b63352f
chore(release): @trustvc/w3c@1.3.0-alpha.2 [skip ci]
semantic-release-bot Aug 7, 2025
e4219ee
feat: add support for w3c vc data model v2 (#69)
rongquan1 Aug 13, 2025
c4f8e65
chore(release): @trustvc/w3c-issuer@1.3.0-alpha.3 [skip ci]
semantic-release-bot Aug 13, 2025
d5290d3
chore(release): @trustvc/w3c-context@1.3.0-alpha.3 [skip ci]
semantic-release-bot Aug 13, 2025
1f56fb3
chore(release): @trustvc/w3c-credential-status@1.3.0-alpha.3 [skip ci]
semantic-release-bot Aug 13, 2025
b9e05a9
chore(release): @trustvc/w3c-vc@1.3.0-alpha.3 [skip ci]
semantic-release-bot Aug 13, 2025
9ebdf3b
chore(release): @trustvc/w3c-cli@1.3.0-alpha.3 [skip ci]
semantic-release-bot Aug 13, 2025
7b16718
chore(release): @trustvc/w3c@1.3.0-alpha.3 [skip ci]
semantic-release-bot Aug 13, 2025
c31c59b
chore: package lock update (#70)
Moiz47 Aug 18, 2025
aa958c4
fix: trigger release (#71)
Moiz47 Aug 18, 2025
3fbc3a3
fix: rendermethod v2 (#72)
rongquan1 Aug 18, 2025
0b252f7
chore(release): @trustvc/w3c-context@1.3.0-alpha.4 [skip ci]
semantic-release-bot Aug 18, 2025
bd63fb5
chore(release): @trustvc/w3c-credential-status@1.3.0-alpha.4 [skip ci]
semantic-release-bot Aug 18, 2025
6a8fae9
chore(release): @trustvc/w3c-vc@1.3.0-alpha.4 [skip ci]
semantic-release-bot Aug 18, 2025
d1822cb
chore(release): @trustvc/w3c-cli@1.3.0-alpha.4 [skip ci]
semantic-release-bot Aug 18, 2025
6de9d47
chore(release): @trustvc/w3c@1.3.0-alpha.4 [skip ci]
semantic-release-bot Aug 18, 2025
6e1a067
fix: rendermethod v2 (#73)
rongquan1 Aug 18, 2025
e26a068
chore(release): @trustvc/w3c-context@1.3.0-alpha.5 [skip ci]
semantic-release-bot Aug 18, 2025
000c17e
chore(release): @trustvc/w3c-credential-status@1.3.0-alpha.5 [skip ci]
semantic-release-bot Aug 18, 2025
732f6f7
chore(release): @trustvc/w3c-vc@1.3.0-alpha.5 [skip ci]
semantic-release-bot Aug 18, 2025
c46e1dc
chore(release): @trustvc/w3c-cli@1.3.0-alpha.5 [skip ci]
semantic-release-bot Aug 18, 2025
53f71c5
chore(release): @trustvc/w3c@1.3.0-alpha.5 [skip ci]
semantic-release-bot Aug 18, 2025
7fe399e
feat: add support for w3c data model 2.0 with bitstring status list a…
rongquan1 Aug 19, 2025
569512a
chore(release): @trustvc/w3c-issuer@1.3.0-alpha.4 [skip ci]
semantic-release-bot Aug 19, 2025
401869c
chore(release): @trustvc/w3c-context@1.3.0-alpha.6 [skip ci]
semantic-release-bot Aug 19, 2025
6cc2534
chore(release): @trustvc/w3c-credential-status@1.3.0-alpha.6 [skip ci]
semantic-release-bot Aug 19, 2025
f46ca3f
chore(release): @trustvc/w3c-vc@1.3.0-alpha.6 [skip ci]
semantic-release-bot Aug 19, 2025
13daa8b
chore(release): @trustvc/w3c-cli@1.3.0-alpha.6 [skip ci]
semantic-release-bot Aug 19, 2025
3c0b2fa
chore(release): @trustvc/w3c@1.3.0-alpha.6 [skip ci]
semantic-release-bot Aug 19, 2025
0cc8941
fix: expose version detection function (#76)
RishabhS7 Aug 19, 2025
2ff7d45
chore(release): @trustvc/w3c-issuer@1.3.0-alpha.5 [skip ci]
semantic-release-bot Aug 19, 2025
636c647
chore(release): @trustvc/w3c-context@1.3.0-alpha.7 [skip ci]
semantic-release-bot Aug 19, 2025
5468fde
chore(release): @trustvc/w3c-credential-status@1.3.0-alpha.7 [skip ci]
semantic-release-bot Aug 19, 2025
0e84ac9
chore(release): @trustvc/w3c-vc@1.3.0-alpha.7 [skip ci]
semantic-release-bot Aug 19, 2025
708e914
chore(release): @trustvc/w3c-cli@1.3.0-alpha.7 [skip ci]
semantic-release-bot Aug 19, 2025
82a2305
chore(release): @trustvc/w3c@1.3.0-alpha.7 [skip ci]
semantic-release-bot Aug 19, 2025
7ab0824
fix: use base64url decode (#77)
Moiz47 Aug 27, 2025
2b959a2
chore(release): @trustvc/w3c-vc@1.3.0-alpha.8 [skip ci]
semantic-release-bot Aug 27, 2025
eea8d5a
chore(release): @trustvc/w3c-cli@1.3.0-alpha.8 [skip ci]
semantic-release-bot Aug 27, 2025
05b40f1
chore(release): @trustvc/w3c@1.3.0-alpha.8 [skip ci]
semantic-release-bot Aug 27, 2025
972deb7
fix: handle both buffer and uint8array env in base proof header check…
rongquan1 Aug 27, 2025
c4fa9bb
chore(release): @trustvc/w3c-issuer@1.3.0-alpha.6 [skip ci]
semantic-release-bot Aug 27, 2025
4dd2df9
chore(release): @trustvc/w3c-context@1.3.0-alpha.8 [skip ci]
semantic-release-bot Aug 27, 2025
4d0d001
chore(release): @trustvc/w3c-credential-status@1.3.0-alpha.8 [skip ci]
semantic-release-bot Aug 27, 2025
a862c44
chore(release): @trustvc/w3c-vc@1.3.0-alpha.9 [skip ci]
semantic-release-bot Aug 27, 2025
4b813bf
chore(release): @trustvc/w3c-cli@1.3.0-alpha.9 [skip ci]
semantic-release-bot Aug 27, 2025
4b93cd3
chore(release): @trustvc/w3c@1.3.0-alpha.9 [skip ci]
semantic-release-bot Aug 27, 2025
8e39ce8
chore: add isDerived function for v2 documents (#79)
RishabhS7 Sep 2, 2025
8b7f586
fix: update package lock (#80)
RishabhS7 Sep 2, 2025
f41596f
chore(release): @trustvc/w3c-issuer@1.3.0-alpha.7 [skip ci]
semantic-release-bot Sep 2, 2025
b637685
chore(release): @trustvc/w3c-context@1.3.0-alpha.9 [skip ci]
semantic-release-bot Sep 2, 2025
2d09dab
chore(release): @trustvc/w3c-credential-status@1.3.0-alpha.9 [skip ci]
semantic-release-bot Sep 2, 2025
fdd3880
chore(release): @trustvc/w3c-vc@1.3.0-alpha.10 [skip ci]
semantic-release-bot Sep 2, 2025
5cfb7b5
chore(release): @trustvc/w3c-cli@1.3.0-alpha.10 [skip ci]
semantic-release-bot Sep 2, 2025
e13a1a5
chore(release): @trustvc/w3c@1.3.0-alpha.10 [skip ci]
semantic-release-bot Sep 2, 2025
5130d91
fix: add derivation support for ecdsa bitstring vc (#81)
rongquan1 Sep 10, 2025
9e7c2bb
chore(release): @trustvc/w3c-issuer@1.3.0-alpha.8 [skip ci]
semantic-release-bot Sep 10, 2025
4e44591
chore(release): @trustvc/w3c-context@1.3.0-alpha.10 [skip ci]
semantic-release-bot Sep 10, 2025
12021bb
chore(release): @trustvc/w3c-credential-status@1.3.0-alpha.10 [skip ci]
semantic-release-bot Sep 10, 2025
3a5f47c
chore(release): @trustvc/w3c-vc@1.3.0-alpha.11 [skip ci]
semantic-release-bot Sep 10, 2025
4365761
chore(release): @trustvc/w3c-cli@1.3.0-alpha.11 [skip ci]
semantic-release-bot Sep 10, 2025
07b5fbe
chore(release): @trustvc/w3c@1.3.0-alpha.11 [skip ci]
semantic-release-bot Sep 10, 2025
493a248
feat: add resolve, resolveRepresentation and dereference functions (#87)
Moiz47 Sep 24, 2025
4302feb
chore(release): @trustvc/w3c-issuer@1.3.0-alpha.9 [skip ci]
semantic-release-bot Sep 24, 2025
7887d06
chore(release): @trustvc/w3c-context@1.3.0-alpha.11 [skip ci]
semantic-release-bot Sep 24, 2025
ccfd5a8
chore(release): @trustvc/w3c-credential-status@1.3.0-alpha.11 [skip ci]
semantic-release-bot Sep 24, 2025
2363530
chore(release): @trustvc/w3c-vc@1.3.0-alpha.12 [skip ci]
semantic-release-bot Sep 24, 2025
770ac1a
chore(release): @trustvc/w3c-cli@1.3.0-alpha.12 [skip ci]
semantic-release-bot Sep 24, 2025
e54756f
chore(release): @trustvc/w3c@1.3.0-alpha.12 [skip ci]
semantic-release-bot Sep 24, 2025
082e6f0
feat: bbs2023 implementation (#88)
rongquan1 Sep 24, 2025
47e3727
chore(release): @trustvc/w3c-issuer@1.3.0-alpha.10 [skip ci]
semantic-release-bot Sep 24, 2025
6a5a8a2
chore(release): @trustvc/w3c-context@1.3.0-alpha.12 [skip ci]
semantic-release-bot Sep 24, 2025
4be49b4
chore(release): @trustvc/w3c-credential-status@1.3.0-alpha.12 [skip ci]
semantic-release-bot Sep 24, 2025
bad1447
chore(release): @trustvc/w3c-vc@1.3.0-alpha.13 [skip ci]
semantic-release-bot Sep 24, 2025
d7bade6
chore(release): @trustvc/w3c@1.3.0-alpha.13 [skip ci]
semantic-release-bot Sep 24, 2025
01a316b
fix: update proof type (#90)
Moiz47 Oct 6, 2025
acf356e
chore(release): @trustvc/w3c-vc@1.3.0-alpha.14 [skip ci]
semantic-release-bot Oct 6, 2025
82d1862
chore(release): @trustvc/w3c@1.3.0-alpha.14 [skip ci]
semantic-release-bot Oct 6, 2025
3e965d4
fix: type checks (#91)
RishabhS7 Oct 7, 2025
b1220b1
chore(release): @trustvc/w3c-vc@1.3.0-alpha.15 [skip ci]
semantic-release-bot Oct 7, 2025
e833bfb
chore(release): @trustvc/w3c@1.3.0-alpha.15 [skip ci]
semantic-release-bot Oct 7, 2025
c49bbfe
feat: status list update for bbs and v2.0 (#89)
Moiz47 Oct 8, 2025
8cca257
chore(release): @trustvc/w3c-credential-status@1.3.0-alpha.13 [skip ci]
semantic-release-bot Oct 8, 2025
c8de122
chore(release): @trustvc/w3c-vc@1.3.0-alpha.16 [skip ci]
semantic-release-bot Oct 8, 2025
42de1a2
chore(release): @trustvc/w3c@1.3.0-alpha.16 [skip ci]
semantic-release-bot Oct 8, 2025
87e1075
fix: update check credential function (#92)
RishabhS7 Oct 9, 2025
12ef3d3
chore(release): @trustvc/w3c-vc@1.3.0-alpha.17 [skip ci]
semantic-release-bot Oct 9, 2025
8bc94eb
chore(release): @trustvc/w3c@1.3.0-alpha.17 [skip ci]
semantic-release-bot Oct 9, 2025
18802f2
docs: w3c issuer readme update (#93)
Moiz47 Oct 22, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ signed_vc*.json
credentialStatus*.json
derived_vc*.json
reveal*.json
public/context/
public/context/*.json
1 change: 1 addition & 0 deletions .nxignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
apps/w3c-cli
168 changes: 168 additions & 0 deletions apps/w3c-cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,171 @@
# [1.3.0-alpha.12](https://github.com/TrustVC/w3c/compare/@trustvc/w3c-cli@1.3.0-alpha.11...@trustvc/w3c-cli@1.3.0-alpha.12) (2025-09-24)


### Features

* add resolve, resolveRepresentation and dereference functions ([#87](https://github.com/TrustVC/w3c/issues/87)) ([493a248](https://github.com/TrustVC/w3c/commit/493a24876ee39500c659a884caf6e8d82d8c4f56))

# [1.3.0-alpha.11](https://github.com/TrustVC/w3c/compare/@trustvc/w3c-cli@1.3.0-alpha.10...@trustvc/w3c-cli@1.3.0-alpha.11) (2025-09-10)


### Bug Fixes

* add derivation support for ecdsa bitstring vc ([#81](https://github.com/TrustVC/w3c/issues/81)) ([5130d91](https://github.com/TrustVC/w3c/commit/5130d91079e67c2fc2b4dbf948995e930bc2ed12))

# [1.3.0-alpha.10](https://github.com/TrustVC/w3c/compare/@trustvc/w3c-cli@1.3.0-alpha.9...@trustvc/w3c-cli@1.3.0-alpha.10) (2025-09-02)


### Bug Fixes

* update package lock ([#80](https://github.com/TrustVC/w3c/issues/80)) ([8b7f586](https://github.com/TrustVC/w3c/commit/8b7f586bb1f7736a0c58cc19d8455988a0222987))

# [1.3.0-alpha.9](https://github.com/TrustVC/w3c/compare/@trustvc/w3c-cli@1.3.0-alpha.8...@trustvc/w3c-cli@1.3.0-alpha.9) (2025-08-27)


### Bug Fixes

* handle both buffer and uint8array env in base proof header check ([#78](https://github.com/TrustVC/w3c/issues/78)) ([972deb7](https://github.com/TrustVC/w3c/commit/972deb7c1c08083766a6b46290ae6d5648bacff1))

# [1.3.0-alpha.8](https://github.com/TrustVC/w3c/compare/@trustvc/w3c-cli@1.3.0-alpha.7...@trustvc/w3c-cli@1.3.0-alpha.8) (2025-08-27)


### Bug Fixes

* use base64url decode ([#77](https://github.com/TrustVC/w3c/issues/77)) ([7ab0824](https://github.com/TrustVC/w3c/commit/7ab08247d7ff537ca5bf8db3267ba6b85d1ae3b6))

# [1.3.0-alpha.7](https://github.com/TrustVC/w3c/compare/@trustvc/w3c-cli@1.3.0-alpha.6...@trustvc/w3c-cli@1.3.0-alpha.7) (2025-08-19)


### Bug Fixes

* expose version detection function ([#76](https://github.com/TrustVC/w3c/issues/76)) ([0cc8941](https://github.com/TrustVC/w3c/commit/0cc8941b9dc8a8a8cac800ad76ec64cfd7e29753))

# [1.3.0-alpha.6](https://github.com/TrustVC/w3c/compare/@trustvc/w3c-cli@1.3.0-alpha.5...@trustvc/w3c-cli@1.3.0-alpha.6) (2025-08-19)


### Features

* add support for w3c data model 2.0 with bitstring status list and ecdsa ([#75](https://github.com/TrustVC/w3c/issues/75)) ([7fe399e](https://github.com/TrustVC/w3c/commit/7fe399e7b58910912cce4920bab177732791538b))

# [1.3.0-alpha.5](https://github.com/TrustVC/w3c/compare/@trustvc/w3c-cli@1.3.0-alpha.4...@trustvc/w3c-cli@1.3.0-alpha.5) (2025-08-18)


### Bug Fixes

* rendermethod v2 ([#73](https://github.com/TrustVC/w3c/issues/73)) ([6e1a067](https://github.com/TrustVC/w3c/commit/6e1a06772e23278bd2de6beaaee5ca9adb5608aa))

# [1.3.0-alpha.4](https://github.com/TrustVC/w3c/compare/@trustvc/w3c-cli@1.3.0-alpha.3...@trustvc/w3c-cli@1.3.0-alpha.4) (2025-08-18)


### Bug Fixes

* rendermethod v2 ([#72](https://github.com/TrustVC/w3c/issues/72)) ([3fbc3a3](https://github.com/TrustVC/w3c/commit/3fbc3a332dfe33e56b5d077ff67d6b219e0a3d00))

# [1.3.0-alpha.3](https://github.com/TrustVC/w3c/compare/@trustvc/w3c-cli@1.3.0-alpha.2...@trustvc/w3c-cli@1.3.0-alpha.3) (2025-08-13)


### Features

* add support for w3c vc data model v2 ([#69](https://github.com/TrustVC/w3c/issues/69)) ([e4219ee](https://github.com/TrustVC/w3c/commit/e4219eefbc79fbc7ae7a495f1b989be9b4205e3c))

# [1.3.0-alpha.2](https://github.com/TrustVC/w3c/compare/@trustvc/w3c-cli@1.3.0-alpha.1...@trustvc/w3c-cli@1.3.0-alpha.2) (2025-08-07)


### Features

* add ecdsa-sd-2023 support ([#68](https://github.com/TrustVC/w3c/issues/68)) ([20d5e69](https://github.com/TrustVC/w3c/commit/20d5e69328f60c34dd210c12734604b59f457030))

# [1.3.0-alpha.1](https://github.com/TrustVC/w3c/compare/@trustvc/w3c-cli@1.2.7-alpha.3...@trustvc/w3c-cli@1.3.0-alpha.1) (2025-07-31)


### Features

* add bbs-2023 and ecdsa-sd-2023 key generation and did support ([#67](https://github.com/TrustVC/w3c/issues/67)) ([1ad1690](https://github.com/TrustVC/w3c/commit/1ad1690d39a003434283df429ebb7c176d4da71a))

## [1.2.18](https://github.com/TrustVC/w3c/compare/@trustvc/w3c-cli@1.2.17...@trustvc/w3c-cli@1.2.18) (2025-06-13)


### Bug Fixes

* expired and redacted doc checks ([#64](https://github.com/TrustVC/w3c/issues/64)) ([4d0a65a](https://github.com/TrustVC/w3c/commit/4d0a65ad467e07bc0f837368f6ff93f84abfb0a8))

## [1.2.17](https://github.com/TrustVC/w3c/compare/@trustvc/w3c-cli@1.2.16...@trustvc/w3c-cli@1.2.17) (2025-06-09)


### Bug Fixes

* cli derive stringify error ([#63](https://github.com/TrustVC/w3c/issues/63)) ([79b9f4f](https://github.com/TrustVC/w3c/commit/79b9f4fbafcc498b289c6313d72fb4d78e425203))

## [1.2.16](https://github.com/TrustVC/w3c/compare/@trustvc/w3c-cli@1.2.15...@trustvc/w3c-cli@1.2.16) (2025-05-30)


### Bug Fixes

* type errors ([#62](https://github.com/TrustVC/w3c/issues/62)) ([e4cf81f](https://github.com/TrustVC/w3c/commit/e4cf81f4cab187be464f92503bf0f0c39aef61d7))

## [1.2.15](https://github.com/TrustVC/w3c/compare/@trustvc/w3c-cli@1.2.14...@trustvc/w3c-cli@1.2.15) (2025-05-21)


### Bug Fixes

* coo context ([#59](https://github.com/TrustVC/w3c/issues/59)) ([b802c6f](https://github.com/TrustVC/w3c/commit/b802c6f8605387024d5a50d81e4edfa3da709ba7))

## [1.2.14](https://github.com/TrustVC/w3c/compare/@trustvc/w3c-cli@1.2.13...@trustvc/w3c-cli@1.2.14) (2025-05-20)


### Bug Fixes

* add template context ([#58](https://github.com/TrustVC/w3c/issues/58)) ([8a467b7](https://github.com/TrustVC/w3c/commit/8a467b738bebe935f00af525684e84bfd01fe6e9))

## [1.2.13](https://github.com/TrustVC/w3c/compare/@trustvc/w3c-cli@1.2.12...@trustvc/w3c-cli@1.2.13) (2025-05-16)


### Bug Fixes

* cli error messages ([#54](https://github.com/TrustVC/w3c/issues/54)) ([3825ce9](https://github.com/TrustVC/w3c/commit/3825ce9598479f52a75b2a8dbd38efc97730950a))

## [1.2.12](https://github.com/TrustVC/w3c/compare/@trustvc/w3c-cli@1.2.11...@trustvc/w3c-cli@1.2.12) (2025-05-14)


### Bug Fixes

* add qrcode context ([#55](https://github.com/TrustVC/w3c/issues/55)) ([19cd0df](https://github.com/TrustVC/w3c/commit/19cd0dfd20e848f744e1a5d6255557bde101d998))

## [1.2.11](https://github.com/TrustVC/w3c/compare/@trustvc/w3c-cli@1.2.10...@trustvc/w3c-cli@1.2.11) (2025-04-24)


### Bug Fixes

* update promissory note context ([#53](https://github.com/TrustVC/w3c/issues/53)) ([e032f45](https://github.com/TrustVC/w3c/commit/e032f4582da0983d2ca5648d7c55fac6bc97c1f6))

## [1.2.10](https://github.com/TrustVC/w3c/compare/@trustvc/w3c-cli@1.2.9...@trustvc/w3c-cli@1.2.10) (2025-04-23)


### Bug Fixes

* add promissory note context for w3c ([#52](https://github.com/TrustVC/w3c/issues/52)) ([54b866a](https://github.com/TrustVC/w3c/commit/54b866a66ff1db2466628fb32a1bb4820d71b7d1))

## [1.2.9](https://github.com/TrustVC/w3c/compare/@trustvc/w3c-cli@1.2.8...@trustvc/w3c-cli@1.2.9) (2025-04-22)


### Bug Fixes

* clean up resolver ([#51](https://github.com/TrustVC/w3c/issues/51)) ([936b5ec](https://github.com/TrustVC/w3c/commit/936b5ec23a372ae441bde9cd99701cbdd2408465))

## [1.2.8](https://github.com/TrustVC/w3c/compare/@trustvc/w3c-cli@1.2.7...@trustvc/w3c-cli@1.2.8) (2025-04-10)


### Bug Fixes

* add bls to context cache ([#50](https://github.com/TrustVC/w3c/issues/50)) ([a1988b0](https://github.com/TrustVC/w3c/commit/a1988b0ef2d82c95c3e285c93eedd61b050e4fd9))

## [1.2.7](https://github.com/TrustVC/w3c/compare/@trustvc/w3c-cli@1.2.6...@trustvc/w3c-cli@1.2.7) (2025-04-09)


### Bug Fixes

* update fetchCredentialStatusVC to use documentLoader and add cache for jws 2020 v1 ([#49](https://github.com/TrustVC/w3c/issues/49)) ([2c50901](https://github.com/TrustVC/w3c/commit/2c50901035aac696f75ef386bd8beca367f02db7))

## [1.2.6](https://github.com/TrustVC/w3c/compare/@trustvc/w3c-cli@1.2.5...@trustvc/w3c-cli@1.2.6) (2025-04-08)


Expand Down
8 changes: 8 additions & 0 deletions apps/w3c-cli/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# TrustVC W3C CLI

> **⚠️ DEPRECATED PACKAGE**
>
> This CLI package has been deprecated and is no longer maintained. The CLI was built using legacy BBS+ cryptosuites that have been superseded by modern W3C Data Integrity cryptosuites (ECDSA-SD-2023, BBS-2023).

---

## Legacy Documentation

`w3c-cli` is a command-line interface tool designed to demonstrate how to interact with Verifiable Credentials (VCs) and Decentralized Identifiers (DIDs) using functions from the following repositories:

- [`w3c-issuer`](https://github.com/TrustVC/w3c/tree/main/packages/w3c-issuer)
Expand Down
13 changes: 7 additions & 6 deletions apps/w3c-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "@trustvc/w3c-cli",
"version": "1.2.6",
"description": "CLI for TrustVC W3C",
"version": "1.3.0-alpha.12",
"description": "⚠️ DEPRECATED: CLI for TrustVC W3C - This package is no longer maintained.",
"deprecated": "This CLI package is deprecated due to incompatibility with modern cryptosuites.",
"main": "dist/main.js",
"types": "dist/main.d.ts",
"bin": {
Expand Down Expand Up @@ -34,10 +35,10 @@
},
"dependencies": {
"@inquirer/prompts": "^5.3.8",
"@trustvc/w3c-context": "^1.2.2",
"@trustvc/w3c-credential-status": "^1.2.2",
"@trustvc/w3c-vc": "^1.2.6",
"@trustvc/w3c-issuer": "^1.2.1",
"@trustvc/w3c-context": "^1.3.0-alpha.11",
"@trustvc/w3c-credential-status": "^1.3.0-alpha.11",
"@trustvc/w3c-vc": "^1.3.0-alpha.12",
"@trustvc/w3c-issuer": "^1.3.0-alpha.9",
"@types/yargs": "^17.0.32",
"chalk": "^4.1.2",
"inquirer": "^10.0.1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# DEPRECATED CLI PROJECT CONFIGURATION
# This file has been renamed from project.json to exclude the deprecated CLI from NX builds and tests
# The @trustvc/w3c-cli package is deprecated due to incompatibility with modern cryptosuites

{
"name": "@trustvc/w3c-cli",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
Expand Down
22 changes: 10 additions & 12 deletions apps/w3c-cli/src/commands/credentialStatus/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,24 @@ import {
} from '@trustvc/w3c-credential-status';
import { signCredential, SignedVerifiableCredential } from '@trustvc/w3c-vc';
import chalk from 'chalk';
import fs from 'fs';
import { CredentialStatusQuestionType } from '../../types';
import { readJsonFile, writeFile } from '../../utils';
import { isDirectoryValid, readJsonFile, writeFile } from '../../utils';

export const command = 'create';
export const describe = 'Create a new credential status';

export const handler = async () => {
const answers = await promptQuestions();
try {
const answers = await promptQuestions();

const signedCSVC = await createSignedCredentialStatus(answers);
const signedCSVC = await createSignedCredentialStatus(answers);

if (!signedCSVC) return;
if (!signedCSVC) return;

saveSignedCredentialStatus(signedCSVC, answers.outputPath);
saveSignedCredentialStatus(signedCSVC, answers.outputPath);
} catch (err: unknown) {
console.error(chalk.red(`Error: ${err instanceof Error ? err.message : err}`));
}
};

export const promptQuestions = async (): Promise<CredentialStatusQuestionType> => {
Expand Down Expand Up @@ -63,12 +66,7 @@ export const promptQuestions = async (): Promise<CredentialStatusQuestionType> =
required: true,
});

try {
fs.readdirSync(answers.outputPath, { encoding: 'utf-8' });
} catch (err) {
console.error(chalk.red(`Invalid file path provided: ${answers.outputPath}`));
return;
}
if (!isDirectoryValid(answers.outputPath)) throw new Error('Output path is not valid');

answers.length = await number({
message: 'Please enter the length of the status list (default 16KB - 131,072):',
Expand Down
39 changes: 15 additions & 24 deletions apps/w3c-cli/src/commands/credentialStatus/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,27 @@ import {
} from '@trustvc/w3c-credential-status';
import { signCredential } from '@trustvc/w3c-vc';
import chalk from 'chalk';
import fs from 'fs';
import { CredentialStatusQuestionType } from '../../types';
import { isDirectoryValid, readJsonFile } from '../../utils';
import { saveSignedCredentialStatus } from './create';
import { readJsonFile } from '../../utils';

export const command = 'update';
export const describe = 'Update a credential status';

export const handler = async () => {
const answers = await promptQuestions();
try {
const answers = await promptQuestions();

if (!answers) return;
if (!answers) return;

const signedCSVC = await createSignedCredentialStatus(answers);
const signedCSVC = await createSignedCredentialStatus(answers);

if (!signedCSVC) return;
if (!signedCSVC) return;

saveSignedCredentialStatus(signedCSVC, answers.outputPath);
saveSignedCredentialStatus(signedCSVC, answers.outputPath);
} catch (err: unknown) {
console.error(chalk.red(`Error: ${err instanceof Error ? err.message : err}`));
}
};

export const promptQuestions = async (): Promise<CredentialStatusQuestionType> => {
Expand All @@ -44,8 +47,7 @@ export const promptQuestions = async (): Promise<CredentialStatusQuestionType> =
try {
credentialStatusVC = await fetchCredentialStatusVC(answers.hostingUrl);
} catch (err: unknown) {
console.error(chalk.red(`Invalid URL provided: ${answers.hostingUrl}`));
return;
throw new Error(`Invalid URL provided: ${answers.hostingUrl}`);
}

answers.keyPairPath = await input({
Expand All @@ -55,25 +57,15 @@ export const promptQuestions = async (): Promise<CredentialStatusQuestionType> =
});

// Validate and read the key pair file
try {
answers.keypairData = readJsonFile(answers.keyPairPath, 'key pair');
} catch (err) {
console.error(chalk.red(`Invalid file path provided: ${answers.keyPairPath}`));
return;
}
answers.keypairData = readJsonFile(answers.keyPairPath, 'key pair');

answers.outputPath = await input({
message: 'Please specify a directory path to save the credential status file (optional):',
default: '.',
required: true,
});

try {
fs.readdirSync(answers.outputPath, { encoding: 'utf-8' });
} catch (err) {
console.error(chalk.red(`Invalid file path provided: ${answers.outputPath}`));
return;
}
if (!isDirectoryValid(answers.outputPath)) throw new Error('Output path is not valid');

answers.type = credentialStatusVC?.credentialSubject?.type;

Expand Down Expand Up @@ -158,9 +150,8 @@ export const createSignedCredentialStatus = async (answers: CredentialStatusQues
throw new Error('Invalid credential status type.');
} catch (err: unknown) {
if (!(err instanceof Error)) {
console.error(chalk.red('An error occurred while signing the credential status.'));
return;
throw err;
}
console.error(chalk.red(`Error signing credential status: ${err.message}`));
throw new Error(`Error signing credential status: ${err.message}`);
}
};
Loading