import { type ICrypto } from "https://deno.land/x/earthstar@v10.2.0/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>
updatableSha256(): UpdatableHash<any>
generateAuthorKeypair(name: string): Promise<AuthorKeypair | ValidationError>
sign(keypair: AuthorKeypair | ShareKeypair, msg: string | Uint8Array): Promise<Base32String | ValidationError>
checkKeypairIsValid(keypair: AuthorKeypair | ShareKeypair): Promise<true | ValidationError>