{"id":34139692,"url":"https://github.com/nuts-foundation/trustdidweb-go","last_synced_at":"2026-03-12T01:01:28.483Z","repository":{"id":254456519,"uuid":"839348501","full_name":"nuts-foundation/trustdidweb-go","owner":"nuts-foundation","description":"Implementation of the Trust DID Web specification in Go","archived":false,"fork":false,"pushed_at":"2024-11-19T13:58:40.000Z","size":193,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-17T14:59:11.601Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/nuts-foundation.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":"2024-08-07T12:34:14.000Z","updated_at":"2024-11-18T17:22:44.000Z","dependencies_parsed_at":"2024-08-23T16:15:34.720Z","dependency_job_id":"0eec095f-70ee-4fa5-ac37-b3f70e8ee66c","html_url":"https://github.com/nuts-foundation/trustdidweb-go","commit_stats":null,"previous_names":["nuts-foundation/trustdidweb-go"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/nuts-foundation/trustdidweb-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuts-foundation%2Ftrustdidweb-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuts-foundation%2Ftrustdidweb-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuts-foundation%2Ftrustdidweb-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuts-foundation%2Ftrustdidweb-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nuts-foundation","download_url":"https://codeload.github.com/nuts-foundation/trustdidweb-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuts-foundation%2Ftrustdidweb-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30410356,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T00:40:14.898Z","status":"ssl_error","status_checked_at":"2026-03-12T00:40:08.439Z","response_time":84,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2025-12-15T02:26:40.520Z","updated_at":"2026-03-12T01:01:28.392Z","avatar_url":"https://github.com/nuts-foundation.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# trustdidweb-go\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/nuts-foundation/trustdidweb-go.svg)](https://pkg.go.dev/github.com/nuts-foundation/trustdidweb-go)\n\nThis repository contains a highly experimental and unstable implementation of the [Trust DID Web DID-Method specification](https://identity.foundation/trustdidweb).\n\nIts purpose now is to get some hands-on experience with the specification. If we find it useful, we might continue to develop it further into a more stable implementation.\n\nDo not use this in production!\n\n## Example usage\n\n```go\nsigner, _ := NewSigner(\"eddsa-jcs-2022\")\n// create a new log\nlog := Create(\"did:tdw:{SCID}:example.com}\", signer, nil)\n// get the DID Document\ndoc, _ := log.Document()\n\n// verify a log\nif err := log.Verify(); err != nil {\n    panic(err)\n}\n\n// update the document with a new service\ndoc[\"service\"] = []interface{}{\n    map[string]interface{}{\n        \"id\":              \"did:tdw:example.com:123456789abcdefghi#service-1\",\n        \"type\":            \"Service\",\n        \"serviceEndpoint\": \"https://example.com/service/1\",\n    },\n}\n\n// Update the log\nlog, _ = log.Update(LogParams{}, doc, signer)\n\n// verify the log\nif err := log.Verify(); err != nil {\n    panic(err)\n}\n\n// get the updated document:\ndoc, err := log.Document()\n\n// Marshal the log to a did-log-file which can be hosted on a n well-known endpoint\nlogFile, _ := log.MarshalText()\n\n// read a log from a did-log-file\nnewLog := new(DIDLog)\nerr := newLog.UnmarshalText(logfile)\nif err != nil {\n    panic(err)\n}\n```\n\n## TODO\n\nFollowing things are still missing (not in a particular order):\n\n- Support for DID portability\n- Better test coverage\n- Add a resolver\n- Generation of a `did:web` document from a log\n- Cleanup of the code\n- Support for witness signatures\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuts-foundation%2Ftrustdidweb-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnuts-foundation%2Ftrustdidweb-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuts-foundation%2Ftrustdidweb-go/lists"}