{"id":34527704,"url":"https://github.com/eclipse-xfsc/gx-vc-verifier-npm","last_synced_at":"2026-05-30T04:31:19.514Z","repository":{"id":289911286,"uuid":"970858075","full_name":"eclipse-xfsc/gx-vc-verifier-npm","owner":"eclipse-xfsc","description":"Nestjs Module for validating GX VCs","archived":false,"fork":false,"pushed_at":"2025-11-24T08:36:23.000Z","size":551,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":8,"default_branch":"main","last_synced_at":"2026-05-11T15:54:26.909Z","etag":null,"topics":["ed25519","gaia-x","nestjs","vc"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eclipse-xfsc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-22T16:34:40.000Z","updated_at":"2025-10-13T09:43:16.000Z","dependencies_parsed_at":"2025-04-25T18:44:19.637Z","dependency_job_id":null,"html_url":"https://github.com/eclipse-xfsc/gx-vc-verifier-npm","commit_stats":null,"previous_names":["eclipse-xfsc/gx-vc-verifier-npm"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/eclipse-xfsc/gx-vc-verifier-npm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclipse-xfsc%2Fgx-vc-verifier-npm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclipse-xfsc%2Fgx-vc-verifier-npm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclipse-xfsc%2Fgx-vc-verifier-npm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclipse-xfsc%2Fgx-vc-verifier-npm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eclipse-xfsc","download_url":"https://codeload.github.com/eclipse-xfsc/gx-vc-verifier-npm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclipse-xfsc%2Fgx-vc-verifier-npm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33680522,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-30T02:00:06.278Z","response_time":92,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ed25519","gaia-x","nestjs","vc"],"created_at":"2025-12-24T05:24:19.268Z","updated_at":"2026-05-30T04:31:19.509Z","avatar_url":"https://github.com/eclipse-xfsc.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Nestjs module that will validate Verifiable Credentials (https://www.w3.org/TR/vc-data-model/) signatures in GAIA-X namespace.\n\n  Currently supports only ed25519 signature verification\n\n## Open Items:\n- DIDTrustServiceAdapter needs to be implemented\n```\ngetParticipantPublicKey(participantDID: string): Promise\u003cDidDocument\u003cPublicKey\u003e\u003e // should adjust Trust Service Gateway response to DidDocument\u003cPublicKey\u003e\n\nisParticipantKeyDID(participantDID: string) // should return true when specified did is a participant did\n\ngetControllerDIDDocument(controller: string): Promise\u003cDidDocument\u003cController\u003e\u003e // should return host's/current's verifier DID document\n\nisControllerDID(controllerDID: string): Promise\u003cboolean\u003e // should return true when speficied controller's did\n\n```\n## Installation\n```\nnpm install gaiax-vc\n```\n## Prerequisites\nHost application should install peer dependencies\n`class-transformer, @nestjs/common` - this module ships with `@Decorator` style validators and decorator metadata will not be shared with host application otherwise.\nED25519 Signature dependencies. (updating these versions will not work)\n```\n\"@digitalbazaar/ed25519-signature-2018\": \"^2.1.0\",\n\n\"@digitalbazaar/ed25519-verification-key-2018\": \"^3.2.0\",\n\n\"@digitalcredentials/vc\": \"^4.1.1\"\n```\n## Usage\n```\n#Setup\nimport { DIDTrustServiceGateway,  VerifiableCredentialModule } from  'gaiax-vc';\n// module has dependency on DIDTrustServiceGateway interface that should be provider upon registration\n\nVerifiableCredentialModule.registerAsync({\n\timports: [AgreementModule],\n\tinject: [TrustServiceGateway],\n\tuseFactory: (didTrustServiceGateway: DIDTrustServiceGateway) =\u003e {\n\treturn { didTrustServiceGateway }\n\t}\n});\n\n#Exports - SignatureService\nimport { SignatureService } from  'gaiax-vc';\n\nconst { results, verified } = await  this.signatureService.verifyCredential(presentation.verifiableCredential[0]);\n\n#Exports - DocumentLoaderService for resolving GAIA-X participants' public key did documents\nimport { DocumentLoaderService  as  GaiaxDocumentLoaderService } from  'gaiax-vc';\nimport { extendContextLoader } from  'jsonld-signatures';\n\n@Injectable()\nexport  class  DocumentLoaderService {\nprotected  gaiaxDocumentLoader: (url:string)=\u003ePromise\u003cany\u003e\n\nconstructor(documentLoaderService: GaiaxDocumentLoaderService) {\n\tthis.gaiaxDocumentLoader = documentLoaderService.loader\n}\n\nget loader(): () =\u003e Promise\u003cany\u003e {\n\treturn  extendContextLoader(async (url: string) =\u003e {\n\t\t// you custom loader here\n\t\treturn  this.gaiaxDocumentLoader(url); // this will take care of GAIA-X participant did documents\n\t\t})\n\t}\n}\n\n\n```\n\n## Local development\n\nUse [yalc](https://github.com/wclr/yalc) instead of `npm link`\n\n```\ncd gaiax-vc\nnpm install yalc -g\n\n# cd to your app\nyalc add @gaia-x/gaia-x-vc\n\ncd gaiax-vc\n# make changes\nyalc publish --push","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feclipse-xfsc%2Fgx-vc-verifier-npm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feclipse-xfsc%2Fgx-vc-verifier-npm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feclipse-xfsc%2Fgx-vc-verifier-npm/lists"}