{"id":15321209,"url":"https://github.com/reznik99/go-dcc","last_synced_at":"2026-01-20T02:47:09.800Z","repository":{"id":45566954,"uuid":"431441782","full_name":"reznik99/go-dcc","owner":"reznik99","description":"EU Digital Covid Certificate utilities in Go [Create, Validate and Parse Green-Pass/EU-DCC]","archived":false,"fork":false,"pushed_at":"2024-02-23T10:59:28.000Z","size":96,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T12:50:25.948Z","etag":null,"topics":["covid-19","dcc","greenpass","vaccine-passports"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/reznik99.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2021-11-24T10:32:43.000Z","updated_at":"2021-12-23T10:24:50.000Z","dependencies_parsed_at":"2024-06-20T00:03:58.791Z","dependency_job_id":null,"html_url":"https://github.com/reznik99/go-dcc","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/reznik99/go-dcc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reznik99%2Fgo-dcc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reznik99%2Fgo-dcc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reznik99%2Fgo-dcc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reznik99%2Fgo-dcc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reznik99","download_url":"https://codeload.github.com/reznik99/go-dcc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reznik99%2Fgo-dcc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28594958,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T02:08:49.799Z","status":"ssl_error","status_checked_at":"2026-01-20T02:08:44.148Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["covid-19","dcc","greenpass","vaccine-passports"],"created_at":"2024-10-01T09:10:10.447Z","updated_at":"2026-01-20T02:47:09.784Z","avatar_url":"https://github.com/reznik99.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv id=\"top\"\u003e\u003c/div\u003e\n\n\n[![Contributors][contributors-shield]][contributors-url]\n[![Forks][forks-shield]][forks-url]\n[![Stargazers][stars-shield]][stars-url]\n[![Issues][issues-shield]][issues-url]\n[![MIT License][license-shield]][license-url]\n[![LinkedIn][linkedin-shield]][linkedin-url]\n\n\n\u003c!-- PROJECT LOGO --\u003e\n\u003cbr /\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://github.com/reznik99/go-dcc\"\u003e\n    \u003cimg src=\"https://cdn.icon-icons.com/icons2/2699/PNG/512/golang_logo_icon_171073.png\" alt=\"Logo\" width=\"80\" height=\"80\"\u003e\n  \u003c/a\u003e\n\n  \u003ch3 align=\"center\"\u003eGO-DCC\u003c/h3\u003e\n\n  \u003cp align=\"center\"\u003e\n    A simple library to View, Generate and Verify EU-DCC / Vaccine Passes \n    \u003cbr /\u003e\n    \u003ca href=\"https://pkg.go.dev/github.com/reznik99/go-dcc\"\u003e\u003cstrong\u003eExplore the docs »\u003c/strong\u003e\u003c/a\u003e\n    \u003cbr /\u003e\n    \u003cbr /\u003e\n    \u003ca href=\"https://github.com/reznik99/go-dcc/issues\"\u003eReport Bug\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/reznik99/go-dcc/issues\"\u003eRequest Feature\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\n\n## About This Package\n\n[![Product Name Screen Shot][screenshot]](https://example.com)\n\nThis package offers simple API calls to Decode, Encode and Verify Vaccine Passes.\n\u003cbr\u003e\nAPIs are subject to changes as improvements are made.\n\n\u003c!-- GETTING STARTED --\u003e\n## Getting Started\n### Prerequisites\n\n_Go get the module to import it into your project_\n\n1. Download package\n    ```sh\n    go get -u github.com/reznik99/go-dcc\n    ```\n\n### Usage\n\n_Below is some examples of how you can use this package, without explicit error handling for simplicity's sake_\n\n1. To generate a Vaccine Pass using data from `data.json`\n   ```go\n   import (\n       \"github.com/reznik99/go-dcc\"\n   )\n\n   func main() {\n        // Base64 of first 8 bytes in Signer Certificate\n        kid := \"dy8HnMQYOrE=\"\n\n        // Generate or load Signer Key\n        privKey, _ := ecdsa.GenerateKey(elliptic.P256(), rand.Reader)\n\n        // Generate/Sign Vaccine Pass and save as QR code\n        dcc.GenerateQR(privKey, kid, \"/path/to/data.json\", \"/path/to/new-pass.png\")\n\n        // Generate/Sign Vaccine Pass Raw string \"HC1:...\"\n        dcc.Generate(privKey, kid, \"/path/to/data.json\")\n   }\n   ```\n2. To validate/verify a Vaccine Pass\n   ```go\n   import (\n       \"github.com/reznik99/go-dcc\"\n   )\n\n   func main() {\n        // Parse Raw Vaccine Pass\n        _, rawMsg, _ := dcc.Parse(\"/path/to/mypass.txt\")\n        // Parse QR Code Vaccine Pass\n        _, rawMsg, _ := dcc.ParseQR(\"/path/to/mypass.png\")\n\n        // Verify Vaccine Pass signature. note: currently slow! This will fetch the PEM Signer Certificates and KIDs\n        valid, _ := dcc.Verify(rawMsg)\n        \n        fmt.Printf(\"Vaccine Pass Valid: %t\\n\", valid)\n   }\n   ```\n\n3. To decode/read a Vaccine Pass\n   ```go\n    import (\n        \"fmt\"\n        \"github.com/reznik99/go-dcc\"\n        \"github.com/ethereum/go-ethereum/common/hexutil\"\n    )\n\n    func main() {\n        // Parse Raw Vaccine Pass\n        payload, _, _ := dcc.Parse(\"/path/to/mypass.txt\")\n        // Parse QR Code Vaccine Pass\n        payload, _, _ := dcc.ParseQR(\"/path/to/mypass.png\")\n\n        // Print contents to STDOUT\n        prettyDCC, _ := json.MarshalIndent(payload, \"\", \"\t\")\n        fmt.Printf(\"Headers:   %v\\n\", rawMsg.Headers)\n        fmt.Printf(\"Payload:   %s\\n\", prettyDCC)\n        fmt.Printf(\"Signature: %s\\n\", hexutil.Encode(rawMsg.Signature))\n    }\n   ```\n\n_Example JSON data file_\n```js\n    {\n        \"name\": \"JOHN\",\n        \"surname\": \"DOE\",\n        \"dob\": \"1996-06-06\",\n        \"issuerCountry\": \"NZ\",\n        \"issuer\": \"Ministry of Health, NZ\",\n        \"vaccinationDate\": \"2021-10-21\",\n        \"doses\": 2\n    }\n```\n\n\n_For more examples, please refer to the [Documentation](https://pkg.go.dev/github.com/reznik99/go-dcc)_\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\n\n\u003c!-- ROADMAP --\u003e\n## Roadmap\n\n- [x] Decode/Read EU DCC certs\n- [x] Encode/Generate EU DCC certs (Valid schema but not valid signature obviously)\n- [x] Verify/Validate EU DCC certs (This is not working quite yet)\n- [ ] Improve KID and Signer Certificate fetching logic or allow user to specify values for performance.\n\nSee the [open issues](https://github.com/reznik99/go-dcc/issues) for a full list of proposed features (and known issues).\n\u003cbr\u003e\n\u003cbr\u003e\n\n\n\n\u003c!-- LICENSE --\u003e\n## License\n\nDistributed under the MIT License. See `LICENSE` for more information.\n\n\n\n\u003c!-- CONTACT --\u003e\n## Contact\n\nFrancesco Gorini - goras.francesco@gmail.com - https://francescogorini.com\n\nProject Link: [https://github.com/reznik99/go-dcc/](https://github.com/reznik99/go-dcc/)\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\n\n\n\u003c!-- MARKDOWN LINKS \u0026 IMAGES --\u003e\n\u003c!-- https://www.markdownguide.org/basic-syntax/#reference-style-links --\u003e\n[contributors-shield]: https://img.shields.io/github/contributors/reznik99/go-dcc.svg?style=for-the-badge\n[contributors-url]: https://github.com/reznik99/go-dcc/graphs/contributors\n[forks-shield]: https://img.shields.io/github/forks/reznik99/go-dcc.svg?style=for-the-badge\n[forks-url]: https://github.com/reznik99/go-dcc/network/members\n[stars-shield]: https://img.shields.io/github/stars/reznik99/go-dcc.svg?style=for-the-badge\n[stars-url]: https://github.com/reznik99/go-dcc/stargazers\n[issues-shield]: https://img.shields.io/github/issues/reznik99/go-dcc?style=for-the-badge\n[issues-url]: https://github.com/reznik99/go-dcc/issues\n[license-shield]: https://img.shields.io/github/license/reznik99/go-dcc?style=for-the-badge\n[license-url]: https://github.com/reznik99/go-dcc/blob/master/LICENSE\n[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=for-the-badge\u0026logo=linkedin\u0026colorB=555\n[linkedin-url]: https://www.linkedin.com/in/francesco-gorini-b334861a6/\n[screenshot]: res/read-me-banner.jpg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freznik99%2Fgo-dcc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freznik99%2Fgo-dcc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freznik99%2Fgo-dcc/lists"}