Socket
Socket
Sign inDemoInstall

noise-curve-ed

Package Overview
Dependencies
15
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    noise-curve-ed

Ed25519 elliptic curve operations for [`noise-handshake`](https://github.com/chm-diederichs/noise-handshake)


Version published
Weekly downloads
1.4K
decreased by-23.91%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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.

FAQs

Last updated on 10 Jan 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc