-
Notifications
You must be signed in to change notification settings - Fork 20
feat: W3C revocation support #262
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
Open
tipusinghaw
wants to merge
44
commits into
develop
Choose a base branch
from
feat/w3c-revocation
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 16 commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
b41855d
Resolve linting issues
pranalidhanavade 4201556
chore: Update Dockerfile (#254)
KambleSahil3 884264b
fix: resolved prettier errors
pranalidhanavade 99fb113
chore: Update Dockerfile (#256)
KambleSahil3 72bbc53
fix: resolved prettier errors in compass.yml file
pranalidhanavade 0db0c91
feat: push docker image (#257)
KambleSahil3 9383784
feat/push-docker-image (#258)
KambleSahil3 08a04a4
feat:w3c-revocation
tipusinghaw 628296c
refactor: removed revocation code
tipusinghaw ee9b63d
refactore: removed constant and enum
tipusinghaw d54d66e
Merge pull request #261 from credebl/refactor/w3c-revocation-v1
tipusinghaw ea58a19
w3c revocation changes
tipusinghaw 2d26e62
refactor: get index method
tipusinghaw b518e46
refactor: solved sonar cloud issue
tipusinghaw d3dfc46
refactor: changes randomness logic to get unused index
tipusinghaw d640319
fix: revocation issue
tipusinghaw 0af677f
refactor: resolved comments
tipusinghaw 647fb60
refactor: add validation code in helper file
tipusinghaw 46e3396
refactor: resolved comments
tipusinghaw f6491e3
refactor: removed logs
tipusinghaw f47325c
refactor: resolved comments
tipusinghaw 217e738
chore:updated patch version
tipusinghaw 8cd194e
added logs to debug the issue
tipusinghaw 8e6b463
chore: Update Dockerfile (#254)
KambleSahil3 91137e7
chore: Update Dockerfile (#256)
KambleSahil3 57737ff
feat: push docker image (#257)
KambleSahil3 9fca65e
feat/push-docker-image (#258)
KambleSahil3 e03573d
feat:w3c-revocation
tipusinghaw 7b978c9
refactor: removed revocation code
tipusinghaw 30e6667
refactore: removed constant and enum
tipusinghaw 5556b5b
chore: Update Dockerfile (#256) (#266)
bhavanakarwade f7bfa98
chore: remove unwanted package (#268)
GHkrishna 560f746
refactor: updated validation for create-bslc
tipusinghaw 97328dc
bump: v0.5.3 to v0.5.15
tipusinghaw 7728d0e
bump: updated CI file
tipusinghaw 2d1e087
bump: updated ubuntu version and project name
tipusinghaw 9861b1b
refactor: formatted code and updated eslint config
tipusinghaw c9c508c
refactor: updated tsconfig and CI file
tipusinghaw 7a509f0
fix: prettier formatting issue
tipusinghaw f6c31c9
fix: logger issue
tipusinghaw 2c061cb
fixed: linting issues
tipusinghaw e814332
Merge branch 'bump/credo-0.5.3-to-0.5.13' of https://github.com/crede…
tipusinghaw 6a68180
feat: patch and tgz issue
tipusinghaw 7255fee
fix: linting issue
tipusinghaw File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| name: Continous Delivery | ||
|
|
||
| on: | ||
| push: | ||
| tags: | ||
| - 'v*' | ||
|
|
||
| env: | ||
| REGISTRY: ghcr.io | ||
| SERVICE: credo-controller | ||
|
|
||
| jobs: | ||
| build-and-push: | ||
| name: Push Docker image to GitHub | ||
| runs-on: ubuntu-latest | ||
|
|
||
| permissions: | ||
| contents: read | ||
| packages: write | ||
|
|
||
| steps: | ||
| - name: Checkout Repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Extract Git Tag | ||
| id: get_tag | ||
| run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV | ||
|
|
||
| - name: Log in to GitHub Container Registry | ||
| uses: docker/login-action@v3 | ||
| with: | ||
| registry: ghcr.io | ||
| username: ${{ github.actor }} | ||
| password: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: Build and Push Docker Image ${{ env.SERVICE }} | ||
| uses: docker/build-push-action@v6 | ||
| with: | ||
| context: . | ||
| file: Dockerfile | ||
| push: true | ||
| tags: | | ||
| ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.SERVICE }}:${{ env.TAG }} | ||
| ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.SERVICE }}:latest | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,4 +19,4 @@ labels: | |
| - language:typescript | ||
| - self-sovereign-identity | ||
| - source:github | ||
| customFields: null | ||
| customFields: null | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| { | ||
| "port": 4001, | ||
| "schemaFileServerURL": "https://schema.credebl.id/schemas/" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,4 +9,4 @@ const config: Config.InitialOptions = { | |
| testTimeout: 120000, | ||
| } | ||
|
|
||
| export default config | ||
| export default config | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
patches/@credo-ts+core+0.5.3+007+sign-bitstring-credentials.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| diff --git a/node_modules/@credo-ts/core/build/modules/vc/W3cCredentialServiceOptions.d.ts b/node_modules/@credo-ts/core/build/modules/vc/W3cCredentialServiceOptions.d.ts | ||
| index 43f5d7b..6e5cbbc 100644 | ||
| --- a/node_modules/@credo-ts/core/build/modules/vc/W3cCredentialServiceOptions.d.ts | ||
| +++ b/node_modules/@credo-ts/core/build/modules/vc/W3cCredentialServiceOptions.d.ts | ||
| @@ -7,6 +7,7 @@ import type { W3cCredential } from './models/credential/W3cCredential'; | ||
| import type { W3cPresentation } from './models/presentation/W3cPresentation'; | ||
| import type { JwaSignatureAlgorithm } from '../../crypto/jose/jwa'; | ||
| import type { SingleOrArray } from '../../utils/type'; | ||
| +import { Credential } from '@hyperledger/anoncreds-nodejs'; | ||
| export type W3cSignCredentialOptions<Format extends ClaimFormat.JwtVc | ClaimFormat.LdpVc | undefined = undefined> = Format extends ClaimFormat.JwtVc ? W3cJwtSignCredentialOptions : Format extends ClaimFormat.LdpVc ? W3cJsonLdSignCredentialOptions : W3cJwtSignCredentialOptions | W3cJsonLdSignCredentialOptions; | ||
| export type W3cVerifyCredentialOptions<Format extends ClaimFormat.JwtVc | ClaimFormat.LdpVc | undefined = undefined> = Format extends ClaimFormat.JwtVc ? W3cJwtVerifyCredentialOptions : Format extends ClaimFormat.LdpVc ? W3cJsonLdVerifyCredentialOptions : W3cJwtVerifyCredentialOptions | W3cJsonLdVerifyCredentialOptions; | ||
| export type W3cSignPresentationOptions<Format extends ClaimFormat.JwtVp | ClaimFormat.LdpVp | undefined = undefined> = Format extends ClaimFormat.JwtVp ? W3cJwtSignPresentationOptions : Format extends ClaimFormat.LdpVp ? W3cJsonLdSignPresentationOptions : W3cJwtSignPresentationOptions | W3cJsonLdSignPresentationOptions; | ||
| @@ -21,7 +22,7 @@ interface W3cSignCredentialOptionsBase { | ||
| /** | ||
| * The credential to be signed. | ||
| */ | ||
| - credential: W3cCredential; | ||
| + credential: any; | ||
| /** | ||
| * URI of the verificationMethod to be used for signing the credential. | ||
| * | ||
16 changes: 16 additions & 0 deletions
16
patches/@digitalcredentials+jsonld+6.0.0+001+sign-bitstring-credentials.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| diff --git a/node_modules/@digitalcredentials/jsonld/lib/context.js b/node_modules/@digitalcredentials/jsonld/lib/context.js | ||
| index 5f0de78..1315061 100644 | ||
| --- a/node_modules/@digitalcredentials/jsonld/lib/context.js | ||
| +++ b/node_modules/@digitalcredentials/jsonld/lib/context.js | ||
| @@ -920,6 +920,11 @@ api.createTermDefinition = ({ | ||
| if(!_deepCompare(previousMapping, mapping)) { | ||
| const protectedMode = (options && options.protectedMode) || 'error'; | ||
| if(protectedMode === 'error') { | ||
| + if (term === 'VerifiableCredential' || term === 'VerifiablePresentation') { | ||
| + console.warn("Term is 'VerifiableCredential'. Logging a warning instead of throwing an error."); | ||
| + console.warn('WARNING: protected term redefinition', { term }); | ||
| + return; | ||
| + } | ||
| throw new JsonLdError( | ||
| `Invalid JSON-LD syntax; tried to redefine "${term}" which is a ` + | ||
| 'protected term.', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,66 +1,59 @@ | ||
| { | ||
| "family": "${FAMILY}", | ||
| "containerDefinitions": [ | ||
| "family": "${FAMILY}", | ||
| "containerDefinitions": [ | ||
| { | ||
| "name": "Platform-admin", | ||
| "image": "%REPOSITORY_URI%:CREDO_v_%BUILD_NUMBER%", | ||
| "cpu": 154, | ||
| "memory": 307, | ||
| "portMappings": [ | ||
| { | ||
| "name": "Platform-admin", | ||
| "image": "%REPOSITORY_URI%:CREDO_v_%BUILD_NUMBER%", | ||
| "cpu": 154, | ||
| "memory": 307, | ||
| "portMappings": [ | ||
| { | ||
| "containerPort": 8001, | ||
| "hostPort": 8001, | ||
| "protocol": "tcp" | ||
| }, | ||
| { | ||
| "containerPort": 9001, | ||
| "hostPort": 9001, | ||
| "protocol": "tcp" | ||
| } | ||
| ], | ||
| "essential": true, | ||
| "command": [ | ||
| "--auto-accept-connections", | ||
| "--config", | ||
| "/config.json" | ||
| ], | ||
| "environment": [ | ||
| { | ||
| "name": "AFJ_REST_LOG_LEVEL", | ||
| "value": "1" | ||
| } | ||
| ], | ||
| "environmentFiles": [ | ||
| { | ||
| "value": "${S3_ARN}", | ||
| "type": "s3" | ||
| } | ||
| ], | ||
| "mountPoints": [ | ||
| { | ||
| "sourceVolume": "config", | ||
| "containerPath": "/config.json", | ||
| "readOnly": true | ||
| } | ||
| ], | ||
| "volumesFrom": [], | ||
| "ulimits": [] | ||
| "containerPort": 8001, | ||
| "hostPort": 8001, | ||
| "protocol": "tcp" | ||
| }, | ||
| { | ||
| "containerPort": 9001, | ||
| "hostPort": 9001, | ||
| "protocol": "tcp" | ||
| } | ||
| ], | ||
| "essential": true, | ||
| "command": ["--auto-accept-connections", "--config", "/config.json"], | ||
| "environment": [ | ||
| { | ||
| "name": "AFJ_REST_LOG_LEVEL", | ||
| "value": "1" | ||
| } | ||
| ], | ||
| "environmentFiles": [ | ||
| { | ||
| "value": "${S3_ARN}", | ||
| "type": "s3" | ||
| } | ||
|
|
||
| ], | ||
| "executionRoleArn": "arn:aws:iam::${ACCOUNT_ID}:role/ecsTaskExecutionRole", | ||
| "placementConstraints": [], | ||
| "requiresCompatibilities": [ | ||
| "EC2" | ||
| ], | ||
| "cpu": "154", | ||
| "memory": "307", | ||
| "volumes": [ | ||
| ], | ||
| "mountPoints": [ | ||
| { | ||
| "name": "config", | ||
| "host": { | ||
| "sourcePath": "${SourcePath}" | ||
| } | ||
| "sourceVolume": "config", | ||
| "containerPath": "/config.json", | ||
| "readOnly": true | ||
| } | ||
| ] | ||
| } | ||
| ], | ||
| "volumesFrom": [], | ||
| "ulimits": [] | ||
| } | ||
| ], | ||
| "executionRoleArn": "arn:aws:iam::${ACCOUNT_ID}:role/ecsTaskExecutionRole", | ||
| "placementConstraints": [], | ||
| "requiresCompatibilities": ["EC2"], | ||
| "cpu": "154", | ||
| "memory": "307", | ||
| "volumes": [ | ||
| { | ||
| "name": "config", | ||
| "host": { | ||
| "sourcePath": "${SourcePath}" | ||
| } | ||
| } | ||
| ] | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.