Skip to content

Commit 0d3091d

Browse files
authored
Have wNAF use PrimeField::to_le_repr for scalars (#12)
The wNAF implementation assumes a little endian representation for scalars, but `PrimeField::to_repr` returns an opaque representation which may be big endian and is in the case of our implementations of the NIST P-curves. RustCrypto/ff#10 added a stopgap API: `PrimeField::to_le_repr`, which is guaranteed to return a little endian representation. This commit switches `(rustcrypto-)group` to use it, which should make it compatible with our curves which otherwise use a big endian SEC1 representation.
1 parent 1de70ab commit 0d3091d

0 file changed

File tree

    0 commit comments

    Comments
     (0)