py
py copied to clipboard
Consider an option to support Elligator as option
By using Elligator elliptic curve points became indistinguishable from random string. It's useful property in countries where government censorship evolves. It can be used pretty easily with Curve25519.
http://elligator.cr.yp.to/
+-------------------------------+----------+----------+-----------------+
| 65 Bytes | 16 Bytes | 16 Bytes | == data size |
+-------------------------------+----------+----------+-----------------+
| sender_pk (elligator) | nonce | tag | encrypted_data |
+-------------------------------+----------+----------+-----------------+
def elligatorize(public_key: bytes, curve: Curve) -> bytes:
pass
Need to implement it first
https://fc14.ifca.ai/papers/fc14_submission_25.pdf
looks like fancier than elligator :)