Skip to main content
Module

x/alosaur/src/security/session/src/secp256k1/index.ts>getPublicKey

Alosaur - Deno web framework with many decorators
Very Popular
Go to Latest
function getPublicKey
import { getPublicKey } from "https://deno.land/x/alosaur@v0.38.0/src/security/session/src/secp256k1/index.ts";

Computes public key for secp256k1 private key.

Parameters

privateKey: PrivKey

32-byte private key

optional
isCompressed = [UNSUPPORTED]

whether to return compact (33-byte), or full (65-byte) key

Returns

Uint8Array

Public key, full by default; short when isCompressed=true