{"id":19715355,"url":"https://github.com/axentro/crystal-ecdsa","last_synced_at":"2025-10-27T00:37:46.512Z","repository":{"id":140836179,"uuid":"162468744","full_name":"Axentro/crystal-ecdsa","owner":"Axentro","description":"C bindings for OpenSSL ECDSA","archived":false,"fork":false,"pushed_at":"2020-04-19T08:53:14.000Z","size":47,"stargazers_count":12,"open_issues_count":1,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-29T20:39:39.862Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Crystal","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/Axentro.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":"2018-12-19T17:18:10.000Z","updated_at":"2023-06-22T17:58:24.000Z","dependencies_parsed_at":"2024-06-16T16:46:43.042Z","dependency_job_id":null,"html_url":"https://github.com/Axentro/crystal-ecdsa","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/Axentro/crystal-ecdsa","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Axentro%2Fcrystal-ecdsa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Axentro%2Fcrystal-ecdsa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Axentro%2Fcrystal-ecdsa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Axentro%2Fcrystal-ecdsa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Axentro","download_url":"https://codeload.github.com/Axentro/crystal-ecdsa/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Axentro%2Fcrystal-ecdsa/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272805572,"owners_count":24995916,"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","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"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":"2024-11-11T22:38:06.799Z","updated_at":"2025-10-27T00:37:41.445Z","avatar_url":"https://github.com/Axentro.png","language":"Crystal","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Crystal-ECDSA\n\nA Crystal C binding for the ECDSA functionality of OpenSSL that focuses specifically on secp256k1.\nThis library requires you to have OpenSSL installed.\n\nThanks to Eric Davis for his [ecies](https://github.com/insanum/ecies) library and to John Feras for his adaptation of Eric's code for this library.\n\n[![Build Status](https://travis-ci.org/SushiChain/crystal-ecdsa.svg?branch=master)](https://travis-ci.org/SushiChain/crystal-ecdsa)\n\n## Installation\n\n1. Add the dependency to your `shard.yml`:\n```yaml\ndependencies:\n  crystal-ecdsa:\n    github: sushichain/crystal-ecdsa\n```\n2. Run `shards install`\n\n## Usage\n\n```crystal\nrequire \"crystal-ecdsa\"\n\n# generate a keypair\nkey_pair = ECCrypto.create_key_pair\nprivate_key = key_pair[:hex_private_key]\npublic_key = key_pair[:hex_public_key]\n\n# hash a text message\nmessage = ECCrypto.sha256(\"this message is being signed\")\n\n# sign the message with a private key\nsig = ECCrypto.sign(private_key, message)\n\n# verify the signature with the public key and the signature\nECCrypto.verify(public_key, message, sig[\"r\"], sig[\"s\"])\n\n# get the public key from a private key\npublic_key = ECCrypto.get_public_key_from_private(private_key)\n\n# encrypt a message using a given receiver's public key\nencrypted_message = ECCrypto.encrypt(receiver_public_key, \"This is a secret message\")\n\n# decrypt a received message using known private key\ndecrypted_message = ECCrypto.decrypt(private_key, encrypted_message)\n\n```\n\nYou can create a keypair which returns the public and private keys. The private key will always be of length 64 and the public key of length 130\n\nUsing the keypair you can sign a message and then verify it\n\n## Developement\n\nYou must generate the encryption.o before the library is usable and before the specs will run.\n\n`cd encryption \u0026\u0026 make`\n\n## Contributing\n\n1. Fork it (\u003chttps://github.com/sushichain/crystal-ecdsa/fork\u003e)\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n\n## Contributors\n\n- [Kingsley Hendrickse](https://github.com/kingsleyh) - creator and maintainer\n- [John Feras](https://github.com/jferas) - contributor\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxentro%2Fcrystal-ecdsa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faxentro%2Fcrystal-ecdsa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxentro%2Fcrystal-ecdsa/lists"}