elliptic icon indicating copy to clipboard operation
elliptic copied to clipboard

EDDSA.decodeInt should fails or reduce by dafault?

Open mahnunchik opened this issue 3 years ago • 0 comments

Current implementation allows to decode any number even more n or even more than 32 bit number.

https://github.com/indutny/elliptic/blob/43ac7f230069bd1575e1e4a58394a512303ba803/lib/elliptic/utils.js#L115-L117

Maybe method should fails or number be reduce by n by default?

mahnunchik avatar Mar 18 '21 12:03 mahnunchik