Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xujiandong/ckb-rust-algorithm-benchmarks
This project aims to provide benchmarks for the implementation of cryptography algorithms in Rust on CKB.
https://github.com/xujiandong/ckb-rust-algorithm-benchmarks
ckb ckb-vm ed25519 p256 rsa secp256k1 secp256r1
Last synced: 15 days ago
JSON representation
This project aims to provide benchmarks for the implementation of cryptography algorithms in Rust on CKB.
- Host: GitHub
- URL: https://github.com/xujiandong/ckb-rust-algorithm-benchmarks
- Owner: XuJiandong
- Created: 2023-08-07T01:45:38.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-09-24T08:37:14.000Z (4 months ago)
- Last Synced: 2024-11-07T09:51:52.589Z (2 months ago)
- Topics: ckb, ckb-vm, ed25519, p256, rsa, secp256k1, secp256r1
- Language: Rust
- Homepage:
- Size: 94.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CKB Rust Algorithm Benchmarks
This project aims to provide benchmarks for the implementation of cryptography
algorithms in Rust on CKB. It now includes:
- p256(secp256r1)
- k256(secp256k1)
- rsa(2048 bits)
- ed25519
- schnorr## Build and Run
``` sh
make build
```Run tests:
``` sh
make ci
```## Benchmark Matrix
Test with [ckb-debugger 0.118](https://github.com/nervosnetwork/ckb-standalone-debugger)| Curve | Cycles | Binary Size | Additional Information |
|----------|----------|----------|-----------------------|
| p256 | 3.8M Cycles | 75K Bytes | N/A |
| k256 | 3.7M Cycles | 107K Bytes | No precomputed table |
| RSA-2048 | 5.4M Cycles | 113K Bytes | N/A |
| ed25519 | 2.0M Cycles | 55K Bytes | N/A |
| schnorr | 3.8M Cycles | 84K Bytes | N/A |
| k256 | 7.8M Cycles | 122K Bytes | Recovery |The k256 recovery can be boosted with this [PR](https://github.com/RustCrypto/signatures/pull/831).