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
capsule build --release
Run tests:
make ci
Test with ckb-debugger 0.115.0-rc2 and capsule 0.10.4:
Curve | Cycles | Binary Size | Additional Information |
---|---|---|---|
p256 | 3.4M Cycles | 68K Bytes | N/A |
k256 | 2.7M Cycles | 84K Bytes | No precomputed table |
RSA-2048 | 5.1M Cycles | 82K Bytes | N/A |
ed25519 | 1.8M Cycles | 49K Bytes | N/A |
schnorr | 2.6M Cycles | 76K Bytes | N/A |
k256 | 5.6M Cycles | 96K Bytes | Recovery |