Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/dtils/encryption.ts>sign

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

Creates a digital signature using a base64 encoded EC private key. Note: function will error if the key passed in is not a private key

Parameters

privateKey: string
data: Uint8Array

Returns

Promise<string>