{"id":17872575,"url":"https://github.com/gregors/fast_eip_55","last_synced_at":"2025-06-11T20:42:48.684Z","repository":{"id":42126936,"uuid":"453509033","full_name":"gregors/fast_eip_55","owner":"gregors","description":"Fast EIP-55 checksum library for Elixir","archived":false,"fork":false,"pushed_at":"2022-10-24T15:55:15.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-11T02:18:17.675Z","etag":null,"topics":["eip55","elixir","hex"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gregors.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}},"created_at":"2022-01-29T20:19:52.000Z","updated_at":"2022-11-17T02:35:45.000Z","dependencies_parsed_at":"2022-08-12T07:20:36.022Z","dependency_job_id":null,"html_url":"https://github.com/gregors/fast_eip_55","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/gregors%2Ffast_eip_55","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregors%2Ffast_eip_55/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregors%2Ffast_eip_55/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregors%2Ffast_eip_55/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gregors","download_url":"https://codeload.github.com/gregors/fast_eip_55/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246909112,"owners_count":20853361,"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":["eip55","elixir","hex"],"created_at":"2024-10-28T10:43:26.531Z","updated_at":"2025-04-02T23:28:20.241Z","avatar_url":"https://github.com/gregors.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fast EIP-55\n\nEncode and validate Ethereum addresses fast!\n\nFastEIP55 is a derivative work of unnawut's [EIP-55](https://github.com/unnawut/eip_55) elixir implementation of the [spec](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-55.md).\n\nThe original version uses a pure elixir version. This version makes 2 substantial changes.\n\n* replaces pure slow elixir keccak version with the much faster rust-powered one [Ex_Keccak](https://github.com/tzumby/ex_keccak)\n* replaces easy-to-read logic, with harder-to-read optimized logic\n\nI've kept the library interface the same, and have kept the original tests. I'm taking some liberty with the `to_upper` logic and might tweak things a bit if I uncover issues. I've also have some additional performance tweaks that I'd like to experiment with. Many thanks to unnawut for the original implemenation and tests!\n\n## Installation\n\nThe package can be installed by adding `:fast_eip_55` to your list of dependencies in `mix.exs`:\n\n```elixir\ndefp deps do\n  [\n    {:fast_eip_55, \"~\u003e 0.3\"}\n  ]\nend\n```\n\n## Usage\n\nEncoding:\n\n```elixir\niex\u003e alias FastEIP55, as: EIP55\niex\u003e EIP55.encode(\"0x5aaeb6053f3e94c9b9a09f33669435e7ef1beaed\")\n{:ok, \"0x5aAeb6053F3E94C9b9A09f33669435E7Ef1BeAed\"}\n\niex\u003e EIP55.encode(\u003c\u003c90, 174, 182, 5, 63, 62, 148, 201, 185, 160,\n...\u003e 159, 51, 102, 148, 53, 231, 239, 27, 234, 237\u003e\u003e)\n{:ok, \"0x5aAeb6053F3E94C9b9A09f33669435E7Ef1BeAed\"}\n```\n\nValidation:\n\n```elixir\niex\u003e alias FastEIP55, as: EIP55\niex\u003e EIP55.valid?(\"0x5aAeb6053F3E94C9b9A09f33669435E7Ef1BeAed\")\ntrue\n\niex\u003e EIP55.valid?(\"0x5AAEB6053f3e94c9b9a09f33669435e7ef1beaed\")\nfalse\n```\n\nFull documentation can be found at [https://hexdocs.pm/fast_eip_55](https://hexdocs.pm/fast_eip_55).\n\n## Performance\n\n```\nBenchmarking :eip55...\nBenchmarking :fast_eip55...\n\nName                  ips        average  deviation         median         99th %\n:fast_eip55      346.97 K        2.88 μs   ±641.72%        2.99 μs        4.99 μs\n:eip55             2.79 K      357.92 μs     ±7.01%      352.99 μs      448.99 μs\n\nComparison:\n:fast_eip55      346.97 K\n:eip55             2.79 K - 124.19x slower +355.04 μs\n\n```\n\n## License\n\nFastEIP-55 is released under the MIT License. See [LICENSE](./LICENSE) for further details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregors%2Ffast_eip_55","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgregors%2Ffast_eip_55","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregors%2Ffast_eip_55/lists"}