{"id":18340347,"url":"https://github.com/dimensiondev/secp256k1-webcrypto","last_synced_at":"2025-04-06T05:32:30.303Z","repository":{"id":62464912,"uuid":"478904556","full_name":"DimensionDev/secp256k1-webcrypto","owner":"DimensionDev","description":"WebCrypto API with secp256k1 support","archived":false,"fork":false,"pushed_at":"2022-11-01T07:12:21.000Z","size":66,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"main","last_synced_at":"2024-10-16T09:32:59.202Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/DimensionDev.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}},"created_at":"2022-04-07T08:58:21.000Z","updated_at":"2024-03-14T13:40:18.000Z","dependencies_parsed_at":"2022-11-02T02:00:43.732Z","dependency_job_id":null,"html_url":"https://github.com/DimensionDev/secp256k1-webcrypto","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DimensionDev%2Fsecp256k1-webcrypto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DimensionDev%2Fsecp256k1-webcrypto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DimensionDev%2Fsecp256k1-webcrypto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DimensionDev%2Fsecp256k1-webcrypto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DimensionDev","download_url":"https://codeload.github.com/DimensionDev/secp256k1-webcrypto/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247440705,"owners_count":20939223,"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":[],"created_at":"2024-11-05T20:22:13.282Z","updated_at":"2025-04-06T05:32:29.862Z","avatar_url":"https://github.com/DimensionDev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# secp256k1-webcrypto\n\nWebCrypto API with secp256k1 support.\n\nThis is a light version of \u003chttps://github.com/PeculiarVentures/webcrypto-liner/\u003e that only contains secp256k1 support.\n\nThanks to `PeculiarVentures` for their webcrypto-liner!\n\n## Usage\n\n```js\nimport { crypto, Crypto, CryptoKey, SubtleCrypto, polyfill } from '@masknet/secp256k1-webcrypto'\ncrypto // a polyfilled Crypto instance\ncrypto.subtle // a polyfilled SubtleCrypto instance\npolyfill() // install the polyfill on the global object\n```\n\n## Requirement\n\n-   Node: Have [native WebCrypto](https://nodejs.org/api/webcrypto.html#web-crypto-api) support.\n-   Web: Have [native WebCrypro](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto) support.\n\nYou can create your own instance by\n\n```js\nimport { createCrypto } from '@masknet/secp256k1-webcrypto/core'\n\nexport const [crypto, { Crypto, CryptoKey, SubtleCrypto }, polyfill] = createCrypto(\n    globalThis.crypto,\n    globalThis.CryptoKey,\n    DOMException,\n)\n```\n\n## Unsupported\n\n-   spki format import/export\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimensiondev%2Fsecp256k1-webcrypto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimensiondev%2Fsecp256k1-webcrypto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimensiondev%2Fsecp256k1-webcrypto/lists"}