Skip to main content
Module

x/earthstar/mod.ts>ICryptoDriver

A specification and Javascript library for building online tools you can truly call your own.
Go to Latest
interface ICryptoDriver
Re-export
import { type ICryptoDriver } from "https://deno.land/x/earthstar@v9.3.3/mod.ts";

A crypto driver provides low-level access to an implementation providing ed25519 cryptography, e.g. Chloride, noble/ed25519, Node crypto.

Methods

sha256(input: string | Uint8Array): Promise<Uint8Array>
generateKeypairBytes(): Promise<KeypairBytes>
sign(keypairBytes: KeypairBytes, msg: string | Uint8Array): Promise<Uint8Array>
verify(
publicKey: Uint8Array,
sig: Uint8Array,
msg: string | Uint8Array,
): Promise<boolean>