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.
I'm using this package too hahaha
Please Login to reply.
Will let you know if my optimization works
Looking forward to your message