gtank / ristretto255

Implements ristretto255, a fast prime-order group.
https://ristretto.group
BSD 3-Clause "New" or "Revised" License
98 stars 22 forks source link

Field element FromBytes should take a slice, not a pointer to an array #16

Closed gtank closed 5 years ago

gtank commented 5 years ago

That type propagates up into Ristretto decoding in a bad way: decoding from a hex string produces slices, and if FromBytes takes an array that forces us to copy.