Expose crypto_core_ed25519_from_uniform
AnonimaUzanto opened this issue · comments
Included in the libsodium low level functions is crypto_core_ed25519_from_uniform which provides the ability to apply Elligator 2 mapping to map arbitrary 32-byte data to a valid curve point. This functionality can be used to convert hashed data to a valid curve point. I have added and tested the applicable code in a fork and can provide a PR to add the functionality. Can this functionality be added to PyNaCl?
Prior issue:
(https://github.com/pyca/pynacl/pull/528#issuecomment-498176836
Source documentation:
https://doc.libsodium.org/advanced/point-arithmetic#elligator-2-map
We'd be happy to review a PR exposing this.
Thank you! I have created a PR although there is a failure that I believe is related to Sphinx and not the exposed function. I have not used Sphinx so I am not sure how to resolve that error.
Closing issue, thank you for approving PR!