sodium2supercop

1.0.0 • Public • Published

sodium2supercop

Convert libsodium key pairs to ed25519-supercop key pairs

Usage

var s2s = require('sodium2supercop')

var sk = // Buffer ...
var pk = // Buffer ...

var keypair = s2s(sk, pk)

Note that this transformation is one-way, ie. you cannot convert supercop keys to libsodium compatible keys.

API

var {publicKey, secretKey} = convert(secretKeyBuf, publicKeyBuf)

Convert libsodium generated secretKeyBuf and publicKeyBuf to a ed25519-supercop compatible key pair. This will put secretKeyBuf though a one-way transformation and copy the publicKeyBuf into a new Buffer for publicKey.

Install

npm install sodium2supercop

License

ISC

Readme

Keywords

none

Package Sidebar

Install

npm i sodium2supercop

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

4.05 kB

Total Files

5

Last publish

Collaborators

  • emilbayes