{"id":19571553,"url":"https://github.com/block-core/blockcore-identity","last_synced_at":"2025-04-27T03:32:25.557Z","repository":{"id":40704779,"uuid":"354608544","full_name":"block-core/blockcore-identity","owner":"block-core","description":"JavaScript Library for Decentralized Identity on Blockcore","archived":false,"fork":false,"pushed_at":"2023-07-20T00:09:12.000Z","size":486,"stargazers_count":3,"open_issues_count":5,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-10-29T10:44:56.038Z","etag":null,"topics":["web3","web5"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@blockcore/identity","language":"TypeScript","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/block-core.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2021-04-04T17:43:54.000Z","updated_at":"2023-08-21T20:35:17.000Z","dependencies_parsed_at":"2023-09-26T07:42:15.386Z","dependency_job_id":null,"html_url":"https://github.com/block-core/blockcore-identity","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/block-core%2Fblockcore-identity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/block-core%2Fblockcore-identity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/block-core%2Fblockcore-identity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/block-core%2Fblockcore-identity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/block-core","download_url":"https://codeload.github.com/block-core/blockcore-identity/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223028859,"owners_count":17076261,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["web3","web5"],"created_at":"2024-11-11T06:19:16.676Z","updated_at":"2024-11-11T06:19:18.625Z","avatar_url":"https://github.com/block-core.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Blockcore Identity Library (JS)\n\nLibrary that helps working with DIDs (decentralized identities) on Blockcore and the Blockcore DID Server (\"did:is\" DID Method).\n\n## Usage\n\n```sh\nnpm install @blockcore/identity\n```\n\nExample usage:\n\n```ts\nconst privateKey = Uint8Array.from([\n  224, 238, 59, 150, 73, 84, 228, 234, 104, 62, 83, 160, 122, 31, 108, 129, 74, 29, 104, 195, 192, 81, 158, 11, 167,\n  100, 217, 121, 110, 12, 178, 14,\n]);\n\nconst tool = new BlockcoreIdentityTools();\nconst signer = tool.getSigner(privateKey);\nconst publicKey = tool.getSchnorrPublicKeyFromPrivateKey(privateKey);\nconst verificationMethod = tool.getVerificationMethod(publicKey, 1);\n\nconst identity = new BlockcoreIdentity(verificationMethod);\nconst didDocument = identity.document({\n  service: [\n    {\n      id: '#blockexplorer',\n      type: 'BlockExplorer',\n      serviceEndpoint: 'https://explorer.blockcore.net',\n    },\n  ],\n});\n\nconst jws = await identity.sign(signer, { version: 0, didDocument: didDocument });\n```\n\n## Building and Testing\n\nThe library can be built using TypeScript Compiler, either directly or through npm:\n\n```\nnpm run build\n```\n\nTo generate and update the example documents, use this command:\n\n```\nnpm run examples\n```\n\nThis will update the example documents available at [test/examples](test/examples)\n\n## Examples created by the library\n\n[did-configuration.json](https://www.blockcore.net/.well-known/did-configuration.json)\n\n[did.json](https://www.blockcore.net/.well-known/did.json)\n\n(These documents are no longer generated by this library, but a prevoius version)\n\n## Resources\n\nhttps://w3c.github.io/did-core/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblock-core%2Fblockcore-identity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblock-core%2Fblockcore-identity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblock-core%2Fblockcore-identity/lists"}