{"id":19863021,"url":"https://github.com/energychain/tydids-core","last_synced_at":"2026-03-07T17:04:49.809Z","repository":{"id":250948315,"uuid":"835151747","full_name":"energychain/tydids-core","owner":"energychain","description":"A JavaScript library that empowers user defined Self-Sovereign Identity \u0026 Consent Management.","archived":false,"fork":false,"pushed_at":"2024-08-27T05:23:53.000Z","size":1480,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-01-15T07:40:36.637Z","etag":null,"topics":["did","eid","ethersjs","identity-management","javascript","javascript-framework","nodejs","ssi"],"latest_commit_sha":null,"homepage":"https://corrently.io/books/tydids","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/energychain.png","metadata":{"files":{"readme":"README.DataIdentity.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-07-29T09:08:20.000Z","updated_at":"2024-08-27T05:23:32.000Z","dependencies_parsed_at":"2024-08-05T15:01:11.447Z","dependency_job_id":"424351de-dcda-444b-a087-bad00e9cd301","html_url":"https://github.com/energychain/tydids-core","commit_stats":null,"previous_names":["energychain/tydids-validation","energychain/tydids-core"],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/energychain/tydids-core","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/energychain%2Ftydids-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/energychain%2Ftydids-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/energychain%2Ftydids-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/energychain%2Ftydids-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/energychain","download_url":"https://codeload.github.com/energychain/tydids-core/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/energychain%2Ftydids-core/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30222502,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T17:00:40.062Z","status":"ssl_error","status_checked_at":"2026-03-07T17:00:39.026Z","response_time":53,"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":["did","eid","ethersjs","identity-management","javascript","javascript-framework","nodejs","ssi"],"created_at":"2024-11-12T15:13:24.207Z","updated_at":"2026-03-07T17:04:49.781Z","avatar_url":"https://github.com/energychain.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DataIdentity Class\n\nThe `DataIdentity` class is a JavaScript implementation that provides a mechanism for creating, managing, and verifying digital identities on a blockchain. It leverages a secure element to generate cryptographic keys and sign data, ensuring the authenticity and integrity of the created identity.\n\n## Key Features\n\n- **Identity Generation**: Creates a new, random identity with a corresponding private key on a secure element.\n- **Payload Signing**: Signs arbitrary payloads with the private key associated with the identity.\n- **Identity Publication**: Publishes the identity on a blockchain using a smart contract.\n- **Identity Verification**: Verifies the publication status of an identity.\n- **Identity Revocation**: Revokes a previously published identity via a smart contract.\n- **Identity Disclosure**: Reveals the identity, private key, signature, and payload.\n\n## Use Cases\n\n- **Self-Sovereign Identity (SSI)**: The class can be used to create and manage decentralized identities that are independent of central authorities.\n- **Authentication**: The identity can serve as the foundation for an authentication system, for example, to access resources or services.\n- **Data Integrity**: The signature of the payload can be used to ensure the integrity of data.\n- **Non-repudiation**: The published identity can serve as proof of the creation of a specific data signature.\n\n## Methods\n\n- `constructor(payload)`: Initializes a new instance of the `DataIdentity` class with the given payload.\n- `#initSecureElement()`: Initializes the secure element and generates a new identity with a corresponding private key.\n- `async consensus()`: Signs the payload with the private key associated with the identity.\n- `async publish()`: Publishes the identity on a blockchain using a smart contract.\n- `async isPublishedAt()`: Checks if the identity is published on the blockchain.\n- `async revoke()`: Revokes a previously published identity via a smart contract.\n- `async isRevokedAt()`: Checks if the identity is revoked on the blockchain.\n- `async reveal()`: Returns the SSI and flushes the secure element.\n\n## Dependencies\n\n- [ethers.js](https://docs.ethers.io/v5/): A complete Ethereum wallet implementation and utilities in JavaScript.\n- `./Env.js`: A module that provides environment variables such as the RPC URL and smart contract addresses and ABIs.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenergychain%2Ftydids-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenergychain%2Ftydids-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenergychain%2Ftydids-core/lists"}