Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/earthstar/deps.ts>ed.verify

Earthstar is a tool for private, undiscoverable, offline-first networks.
Go to Latest
function ed.verify
import { ed } from "https://deno.land/x/earthstar@v10.0.0-alpha.2/deps.ts";
const { verify } = ed;

Verifies ed25519 signature against message and public key. An extended group equation is checked. RFC8032 5.1.7 Compliant with ZIP215: 0 <= sig.R/publicKey < 2**256 (can be >= curve.P) 0 <= sig.s < l Not compliant with RFC8032: it's not possible to comply to both ZIP & RFC at the same time.

Parameters

sig: SigType
message: Hex
publicKey: PubKey

Returns

Promise<boolean>