Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 1.37 KB

README.md

File metadata and controls

40 lines (26 loc) · 1.37 KB

MPC Crypto Bench

MPC Crypto Bench is a utility that can be used to accurately measure the speed of the blockchain-crypto-mpc library. It runs blockchain-crypto-mpc with a specified algorithm for a number of iterations and then returns that average runtime. The utility strives to measure the raw speed of the blockchain-crypto-mpc library, without any delays due to networking.

Build Instructions

This utility is compiled along with the blockchain-crypto-mpc library. Following the build instructions found here.

The executable is called mpc_crypto_bench.

Command Line

Run the utility with the following command:

./mpc_crypto_bench [algorithm] <iterations>

where algorithm can be one of the following:

  • ecdsa-gen - ECDSA key generation
  • ecdsa-sign - ECDSA key signing
  • eddsa-gen - EdDSA key generation
  • eddsa-sign - EdDSA key signing
  • bip-initial - BIP master key generation
  • bip-hardened - BIP derivation of hardened child key
  • bip-normal - BIP derivation of child key

The value of iterations designates how many times to loop.

Example

To run 10 iterations of ECDSA key generation:

./mpc_crypto_bench ecdsa-gen 10
Initialization...
Running ecdsa-gen for 10 iterations
..........
0.786100 seconds per operation