Skip to main content
Module

x/earthstar/src/entries/npm.ts>ICryptoDriver

Storage for private, distributed, offline-first applications.
Go to Latest
interface ICryptoDriver
Re-export
import { type ICryptoDriver } from "https://deno.land/x/earthstar@v10.0.2/src/entries/npm.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>
updatableSha256(): UpdatableHash<any>
generateKeypairBytes(): Promise<KeypairBytes>
sign(keypairBytes: KeypairBytes, msg: string | Uint8Array): Promise<Uint8Array>
verify(
publicKey: Uint8Array,
sig: Uint8Array,
msg: string | Uint8Array,
): Promise<boolean>