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

x/bwt/deps.ts>Curve25519#generateKeys

Better Web Token - an iteration of web tokens with a bunch of improvements
Latest
method Curve25519.prototype.generateKeys
import { Curve25519 } from "https://deno.land/x/bwt@v0.6.0/deps.ts";

Generates a curve 25519 keypair.

seed is a 32 byte cryptographic secure random array. This is basically the secret key Returns an object containing a secret and public key as 32 byte typed arrays

Parameters

seed: Uint8Array

Returns

null | { secretKey: Uint8Array; publicKey: Uint8Array; }