Skip to main content
Module

x/alosaur/src/security/session/src/secp256k1/mod.ts

Alosaur - Deno web framework with many decorators
Go to Latest
import * as alosaur from "https://deno.land/x/alosaur@v0.38.0/src/security/session/src/secp256k1/mod.ts";

Classes

Default Point works in default aka affine coordinates: (x, y)

Functions

Computes public key for secp256k1 private key.

ECDH (Elliptic Curve Diffie Hellman) implementation.

  1. Checks for validity of private key
  2. Checks for the public key of being on-curve

Recovers public key from signature and recovery bit. Throws on invalid sig/hash.

Verifies a signature against message hash and public key. Rejects non-canonical / high-s signatures by default: to override, specify option {strict: false}. Implements section 4.1.4 from https://www.secg.org/sec1-v2.pdf: