You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The golang wrapper wouldn’t do any good regardless of how fast the library is. First of all, there is a marshaling overhead that will consume all the difference. Second, you’re not taking the implementation details into account. Like what kind of RNG is used for signing in both cases? Then there is a fact that such a wrapper will be insecure, leaking the copies of your secrets around almost everywhere. When it comes to cryptography, using FFI is not a good idea.
At first, I write a golang wrap of this lib, because golang version of ecdsa is not fast enought.
But I found this lib is slow 10 times of go version.
Those are my test result:
And my test code:
And my compile line:
I wish this lib can beat golang version.
Thanks.
The text was updated successfully, but these errors were encountered: