Skip to main content
Module

x/earthstar_replica_server/deps.ts>Earthstar.ICryptoDriver

An always-online Earthstar peer for your shares.
Latest
interface Earthstar.ICryptoDriver
Re-export
import { type Earthstar } from "https://deno.land/x/earthstar_replica_server@4.0.0-beta.1/deps.ts";
const { ICryptoDriver } = Earthstar;

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>