import { type ICrypto } from "https://deno.land/x/earthstar@v9.3.3/src/entries/universal.ts";
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, msg: string | Uint8Array): Promise<Base32String | ValidationError>
checkAuthorKeypairIsValid(keypair: AuthorKeypair): Promise<true | ValidationError>