Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/earthstar/src/cinn25519/types.ts>Ed25519Driver

Storage for private, distributed, offline-first applications.
Go to Latest
interface Ed25519Driver
import { type Ed25519Driver } from "https://deno.land/x/earthstar@11.0.0-beta.2/src/cinn25519/types.ts";

Type Parameters

PrivateKey

Methods

generateKeypair(): Promise<{ publicKey: Uint8Array; secretKey: PrivateKey; }>
sign(bytes: Uint8Array, secretKey: PrivateKey): Promise<Uint8Array>
verify(
publicKey: Uint8Array,
signature: Uint8Array,
bytes: Uint8Array,
): Promise<boolean>