mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-05-22 17:49:41 +00:00
21 lines
690 B
Markdown
21 lines
690 B
Markdown
# wallet_crypto_bench
|
|
|
|
Wallet-side cryptographic microbenchmarks. Single host binary, no live sequencer or Bedrock needed.
|
|
|
|
## Run
|
|
|
|
```sh
|
|
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`.
|