Commit Graph

2 Commits

Author SHA1 Message Date
Matt Hess 638171efe1 Add Ed25519 scalar and point operations to WASM crypto backend (Phase 2)
Adds 16 operations via curve25519-dalek: scAdd, scSub, scMul, scMulAdd,
  scMulSub, scReduce32, scReduce64, scInvert, scCheck, scIsZero,
  scalarMultBase, scalarMultPoint, pointAddCompressed, pointSubCompressed,
  pointNegate, doubleScalarMultBase. Uses variable-time Straus algorithm
  for point multiplication. All 44 equivalence tests pass byte-for-byte.
  Benchmarks: scMulAdd 3.5x, scalarMultBase 2.3x, pointAdd 16.7x faster.
2026-01-31 22:36:10 +00:00
Matt Hess 2486d1f00f ● Add Rust WASM crypto backend with provider pattern for runtime switching
Phase 1: keccak256 and blake2b compiled from Rust via wasm-pack (23KB).
  Provider pattern enables switching between JS and WASM backends at runtime
  while keeping all existing JS crypto code intact. Equivalence tests confirm
  byte-for-byte matching across all inputs. Benchmarks: keccak256 ~4.6x faster,
  blake2b ~15x faster with WASM backend.
2026-01-31 20:50:04 +00:00