Encryption, Cybersecurity.
ristretto.Point var b ristretto.Point var elgamalCalc, p2 ristretto.Point privKey.Rand() pubKey.ScalarMultBase(&privKey) // Encrypt point p with ElGamal to produce a ciphertext-pair (a,b) p.Rand() r.Rand() b.ScalarMultBase(&r) a.PublicScalarMult(&pubKey, &r) a.Add(&a, &p) // Decrypt (a,b) back to p