import { ed } from "https://deno.land/x/earthstar@v10.0.0-beta.8/deps.ts";
const { getPublicKey } = ed;
Calculates ed25519 public key.
- private key is hashed with sha512, then first 32 bytes are taken from the hash
- 3 least significant bits of the first byte are cleared RFC8032 5.1.5