Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/earthstar/deps.ts>ed.RistrettoPoint.hashToCurve

Earthstar is a tool for private, undiscoverable, offline-first networks.
Go to Latest
method ed.RistrettoPoint.hashToCurve
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

Parameters

hex: Hex

64-bit output of a hash function