noise-curve-ed
Ed25519 elliptic curve operations for [`noise-handshake`](https://github.com/chm-diederichs/noise-handshake)
Last updated 2 years ago by chm-diederichs .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install noise-curve-ed 
SYNC missed versions from official npm registry.

noise-curve-ed

Ed25519 elliptic curve operations for noise-handshake

Usage

const curve = require('noise-curve-ed')
const Noise = require('noise-handshake')

const handshake = new Noise(pattern, initiator, staticKeyPair, { curve })

API

constants

DHLEN = 32 PKLEN = 32 SCALARLEN = 32 SKLEN = 64 ALG = 'Ed25519'

generateKeyPair([privKey])

Generate a new keypair, optionally pass in a preexisting privKey. Return value is of the form:

{
  publicKey,
  secretKey,
}

dh(publicKey, { secretKey, scalar })

Perform DH between publicKey and secretKey/scalar and return the result.

Current Tags

  • 2.0.1                                ...           latest (2 years ago)

7 Versions

  • 2.0.1                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 1.0.4                                ...           3 years ago
  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (4)

Copyright 2013 - present © cnpmjs.org | Home |