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.

Reply to this note

Please Login to reply.

Discussion

Get ‘em! Code hunter 🫡

I'm using this package too hahaha

Will let you know if my optimization works

Looking forward to your message

Figured out a way to boost the performance without using WASM, thank God.