import { ed } from "https://deno.land/x/earthstar@v10.0.0-beta.5/deps.ts";
const { RistrettoPoint } = ed;
Takes uniform output of 64-bit hash function like sha512 and converts it to RistrettoPoint
.
The hash-to-group operation applies Elligator twice and adds the results.
Note: this is one-way map, there is no conversion from point to hash.
https://ristretto.group/formulas/elligator.html