Skip to content

test: add Stellar crypto benchmarks and edge cases - #197

Merged
truthixify merged 1 commit into
wraith-protocol:developfrom
d1a-m3n:feat/wasm-simd-view-tag-scanner
Aug 28, 2026
Merged

test: add Stellar crypto benchmarks and edge cases#197
truthixify merged 1 commit into
wraith-protocol:developfrom
d1a-m3n:feat/wasm-simd-view-tag-scanner

Conversation

@d1a-m3n

@d1a-m3n d1a-m3n commented Aug 28, 2026

Copy link
Copy Markdown

Summary

  • add Stellar crypto hot-path benchmarks
  • cover SHA-256, X25519, scalar hashing, Ed25519 multiplication, and stealth pubkey derivation
  • add zero-scalar edge-case handling to property tests

Validation

  • npx vitest run test/chains/stellar
  • 30 test files passed
  • 872 tests passed, 5 skipped
  • git diff --check passes

Benchmark results:

  • SHA-256: ~10.7k ops/sec
  • X25519 shared secret: ~278 ops/sec
  • Ed25519 scalar multiplication: ~2.05k ops/sec
  • Full stealth pubkey derivation: ~1.18k ops/sec
  • Closes WASM SIMD view-tag scanner #184

@drips-wave

drips-wave Bot commented Aug 28, 2026

Copy link
Copy Markdown

@d1a-m3n Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@truthixify
truthixify merged commit e00f102 into wraith-protocol:develop Aug 28, 2026
13 checks passed
@truthixify

Copy link
Copy Markdown
Contributor

Merged. Benchmarking the crypto hot paths before optimising them is the right order of operations, and the zero-scalar edge case is a good catch @d1a-m3n. I am reading this as groundwork for the WASM SIMD work on #184, since the acceptance there needs a CPU-JS baseline to measure the 2x against. Shout if you meant it as standalone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WASM SIMD view-tag scanner

2 participants