{"id":50311174,"url":"https://github.com/geometryxyz/msl-secp256k1","last_synced_at":"2026-06-14T12:01:11.834Z","repository":{"id":260028841,"uuid":"762401895","full_name":"geometryxyz/msl-secp256k1","owner":"geometryxyz","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-02T05:59:19.000Z","size":473,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-29T06:18:20.013Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/geometryxyz.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-23T17:49:23.000Z","updated_at":"2024-10-29T04:08:14.000Z","dependencies_parsed_at":"2024-10-29T06:28:33.745Z","dependency_job_id":null,"html_url":"https://github.com/geometryxyz/msl-secp256k1","commit_stats":null,"previous_names":["geometryxyz/msl-secp256k1"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/geometryxyz/msl-secp256k1","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geometryxyz%2Fmsl-secp256k1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geometryxyz%2Fmsl-secp256k1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geometryxyz%2Fmsl-secp256k1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geometryxyz%2Fmsl-secp256k1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geometryxyz","download_url":"https://codeload.github.com/geometryxyz/msl-secp256k1/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geometryxyz%2Fmsl-secp256k1/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34320273,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-14T02:00:07.365Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2026-05-28T21:01:26.189Z","updated_at":"2026-06-14T12:01:11.829Z","avatar_url":"https://github.com/geometryxyz.png","language":"Rust","funding_links":[],"categories":["Projects by GPU Technology"],"sub_categories":["Metal (Apple Silicon / iOS / macOS)"],"readme":"# `msl-secp256k1`\n\n## The secp256k1 curve\n\nThe base field modulus:\n\n```\nFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F\n```\n\nThe scalar field modulus:\n\n```\nFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141\n```\n\nThe cofactor is 1.\n\nThe curve formula: $y^2 = x^3 + ax + b$ where:\n\n$a = 0$\n\n$b = 7$\n\nIn projective coordinates, the point at infinity is `x: 0; y: 1; z: 0`.\n\nIn projective coordinates, the generator point is:\n\n```\nx: 55066263022277343669578718895168534326250603453777594175500187360389116729240\ny: 32670510020758816978083085130507043184471273380659243275938904335757337482424\nz: 1\n```\n\n## Algorithms included in this repository\n\nWe have implemented these algorithms in Metal:\n\n- Jacobian formulae:\n    - add-2007-bl\n    - dbl-2009-l\n\n\n## Notes\n\n### Representations for fast curve arithmetic\n\nsecp256k1 is a short Weierstrass curve.\n\nFrom the Explicit Formula Database, the following representations for fast\ncomputations are relevant to secp256k1:\n\n- [Projective coordinates](https://www.hyperelliptic.org/EFD/g1p/auto-shortw-projective.html)\n    - Offers strongly unified algos, as well as algos where Z1 and/or Z1 equal 1\n- [Jacobian coordinates with a4=0](https://www.hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html)\n    - Does not offer strongly unified algos, but offers algos where Z1 and/or Z2 equal 1\n- [XYZZ coordinates](https://www.hyperelliptic.org/EFD/g1p/auto-shortw-xyzz.html)\n    - Does not offer strongly unified algos, but offers algos where ZZ / ZZZ values equal 1\n- [XZ coordinates](https://www.hyperelliptic.org/EFD/g1p/auto-shortw-xz.html)\n    - Does not offer strongly unified algos, but offers algos where the Z\n      values equal 1, and most interestingly, does not require the\n      Y-coordinate.\n    - Need to read https://link.springer.com/content/pdf/10.1007/3-540-45664-3_20.pdf\n\nImplementation of Jacobian algos in Go: https://gist.github.com/fomichev/9f9f4a11cd93196067a6ac10ed1a5686\n\n\n### Precomputation\n\nBrickell's method and the sliding-window methods can speed up scalar\nmultiplication, given precomputed tables of points (see Gor98)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeometryxyz%2Fmsl-secp256k1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeometryxyz%2Fmsl-secp256k1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeometryxyz%2Fmsl-secp256k1/lists"}