Skip to main content
Module

x/bwt/deps.ts>Curve25519#scalarMult

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

Generates the common key as the produkt of secretKey1 * publicKey2.

secretKey must be a 32 byte secret key of pair 1 publicKey must be a 32 byte public key of pair 2 Returns secretKey * publicKey

Parameters

secretKey: Uint8Array
publicKey: Uint8Array

Returns

Uint8Array