supercop.ts

cross-compiled javascript implementation of ed25519 based on supercop-ref10
git clone git://git.finwo.net/lib/supercop.ts
Log | Files | Refs | README | LICENSE

commit 48b488a72ff3e82d2ffc58eafe7bde962592b8ff
parent 61f1351408e6eda0bd8650b3deed5b3185bdddeb
Author: finwo <finwo@pm.me>
Date:   Mon, 10 Aug 2020 11:32:49 +0200

Renamed 'key_exchange' to 'keyExchange' to be consistend

Diffstat:
MREADME.md | 2+-
Mindex.js | 2+-
Mpackage.json | 3++-
3 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md @@ -89,7 +89,7 @@ Verify a signature for a message and publickey - returns - `valid` - Boolean, describes whether or not the signature is valid -### lib.key_exchange( publicKey, secretKey ) +### lib.keyExchange( publicKey, secretKey ) Exchange keys between 2 parties diff --git a/index.js b/index.js @@ -190,7 +190,7 @@ exports.verify = async function(signature, message, publicKey){ return res; }; -exports.key_exchange = async function(publicKey, secretKey) { +exports.keyExchange = async function(publicKey, secretKey) { await instantiateModule(); const fn = (await Module).exports; const mem = (await Module).memory; diff --git a/package.json b/package.json @@ -26,6 +26,7 @@ "ed25519", "supercop", "ref10", - "elliptic" + "elliptic", + "curve" ] }