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

x/dtils/encryption.ts>verify

The best unofficial library of utilities for Deno applications
Go to Latest
function verify
import { verify } from "https://deno.land/x/dtils@2.4.0/encryption.ts";

Verifies that signature is from the EC private key corresponding to publicKey. Function will error if publicKey is not a base64 encoded EC public key

Parameters

signature: string
publicKey: string
data: Uint8Array

Returns

Promise<boolean>