Finally identified the slowest part of encryption decryption in Blowater. It is the pure JS secp256k1 implementation from @noble package. 2ms to get a shared key, which is amazingly slow.
Experimenting with the Rust C wrapper and compile it to wasm.
Finally identified the slowest part of encryption decryption in Blowater. It is the pure JS secp256k1 implementation from @noble package. 2ms to get a shared key, which is amazingly slow.
Experimenting with the Rust C wrapper and compile it to wasm.