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:
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"
]
}