2026-05-15 12:53:04 +02:00
..
2026-05-15 12:53:04 +02:00
2026-05-15 12:53:04 +02:00

wallet_crypto_bench

Wallet-side cryptographic microbenchmarks. Single host binary, no live sequencer or Bedrock needed.

Run

cargo run --release -p wallet_crypto_bench

What you'll see

Per-operation best_us, mean_us, and stdev_us over 100 iterations (plus 2 warmup):

  • KeyChain::new_os_random — full mnemonic → SSK → NSK/VSK + public-key derivation (HMAC-SHA512 PBKDF dominates).
  • KeyChain::new_mnemonic — same pipeline, mnemonic exposed.
  • SharedSecretKey::new (sender DH) — secp256k1 ECDH per recipient.
  • EncryptionScheme::encrypt / decrypt — ChaCha20 over an Account note.

JSON output is written to target/wallet_crypto_bench.json.