Files
buzz/mobile/lib/shared
Tom Brow da1190e2c9 perf(mobile): compute NIP-44 ECDH with native libsecp256k1
ecdhSharedSecret used pointycastle's BigInt point multiplication, which is
slow (about 5.9 ms on an iPhone SE) and not constant time. It now calls
libsecp256k1's secp256k1_ecdh with a raw-x hash callback, wiping the
decoded secret key afterwards.

Co-authored-by: george <973be878edd6d4f79692a3827f20a6f7fe0ed0362f269ff6b6ba8867033d7d8e@sprout-oss.stage.blox.sqprod.co>
Signed-off-by: Tom Brow <tomb@block.xyz>
2026-10-29 08:54:19 -07:00
..