import { type Earthstar } from "https://deno.land/x/earthstar_replica_server@4.0.0-beta.1/deps.ts";
const { ICrypto } = Earthstar;
Higher-level crypto functions. Not used directly for the most part, but useful for generating new keypairs.
Methods
sha256base32(input: string | Uint8Array): Promise<Base32String>
generateAuthorKeypair(name: string): Promise<AuthorKeypair | ValidationError>
sign(keypair: AuthorKeypair | ShareKeypair, msg: string | Uint8Array): Promise<Base32String | ValidationError>
checkKeypairIsValid(keypair: AuthorKeypair | ShareKeypair): Promise<true | ValidationError>