mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-11 16:57:39 +00:00
- Add ECPoint.toAffineX that computes only x = X/Z² (saves 2M vs full toAffine which also computes Y/Z³) - Use toAffineX in ecdhXOnly since only the x-coordinate is needed - Add ecdhXOnly benchmark measuring the actual Nostr ECDH production path (Secp256k1Instance.pubKeyTweakMulCompact delegates to ecdhXOnly) - Fix ktlint KDoc-inside-class-body violations The old benchmark measured pubKeyTweakMul(02||x, key) which pays for: array allocation, compressed key parsing (sqrt), full toAffine, and re-serialization. ecdhXOnly avoids the array overhead and serialization. https://claude.ai/code/session_01BhU63WUe9AhikZxRdw3Lpg