Skip to main content
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-beta.8/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>