mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
While Group::random shouldn't be used instead of a hash to curve, anyone who did would've previously been insecure and now isn't. Could've done a recover_x and a raw Point construction, followed by a cofactor mul, to avoid the serialization, yet the serialization ensures full validity under the standard from_bytes function. THis also doesn't need to be micro-optimized.
Dalek FF/Group
ff/group bindings around curve25519-dalek with a from_hash/random function based around modern dependencies.
Some functions currently remain unimplemented.