{"id":20596982,"url":"https://github.com/tradle/react-native-ecc","last_synced_at":"2025-10-17T13:10:18.433Z","repository":{"id":45380670,"uuid":"48649278","full_name":"tradle/react-native-ecc","owner":"tradle","description":"basic elliptic curve crypto for React Native","archived":false,"fork":false,"pushed_at":"2024-01-09T15:50:26.000Z","size":66,"stargazers_count":42,"open_issues_count":6,"forks_count":18,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-14T23:52:03.438Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","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/tradle.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-12-27T15:07:03.000Z","updated_at":"2025-03-20T19:30:37.000Z","dependencies_parsed_at":"2024-11-16T08:19:54.445Z","dependency_job_id":"5c821ab5-96d4-44bb-b3bc-13820740d69e","html_url":"https://github.com/tradle/react-native-ecc","commit_stats":{"total_commits":51,"total_committers":7,"mean_commits":7.285714285714286,"dds":"0.43137254901960786","last_synced_commit":"8f69503ad9c63d1628cdc15ab7f00b77d29fa5d6"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tradle%2Freact-native-ecc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tradle%2Freact-native-ecc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tradle%2Freact-native-ecc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tradle%2Freact-native-ecc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tradle","download_url":"https://codeload.github.com/tradle/react-native-ecc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248981260,"owners_count":21193144,"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-16T08:19:45.233Z","updated_at":"2025-10-17T13:10:18.350Z","avatar_url":"https://github.com/tradle.png","language":"Objective-C","funding_links":[],"categories":["Objective-C"],"sub_categories":[],"readme":"# react-native-ecc\n\nbasic elliptic curve crypto for React Native\n\n**this module is used by [Tradle](https://github.com/tradle/tim)**\n\n## Installation\n\nSee [Linking Libraries](http://facebook.github.io/react-native/docs/linking-libraries-ios.html)\n\n## Usage\n\n```js\nimport * as ec from 'react-native-ecc'\nimport { Buffer } from 'buffer'\n\n// if you want to be able to find your keys\n// next time, make sure to use the same service ID \nec.setServiceID('be.excellent.to.each.other')\n// optional\n// ec.setAccessGroup('dsadjsakd.com.app.awesome.my')\n\n// this library allows you to sign 32 byte hashes (e.g. sha256 hashes)\nconst msg = new Buffer('hey ho')\n// check ec.curves for supported curves\nconst curve = 'p256'\nec.keyPair(curve, function (err, key) {\n  // pub tested for compatibility with npm library \"elliptic\"\n  const pub = key.pub\n  console.log('pub', key.pub.toString('hex'))\n\n  // look up the key later like this:\n  // const key = ec.keyFromPublic(pub)\n\n  key.sign({\n    data: msg,\n    algorithm: 'sha256'\n  }, function (err, sig) {\n    // signatures tested for compatibility with npm library \"elliptic\"\n    console.log('sig', sig.toString('hex'))\n    key.verify({\n      algorithm: 'sha256',\n      data: msg,\n      sig: sig\n    }, function (err, verified) {\n      console.log('verified:', verified)\n    })\n  })\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftradle%2Freact-native-ecc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftradle%2Freact-native-ecc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftradle%2Freact-native-ecc/lists"}