edwards25519 icon indicating copy to clipboard operation
edwards25519 copied to clipboard

Exposing checkInitialized for input sanitation

Open joshbuddy opened this issue 2 years ago • 1 comments

First thank you for this excellent library!

I wanted to discuss making an API change. Specifically the checkInitialized function would be useful to have exported to make it easier to sanitize inputs. How would you feel about exposing that function? If that makes sense to you I'm happy to provide a pr.

joshbuddy avatar Apr 13 '23 07:04 joshbuddy

What kind of input sanitization do you need to do? checkInitialized exists only to catch API misuses where zero-valued Points are used as inputs.

FiloSottile avatar Dec 10 '23 19:12 FiloSottile