Skip to main content
Module

x/dtils/encryption.ts>verifyUsingBytes

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

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

Parameters

signatureBytes: Uint8Array
publicKeyBytes: Uint8Array
data: Uint8Array

Returns

Promise<boolean>