{"id":22705251,"url":"https://github.com/blockstack-packages/elliptic-curve-js","last_synced_at":"2025-04-13T10:55:28.910Z","repository":{"id":98050328,"uuid":"43962754","full_name":"blockstack-packages/elliptic-curve-js","owner":"blockstack-packages","description":"Library for operations on secp256k1 keys.","archived":false,"fork":false,"pushed_at":"2015-11-24T17:56:43.000Z","size":7,"stargazers_count":5,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T02:11:21.793Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/blockstack-packages.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}},"created_at":"2015-10-09T15:03:58.000Z","updated_at":"2022-02-11T02:49:54.000Z","dependencies_parsed_at":"2023-03-10T04:06:34.266Z","dependency_job_id":null,"html_url":"https://github.com/blockstack-packages/elliptic-curve-js","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/blockstack-packages%2Felliptic-curve-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blockstack-packages%2Felliptic-curve-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blockstack-packages%2Felliptic-curve-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blockstack-packages%2Felliptic-curve-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blockstack-packages","download_url":"https://codeload.github.com/blockstack-packages/elliptic-curve-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248703195,"owners_count":21148116,"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-12-10T09:09:49.531Z","updated_at":"2025-04-13T10:55:28.882Z","avatar_url":"https://github.com/blockstack-packages.png","language":"JavaScript","readme":"# Elliptic Curve JS\n\n[![CircleCI](https://img.shields.io/circleci/project/blockstack/elliptic-curve-js.svg)](https://circleci.com/gh/blockstack/elliptic-curve-js)\n[![npm](https://img.shields.io/npm/l/elliptic-curve.svg)](https://www.npmjs.com/package/elliptic-curve)\n[![npm](https://img.shields.io/npm/v/elliptic-curve.svg)](https://www.npmjs.com/package/elliptic-curve)\n[![npm](https://img.shields.io/npm/dm/elliptic-curve.svg)](https://www.npmjs.com/package/elliptic-curve)\n[![Slack](http://slack.blockstack.org/badge.svg)](http://slack.blockstack.org/)\n\n```\nnpm install elliptic-curve\n```\n\n### Getting Started\n\nImport the secp256k1 module:\n\n```\n\u003e var secp256k1 = require('elliptic-curve').secp256k1\n```\n\n### Private to Public Key Conversion\n\n```js\n\u003e var privateKey = '278a5de700e29faae8e40e366ec5012b5ec63d36ec77e8a2417154cc1d25383f'\n\u003e secp256k1.getPublicKey(privateKey)\n'03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479'\n```\n\n### Message Signing\n\n```js\n\u003e var message = \"Hello, world!\",\n\u003e secp256k1.signMessage(message, privateKey)\n'3046022100997b6210d959e67ad9cee01589d01daf0fe77ce0f002d040d769171c33504860022100e35a03d2354074d7e49d0499568e331be39af901a543d1731ea1ff8f423f21ab'\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblockstack-packages%2Felliptic-curve-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblockstack-packages%2Felliptic-curve-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblockstack-packages%2Felliptic-curve-js/lists"}