{"id":26234940,"url":"https://github.com/mutokrm/did-dht","last_synced_at":"2026-02-12T15:06:33.794Z","repository":{"id":259838200,"uuid":"879119536","full_name":"mutokrm/did-dht","owner":"mutokrm","description":"DID-DHT implementation for Veramo","archived":false,"fork":false,"pushed_at":"2024-12-04T04:51:59.000Z","size":183,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-21T15:57:59.290Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/mutokrm.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}},"created_at":"2024-10-27T03:12:02.000Z","updated_at":"2024-12-05T02:33:12.000Z","dependencies_parsed_at":"2025-03-02T06:40:15.829Z","dependency_job_id":null,"html_url":"https://github.com/mutokrm/did-dht","commit_stats":null,"previous_names":["walnut07/did-dht","mutokrm/did-dht"],"tags_count":0,"template":false,"template_full_name":"decentralized-identity/veramo-plugin","purl":"pkg:github/mutokrm/did-dht","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mutokrm%2Fdid-dht","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mutokrm%2Fdid-dht/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mutokrm%2Fdid-dht/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mutokrm%2Fdid-dht/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mutokrm","download_url":"https://codeload.github.com/mutokrm/did-dht/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mutokrm%2Fdid-dht/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29369474,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T08:51:36.827Z","status":"ssl_error","status_checked_at":"2026-02-12T08:51:26.849Z","response_time":55,"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":[],"created_at":"2025-03-13T02:30:27.916Z","updated_at":"2026-02-12T15:06:33.775Z","avatar_url":"https://github.com/mutokrm.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DID-DHT\n\nThe DID-DHT plugin for [Veramo](https://veramo.io/) provides a decentralized identifier (DID) method that leverages the BitTorrent Distributed Hash Table (DHT) network. \nThe DID-DHT method uses the public key as an identifier in a way that is compliant with the DID Specification. The DID Document is encoded and stored in the DHT as DNS records.\n\nPlease note that this plugin is still under development and expected to undergo breaking changes.\n\n## Usage\nThe plugin can be integrated into a Veramo agent by configuring it with the appropriate DHT settings:\n\n```ts\nimport { createAgent } from '@veramo/core';\nimport { DIDManager, MemoryDIDStore } from '@veramo/did-manager';\nimport { KeyManager, MemoryKeyStore, MemoryPrivateKeyStore } from '@veramo/key-manager';\nimport { KeyManagementSystem } from '@veramo/kms-local';\nimport { DHTDIDProvider } from 'did-dht-plugin';\nimport DHT from 'bittorrent-dht';\n\nconst PROVIDER = 'did:dht:example-network';\nconst KMS = 'local';\n\nconst dhtInstance = new DHT();\nconst dhtDidProvider = new DHTDIDProvider({\n  defaultKms: KMS,\n  networks: [{ dhtInstance: dhtInstance, networkName: 'example-network' }],\n});\n\nconst agent = createAgent({\n  plugins: [\n    new KeyManager({\n      store: new MemoryKeyStore(),\n      kms: {\n        [KMS]: new KeyManagementSystem(new MemoryPrivateKeyStore()),\n      },\n    }),\n    new DIDManager({\n      providers: { [PROVIDER]: dhtDidProvider },\n      defaultProvider: PROVIDER,\n      store: new MemoryDIDStore(),\n    }),\n  ],\n});\n```\n\nCreating a DID identifier:\n```ts\nconst identifier = await agent.didManagerCreate({\n  provider: 'did:dht',\n  options: { networkName: 'example-network' },\n  kms: 'local'\n});\n\nconsole.log(identifier.did); // Outputs a DID like did:dht:\u003cz-base-32-public-key\u003e\n```\n\n## Spec compliance\nTODO\n\n## License\nThis plugin is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmutokrm%2Fdid-dht","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmutokrm%2Fdid-dht","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmutokrm%2Fdid-dht/lists"}