ltonetwork / seasalt

NaCl compatible cryptography library using Bouncy Castle (Java)
Apache License 2.0
3 stars 1 forks source link

Signing performance #19

Closed jasny closed 2 years ago

jasny commented 2 years ago

Make sure that the underlying (bouncy castle) objects are created in the constructor and not each time a (sign, verify, etc) function is called.

jasny commented 2 years ago

https://github.com/ltonetwork/seasalt/blob/main/src/main/java/com/ltonetwork/seasalt/sign/Ed25519.java#L37

KaloyanTanev commented 2 years ago

Observation: seasalt is ~x1.5 faster in verifying nacl is ~x3.5 faster in signing