Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/earthstar/deps.ts>ed.verify

Storage for private, distributed, offline-first applications.
Go to Latest
function ed.verify
import { ed } from "https://deno.land/x/earthstar@v10.0.1/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>