{"id":37868368,"url":"https://github.com/fishfugu/elliptic","last_synced_at":"2026-01-16T16:38:55.268Z","repository":{"id":245515577,"uuid":"818239937","full_name":"fishfugu/elliptic","owner":"fishfugu","description":"Elliptic Curve Toolbox: Tools for finite field arithmetic and elliptic curve analysis. Includes modules for large integer operations, visualisation, and finite field calculations. Hopefully useful for researchers and developers in cryptography.","archived":false,"fork":false,"pushed_at":"2025-06-07T11:38:54.000Z","size":44236,"stargazers_count":4,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-07T12:28:38.097Z","etag":null,"topics":["cryptography","elliptic-curve-arithmetic","elliptic-curve-cryptography","elliptic-curves","literature-review","mathematical-programming","mathematics","maths"],"latest_commit_sha":null,"homepage":"https://www.creativearts.com.au/maths/une/sci395","language":"Go","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/fishfugu.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,"zenodo":null}},"created_at":"2024-06-21T12:00:28.000Z","updated_at":"2025-01-29T22:10:58.000Z","dependencies_parsed_at":"2025-06-07T12:33:53.096Z","dependency_job_id":null,"html_url":"https://github.com/fishfugu/elliptic","commit_stats":null,"previous_names":["fishfugu/elliptic"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fishfugu/elliptic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fishfugu%2Felliptic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fishfugu%2Felliptic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fishfugu%2Felliptic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fishfugu%2Felliptic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fishfugu","download_url":"https://codeload.github.com/fishfugu/elliptic/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fishfugu%2Felliptic/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28480027,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cryptography","elliptic-curve-arithmetic","elliptic-curve-cryptography","elliptic-curves","literature-review","mathematical-programming","mathematics","maths"],"created_at":"2026-01-16T16:38:54.838Z","updated_at":"2026-01-16T16:38:55.249Z","avatar_url":"https://github.com/fishfugu.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Elliptic Curve Toolbox\n\nTools for analysis / manipulation of elliptic curves. Provides utilities for experimentation, and educational exploration of elliptic curve theory.\n\nAll partly inspired by my work over here: [Recent course output - SCI395, with UNE](https://www.creativearts.com.au/maths/une/sci395). I'll be updating this site and this repo in tandem, as I go, and as I get to different parts of the investigation / analysis.\n\n## Current Features\n\n- **Big Integer Arithmetic**: Perform arithmetic operations on arbitrarily large integers with precise results.\n\n- **Finite Field Calculation**: Prime number finite field operations. Calculating points on an elliptic curve (in the Weierstrass form) defined on a prime integer finite field. Visualise prime integer finite field points, on an elliptic curve.\n\n## Getting Started\n\n### Prerequisites\n\n- Go version 1.21 or higher\n\nMay need this:\n\n```\nxcode-select --install\n```\n\n### Installation\n\nClone the repository:\n\n```bash\ngit clone https://github.com/fishfugu/elliptic.git\ncd elliptic\n```\n\n#### See make options\n\n```\nmake\n```\n\n#### Build the project\n\n```\nmake build-all\n```\n\n#### Recommended way to run each binary\n\n**_ bigmath _**\n(just for basic teating really)\n\n```\nmake run-bigmath\n```\n\n**_ finitefield _**\n(just for basic testing really)\n\n```\nmake run-finitefield\n```\n\n**_ ecvis _**\n\n```\nmake run-ecvis\n```\n\n**_ ellipticcurvecli _**\n\n```\nmake run-cli\n```\n\nfor \"with text visualise\" option:\n\n```\nmake build-cli\n./bin/ellipticcurvecli -visualise\n```\n\n#### Run tests\n\n```\nmake test\n```\n\n#### Take it all for a test drive\n\nAKA see example output and kick the tyres:\n\n```\nmake test-drive\n```\n\n## Text Visualisation Example\n\n```\n2D Plane Visualisation with Cartesian Axes, Reflection Line, and Scale:\n|                                                                                        43\n|                                                   *\n|                                             *\n|         *\n|           * *                                             *                            39\n|\n|     *\n| *\n|                                                                                        35\n|                                                       *\n|                                                             *\n|                       *\n|   *           *                                                 *                      31\n|                                                                           *\n|\n|\n|                                                                                        27\n|                                           *\n|                     *     *       *\n|                                                                             *\n|                                                                               *        23\n| . . . . . . . . . . . . . . * . . . . . . . . . . . . . . . . . . . . . . . . . . . .  43/2\n|                             *\n|                                                                               *\n|                                                                             *          19\n|                     *     *       *\n|                                           *\n|\n|                                                                                        15\n|\n|                                                                           *\n|   *           *                                                 *\n|                       *                                                                11\n|                                                             *\n|                                                       *\n|\n| *                                                                                      7\n|     *\n|\n|           * *                                             *\n|         *                                                                              3\n|                                             *\n|                                                   *\n+ - - - / - - - / - - - / - - - / - - - / - - - / - - - / - - - / - - - / - - - / - * -  0\n```\n\n## General Scripts\n\n### LaTeX Tables\n\n#### Prime Multiplicative Number System\n\n```\nmake build-pns\n./bin/pnumsys\n```\n\nGenerarates the [file](./doc/latex/prime_exponents_table.tex)\n\n## TODO\n\n- [x] Makefile tidy - organise / make headings for help\n- [ ] Core algos for elliptic curve operations - [x] Arbitrarily large finite filed ops - use BigInt - but make simpler - [x] Find Prime - [ ] Work out how many checks is \"good enough\" - [ ] Check that use of BigInt versus own reimplement is consistent / sane - [ ] Investigate what \"multiplying points\" and \"multiplicative inverse of points\" means (extend lit review work: [SCI395 Course Material](https://www.creativearts.com.au/maths/une/sci395)\n      )\n- [ ] Functions for operations within finite fields\n  - [x] Calculate points on an EC in prime finite field\n  - [x] Make ECs into types to hand around (immutable)\n  - [ ] Implement adding points and multplying points in field by real nums\n- [ ] Visualisation tools for elliptic curves\n  - [x] Basic text vis output\n  - [x] Debug the text vis output - scale / reflection line is wrong\n  - [ ] Improve tick marks / scale numbers under x-axis\n  - [ ] Vis adding and multplying numbers (see implementation above)\n  - [ ] Turn vis into a window with real drawings thingy\n  - [ ] Annimate doubling / adding / rings of points - text and / or proper drawing\n- [ ] Additional command line tools for other utilities\n  - [ ] Turn this interactive and make current code into `test-drive` target\n- [ ] Comprehensive unit tests for elliptic curve functionalities\n  - [ ] Do \"random\" test of more complex finite field calcs - rondomly selected in loop,small numbers without bigint, double checked / compared to function output\n\n## Contributing\n\nWelcome contributions from anyone. Fork repo / submit PR.\n\nOpen to questions and input on where to go next - as I'd like to make this whole thing useful to others too.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffishfugu%2Felliptic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffishfugu%2Felliptic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffishfugu%2Felliptic/lists"}