{"id":18679038,"url":"https://github.com/xujiandong/ckb-rust-algorithm-benchmarks","last_synced_at":"2025-08-25T03:49:40.787Z","repository":{"id":186624867,"uuid":"675464496","full_name":"XuJiandong/ckb-rust-algorithm-benchmarks","owner":"XuJiandong","description":"This project aims to provide benchmarks for the implementation of cryptography algorithms in Rust on CKB. ","archived":false,"fork":false,"pushed_at":"2024-09-24T08:37:14.000Z","size":97,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-18T15:11:40.398Z","etag":null,"topics":["ckb","ckb-vm","ed25519","p256","rsa","secp256k1","secp256r1"],"latest_commit_sha":null,"homepage":"","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/XuJiandong.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":"2023-08-07T01:45:38.000Z","updated_at":"2024-09-24T08:37:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"8fed089f-86c9-49a8-a053-9891db4518f1","html_url":"https://github.com/XuJiandong/ckb-rust-algorithm-benchmarks","commit_stats":null,"previous_names":["xujiandong/p256-tests"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/XuJiandong/ckb-rust-algorithm-benchmarks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XuJiandong%2Fckb-rust-algorithm-benchmarks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XuJiandong%2Fckb-rust-algorithm-benchmarks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XuJiandong%2Fckb-rust-algorithm-benchmarks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XuJiandong%2Fckb-rust-algorithm-benchmarks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/XuJiandong","download_url":"https://codeload.github.com/XuJiandong/ckb-rust-algorithm-benchmarks/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XuJiandong%2Fckb-rust-algorithm-benchmarks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272004325,"owners_count":24856937,"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-25T02:00:12.092Z","response_time":1107,"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":["ckb","ckb-vm","ed25519","p256","rsa","secp256k1","secp256r1"],"created_at":"2024-11-07T09:42:09.401Z","updated_at":"2025-08-25T03:49:40.739Z","avatar_url":"https://github.com/XuJiandong.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CKB Rust Algorithm Benchmarks\n\nThis project aims to provide benchmarks for the implementation of cryptography\nalgorithms in Rust on CKB. It now includes:\n- p256(secp256r1)\n- k256(secp256k1)\n- rsa(2048 bits)\n- ed25519\n- schnorr\n\n\n## Build and Run\n\n``` sh\nmake build\n```\n\nRun tests:\n\n``` sh\nmake ci\n```\n\n## Benchmark Matrix\nTest with [ckb-debugger 0.118](https://github.com/nervosnetwork/ckb-standalone-debugger)\n\n| Curve | Cycles | Binary Size | Additional Information  |\n|----------|----------|----------|-----------------------|\n| p256     |  3.8M Cycles  | 75K Bytes   | N/A      |\n| k256     |  3.7M Cycles  | 107K Bytes  | No precomputed table    |\n| RSA-2048 |  5.4M Cycles  | 113K Bytes   | N/A      |\n| ed25519  |  2.0M Cycles  | 55K Bytes   | N/A      |\n| schnorr  |  3.8M Cycles  | 84K Bytes  | N/A      |\n| k256     |  7.8M Cycles  | 122K Bytes  | Recovery |\n\nThe k256 recovery can be boosted with this [PR](https://github.com/RustCrypto/signatures/pull/831).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxujiandong%2Fckb-rust-algorithm-benchmarks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxujiandong%2Fckb-rust-algorithm-benchmarks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxujiandong%2Fckb-rust-algorithm-benchmarks/lists"}