Socket
Socket
Sign inDemoInstall

ed25519-supercop

Package Overview
Dependencies
2
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ed25519-supercop

ed25519 curve operations using a supercop/ref10 implementation


Version published
Weekly downloads
161
increased by20.15%
Maintainers
2
Install size
1.87 MB
Created
Weekly downloads
 

Readme

Source

ed25519-supercop

ed25519 curve operations using a supercop/ref10 implementation

travis-image

This module provides C++ bindings for orlp/ed25519 (formerly nightcracker/ed25519).

supercop implementations use the same algorithm but different key formatting than sodium/nacl keys.

bittorrent's dht_store (bep44) extension uses supercop keys.

see also

For a pure javascript emscripten implementation, see:

methods

var ed = require('ed25519-supercop')

var seed = ed.createSeed()

Generate seed, a 32-byte buffer of cryptographically secure random data.

var keypair = ed.createKeyPair(seed)

Generate keypair from a 32-byte seed buffer.

  • keypair.publicKey - public key data (32 byte buffer)
  • keypair.secretKey - secret/private key data (64 byte buffer)

var signature = ed.sign(message, publicKey, secretKey)

Generate a 64-byte signature given:

  • message (string or buffer)
  • publicKey (32-byte buffer or hex string)
  • secretKey (64-byte buffer or hex string)

var ok = ed.verify(signature, message, publicKey)

Return a boolean ok, true if the 64-byte buffer or hex string signature signs a buffer or string message with the 32-byte or hex string publicKey.

install

npm install ed25519-supercop

license

MIT

Keywords

FAQs

Last updated on 29 Jul 2020

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc