BN254 can be imported by writing from oblivious.bn254 import point, scalar. Likewise, Ristretto255 can be imported by writing from oblivious.ristretto import point, scalar.
I just made some changes to the native implementation, specifically to support a faster hash-to-point I wrote in mclbn256 recently. I'll make one more commit for linting, and then it has my approval.
BN254 can be imported by writing
from oblivious.bn254 import point, scalar
. Likewise, Ristretto255 can be imported by writingfrom oblivious.ristretto import point, scalar
.Encryption performance is almost identical on both curves.
Deterministic scalar/ID synthesis is explained in the doctest below.
https://github.com/nthparty/oblivious/blob/20ac2925d62e755f02fd8c03401033a8e98e2c1a/oblivious/bn254.py#L803-L810