Skip to content

wip #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 84 commits into from
May 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
1545645
wip
jchartrand Jan 7, 2025
dfc8c27
add error handling
jchartrand Jan 7, 2025
584f9a9
update tests and readme
jchartrand Jan 8, 2025
c9b45b7
Update README.md
jchartrand Jan 8, 2025
9798dfb
wip: update readme and organize test fixtures
jchartrand Jan 8, 2025
e5bafe7
reorganize test fixtures
jchartrand Jan 9, 2025
1501002
add test vc combinations of revoked/expired
jchartrand Jan 9, 2025
a59c4fa
fix texts
jchartrand Jan 10, 2025
711d7b1
make knownRegistryList an argument of verifyCredential
jchartrand Jan 10, 2025
1f4c5f7
add credential to result
jchartrand Jan 10, 2025
0b47854
add deep equal test on positive result
jchartrand Jan 10, 2025
1ca9abf
add and reorganize tests
jchartrand Jan 10, 2025
9b3777e
switch testing to run after tsc compile
jchartrand Jan 12, 2025
9aff772
fix tests
jchartrand Jan 12, 2025
0bb989a
replace nullish coalescing with logical or for registry check
jchartrand Jan 13, 2025
d53e7f1
test for no proof
jchartrand Jan 13, 2025
f3135f9
fix invalid signature tests
jchartrand Jan 13, 2025
bf67187
add test for jsonld context
jchartrand Jan 13, 2025
588adbe
add test for missing vc context
jchartrand Jan 13, 2025
3ab3689
add bad id test
jchartrand Jan 13, 2025
a8d4866
add test for simultaneous expired and tampered
jchartrand Jan 14, 2025
46cc4b5
add tests for revoked with valid status
jchartrand Jan 14, 2025
664451b
fix linting
jchartrand Jan 14, 2025
de56d0b
remove types from .gitignore
jchartrand Jan 14, 2025
5272080
disable karma
jchartrand Jan 14, 2025
a0404fe
add eddsa verification
jchartrand Jan 15, 2025
02f7b59
fix lint errors
jchartrand Jan 15, 2025
de74064
update to beta vc package
jchartrand Jan 16, 2025
c6ea122
update result description and eddsa handling in README
jchartrand Jan 16, 2025
10aced7
add both signature suites to verify call
jchartrand Jan 17, 2025
ac99e17
add list of unloaded registries to result
jchartrand Jan 18, 2025
d9cceed
fix lint errors
jchartrand Jan 18, 2025
5a965b4
update registry client to new beta version
jchartrand Jan 18, 2025
dd9f0d5
add tests for bad registries and missing matches
jchartrand Jan 19, 2025
ee4f5ff
enable all tests
jchartrand Jan 19, 2025
8fde1f0
update tests
jchartrand Jan 19, 2025
37e4fbb
add handling for notFound status list
jchartrand Jan 19, 2025
39bfd3e
update unit tests
jchartrand Jan 19, 2025
763b342
add did:web fixture for testing
jchartrand Jan 20, 2025
2331e3a
add did:web tests
jchartrand Jan 21, 2025
243a8e7
add check for unresolved did:web
jchartrand Jan 21, 2025
1bbbd32
fix linting
jchartrand Jan 22, 2025
05def42
remove unnecessary did log entry; update README
jchartrand Jan 22, 2025
8a2de13
fix lint errors
jchartrand Jan 22, 2025
52a061b
update README
jchartrand Jan 22, 2025
f72814f
add presentation verification
jchartrand Jan 22, 2025
0ad410e
fix assertionMethod and challenge on verifyPresentation
jchartrand Jan 24, 2025
ff5d62c
extract verification result transformation
jchartrand Jan 24, 2025
a99fc09
transform vc verification responses in presentation
jchartrand Jan 27, 2025
69e30c5
reorganize tests
jchartrand Jan 27, 2025
05d5ac2
transform verification response
jchartrand Jan 28, 2025
dba2d31
fix lint errors
jchartrand Jan 28, 2025
ee809a8
add mixed VC presentation test
jchartrand Jan 28, 2025
8bce92c
add unsigned presentation tests
jchartrand Jan 28, 2025
dd1116c
remove isFatal flag from results
jchartrand Jan 28, 2025
d8435a1
update tests
jchartrand Jan 28, 2025
e70be8d
add test for bad challenge and presentation purpose
jchartrand Jan 28, 2025
10a625f
add coverage
jchartrand Jan 28, 2025
30e46b6
enable coverage badge
jchartrand Jan 28, 2025
6754a6d
fix test coverage
jchartrand Jan 28, 2025
4f0f983
update tests and README
jchartrand Jan 29, 2025
e455b38
update method signature in README
jchartrand Jan 29, 2025
c9122e2
update README examples and tests
jchartrand Jan 29, 2025
fa842ef
test for string valued issuer id
jchartrand Jan 29, 2025
1111a36
extract constants to files
jchartrand Jan 29, 2025
1e2360e
remove old status list check
jchartrand Jan 29, 2025
197845f
update error explanation in README
jchartrand Jan 29, 2025
e7ee7b7
add js extension to fix published package
jchartrand Feb 4, 2025
e8dba6e
update dependencies and version for publish
jchartrand Feb 6, 2025
a2116a7
add await to result transform call
jchartrand Feb 6, 2025
b875b05
update cryptosuite dependency and version for publish
jchartrand Feb 6, 2025
ea15abb
cleanup
jchartrand Feb 10, 2025
d24271f
rework build process
jchartrand Mar 11, 2025
7fa2946
ignore 1EdTechRevocationList
jchartrand Mar 12, 2025
3571936
add multikey did:web test and update vc lib
jchartrand Mar 12, 2025
c8a4fed
fix linting
jchartrand Mar 12, 2025
5ef89cf
remove cjs build
jchartrand Mar 13, 2025
4275275
update dependencies
jchartrand Mar 14, 2025
164c3ff
beta release
jchartrand Mar 14, 2025
119e91a
export verifyPresentation
jchartrand Mar 17, 2025
5f0872c
update beta version
jchartrand Mar 17, 2025
1a167e3
update exported paths
jchartrand Mar 17, 2025
aa5b0cc
update README
jchartrand May 1, 2025
5c91e4e
Merge branch 'main' into jc-implement
jchartrand May 1, 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
3 changes: 2 additions & 1 deletion .eslintrc.js → .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = {
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'prettier'],
parserOptions: {
project: './tsconfig.json'
project: './tsconfig.esm.json'
},
ignorePatterns: ['dist/', 'test'],
rules: {
Expand All @@ -14,6 +14,7 @@ module.exports = {
'@typescript-eslint/prefer-ts-expect-error': 'off',
'@typescript-eslint/return-await': 'off',
'@typescript-eslint/strict-boolean-expressions': 'off',
'@typescript-eslint/prefer-nullish-coalescing': 'off',
'no-empty-pattern': 'off'
}
}
46 changes: 25 additions & 21 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,39 +8,43 @@ jobs:
timeout-minutes: 10
strategy:
matrix:
node-version: [16.x]
node-version: [20.x]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- name: Run test with Node.js ${{ matrix.node-version }}
run: npm run test-node
run: npm run coveralls
- name: Coveralls GitHub Action
uses: coverallsapp/github-action@v2
with:
github-token: ${{ github.token }}
env:
CI: true
test-karma:
runs-on: ubuntu-latest
# needs: [lint]
timeout-minutes: 10
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- name: Run karma tests
run: npm run test-karma
# test-karma:
# runs-on: ubuntu-latest
## needs: [lint]
# timeout-minutes: 10
# strategy:
# matrix:
# node-version: [18.x]
# steps:
# - uses: actions/checkout@v2
# - name: Use Node.js ${{ matrix.node-version }}
# uses: actions/setup-node@v1
# with:
# node-version: ${{ matrix.node-version }}
# - run: npm install
# - name: Run karma tests
# run: npm run test-karma
lint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
node-version: [20.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ node_modules/
jspm_packages/

# TypeScript v1 declaration files
types/
#types/

# TypeScript cache
*.tsbuildinfo
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# isomorphic-lib-template Changelog

## 1.0.0 - TBD
## 0.0.1 - TBD

### Added

Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 Digital Credentials Consortium
Copyright (c) 2025 Digital Credentials Consortium

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading