Skip to content

XuJiandong/ckb-rust-algorithm-benchmarks

Repository files navigation

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

make build

Run tests:

make ci

Benchmark Matrix

Test with ckb-debugger 0.200.2

Curve Cycles Binary Size Additional Information
p256 4.8M Cycles 73K Bytes N/A
k256 3.6M Cycles 94K Bytes No precomputed table
RSA-2048 5.7M Cycles 135K Bytes N/A
ed25519 2.0M Cycles 63K Bytes N/A
schnorr 3.5M Cycles 80K Bytes N/A
k256 3.8M Cycles 97K Bytes Recovery

About

This project aims to provide benchmarks for the implementation of cryptography algorithms in Rust on CKB.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published