This is an automated email from the ASF dual-hosted git repository.
kmccusker pushed a commit to branch update-code
in repository
https://gitbox.apache.org/repos/asf/incubator-milagro-crypto-js.git
The following commit(s) were added to refs/heads/update-code by this push:
new 67033ee replace BN254CX with BLS383
67033ee is described below
commit 67033ee7c427f628db3b5b3ca24e0c01e83d2f25
Author: Kealan McCusker <[email protected]>
AuthorDate: Tue Jun 18 13:39:47 2019 +0100
replace BN254CX with BLS383
---
.travis.yml | 8 ++------
.../browser/{example_DVS_BN254CX.html => example_DVS_BLS383.html} | 4 ++--
...ple_ECC_BN254_NIST521.html => example_ECC_BLS383_NIST521.html} | 4 ++--
.../{example_MPIN_BN254CX.html => example_MPIN_BLS383.html} | 4 ++--
...ample_MPIN_FULL_BN254CX.html => example_MPIN_FULL_BLS383.html} | 4 ++--
...IN_ONE_PASS_BN254CX.html => example_MPIN_ONE_PASS_BLS383.html} | 4 ++--
.../{example_MPIN_TP_BN254CX.html => example_MPIN_TP_BLS383.html} | 4 ++--
examples/node/{example_DVS_BN254CX.js => example_DVS_BLS383.js} | 2 +-
...example_ECC_BN254_NIST521.js => example_ECC_BLS383_NIST521.js} | 4 ++--
examples/node/{example_MPIN_BN254CX.js => example_MPIN_BLS383.js} | 2 +-
.../{example_MPIN_FULL_BN254CX.js => example_MPIN_FULL_BLS383.js} | 2 +-
...e_MPIN_ONE_PASS_BN254CX.js => example_MPIN_ONE_PASS_BLS383.js} | 2 +-
examples/node/example_MPIN_TP_BN254CX.js | 2 +-
test/test_DVS.js | 2 +-
test/test_MPIN.js | 2 +-
15 files changed, 23 insertions(+), 27 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index 7673e7b..efc0a60 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,7 +4,7 @@ node_js:
- "node"
sudo: required
-dist: trusty
+dist: bionic
group: edge
@@ -13,11 +13,7 @@ branches:
- release
before_script:
- - npm install chai
- - npm install -g mocha
- - npm install -g coveralls
- - npm install -g istanbul
- - npm install -g nyc
+ - npm install
script:
- npm run coverage
diff --git a/examples/browser/example_DVS_BN254CX.html
b/examples/browser/example_DVS_BLS383.html
similarity index 98%
rename from examples/browser/example_DVS_BN254CX.html
rename to examples/browser/example_DVS_BLS383.html
index c8d6322..d5c0183 100644
--- a/examples/browser/example_DVS_BN254CX.html
+++ b/examples/browser/example_DVS_BLS383.html
@@ -55,7 +55,7 @@ under the License.
/* Test DVS - test driver and function exerciser for Designated Verifier
Signature API Functions */
-var ctx = new CTX("BN254CX");
+var ctx = new CTX("BLS383");
var RAW = [];
var rng = new ctx.RAND();
@@ -87,7 +87,7 @@ ctx.MPIN.RANDOM_GENERATE(rng, S);
console.log("M-Pin Master Secret s: 0x" + ctx.MPIN.bytestostring(S));
/* Create Client Identity */
-var IDstr = "[email protected]";
+var IDstr = "[email protected]";
var CLIENT_ID = ctx.MPIN.stringtobytes(IDstr);
console.log("Client ID= " + ctx.MPIN.bytestostring(CLIENT_ID));
diff --git a/examples/browser/example_ECC_BN254_NIST521.html
b/examples/browser/example_ECC_BLS383_NIST521.html
similarity index 98%
rename from examples/browser/example_ECC_BN254_NIST521.html
rename to examples/browser/example_ECC_BLS383_NIST521.html
index b46d2f8..ea61f8e 100644
--- a/examples/browser/example_ECC_BN254_NIST521.html
+++ b/examples/browser/example_ECC_BLS383_NIST521.html
@@ -56,10 +56,10 @@ under the License.
/* Test ECC - test driver and function exerciser for ECDH/ECIES/ECDSA API
Functions */
-var ctx1 = new CTX("BN254");
+var ctx1 = new CTX("BLS383");
var ctx2 = new CTX("NIST521");
-console.log("Start testing BN254");
+console.log("Start testing BLS383");
var pp = "M0ng00se",
res,
diff --git a/examples/browser/example_MPIN_BN254CX.html
b/examples/browser/example_MPIN_BLS383.html
similarity index 99%
rename from examples/browser/example_MPIN_BN254CX.html
rename to examples/browser/example_MPIN_BLS383.html
index d1e9fa5..6ca6b73 100644
--- a/examples/browser/example_MPIN_BN254CX.html
+++ b/examples/browser/example_MPIN_BLS383.html
@@ -55,7 +55,7 @@ under the License.
/* Test MPIN - test driver and function exerciser for MPIN API Functions */
-var ctx = new CTX("BN254CX");
+var ctx = new CTX("BLS383");
/* Test M-Pin */
@@ -95,7 +95,7 @@ ctx.MPIN.RANDOM_GENERATE(rng, S);
console.log("M-Pin Master Secret s: 0x" + ctx.MPIN.bytestostring(S));
/* Create Client Identity */
-var IDstr = "[email protected]";
+var IDstr = "[email protected]";
var CLIENT_ID = ctx.MPIN.stringtobytes(IDstr);
HCID = ctx.MPIN.HASH_ID(sha, CLIENT_ID); /* Either Client or TA calculates
Hash(ID) - you decide! */
diff --git a/examples/browser/example_MPIN_FULL_BN254CX.html
b/examples/browser/example_MPIN_FULL_BLS383.html
similarity index 99%
rename from examples/browser/example_MPIN_FULL_BN254CX.html
rename to examples/browser/example_MPIN_FULL_BLS383.html
index b6b82bf..9a572bb 100644
--- a/examples/browser/example_MPIN_FULL_BN254CX.html
+++ b/examples/browser/example_MPIN_FULL_BLS383.html
@@ -55,7 +55,7 @@ under the License.
/* Test MPIN - test driver and function exerciser for MPIN API Functions */
-var ctx = new CTX("BN254CX");
+var ctx = new CTX("BLS383");
/* Test M-Pin */
@@ -107,7 +107,7 @@ ctx.MPIN.RANDOM_GENERATE(rng, S);
console.log("M-Pin Master Secret s: 0x" + ctx.MPIN.bytestostring(S));
/* Create Client Identity */
-var IDstr = "[email protected]";
+var IDstr = "[email protected]";
var CLIENT_ID = ctx.MPIN.stringtobytes(IDstr);
HCID = ctx.MPIN.HASH_ID(sha, CLIENT_ID); /* Either Client or TA calculates
Hash(ID) - you decide! */
diff --git a/examples/browser/example_MPIN_ONE_PASS_BN254CX.html
b/examples/browser/example_MPIN_ONE_PASS_BLS383.html
similarity index 98%
rename from examples/browser/example_MPIN_ONE_PASS_BN254CX.html
rename to examples/browser/example_MPIN_ONE_PASS_BLS383.html
index 24163e2..a798a31 100644
--- a/examples/browser/example_MPIN_ONE_PASS_BN254CX.html
+++ b/examples/browser/example_MPIN_ONE_PASS_BLS383.html
@@ -55,7 +55,7 @@ under the License.
/* Test MPIN - test driver and function exerciser for MPIN API Functions */
-var ctx = new CTX("BN254CX");
+var ctx = new CTX("BLS383");
/* Test M-Pin */
@@ -106,7 +106,7 @@ ctx.MPIN.RANDOM_GENERATE(rng, S);
console.log("M-Pin Master Secret s: 0x" + ctx.MPIN.bytestostring(S));
/* Create Client Identity */
-var IDstr = "[email protected]";
+var IDstr = "[email protected]";
var CLIENT_ID = ctx.MPIN.stringtobytes(IDstr);
HCID = ctx.MPIN.HASH_ID(sha, CLIENT_ID); /* Either Client or TA calculates
Hash(ID) - you decide! */
diff --git a/examples/browser/example_MPIN_TP_BN254CX.html
b/examples/browser/example_MPIN_TP_BLS383.html
similarity index 98%
rename from examples/browser/example_MPIN_TP_BN254CX.html
rename to examples/browser/example_MPIN_TP_BLS383.html
index 1bed73b..8f8c1d2 100644
--- a/examples/browser/example_MPIN_TP_BN254CX.html
+++ b/examples/browser/example_MPIN_TP_BLS383.html
@@ -55,7 +55,7 @@ under the License.
/* Test MPIN - test driver and function exerciser for MPIN API Functions */
-var ctx = new CTX("BN254CX");
+var ctx = new CTX("BLS383");
/* Test M-Pin */
@@ -95,7 +95,7 @@ ctx.MPIN.RANDOM_GENERATE(rng, S);
console.log("M-Pin Master Secret s: 0x" + ctx.MPIN.bytestostring(S));
/* Create Client Identity */
-var IDstr = "[email protected]";
+var IDstr = "[email protected]";
var CLIENT_ID = ctx.MPIN.stringtobytes(IDstr);
HCID = ctx.MPIN.HASH_ID(sha, CLIENT_ID); /* Either Client or TA calculates
Hash(ID) - you decide! */
diff --git a/examples/node/example_DVS_BN254CX.js
b/examples/node/example_DVS_BLS383.js
similarity index 99%
rename from examples/node/example_DVS_BN254CX.js
rename to examples/node/example_DVS_BLS383.js
index c33c68f..da1c66d 100644
--- a/examples/node/example_DVS_BN254CX.js
+++ b/examples/node/example_DVS_BLS383.js
@@ -53,7 +53,7 @@ ctx.MPIN.RANDOM_GENERATE(rng, S);
console.log("M-Pin Master Secret s: 0x" + ctx.MPIN.bytestostring(S));
/* Create Client Identity */
-var IDstr = "[email protected]";
+var IDstr = "[email protected]";
var CLIENT_ID = ctx.MPIN.stringtobytes(IDstr);
console.log("Client ID= " + ctx.MPIN.bytestostring(CLIENT_ID));
diff --git a/examples/node/example_ECC_BN254_NIST521.js
b/examples/node/example_ECC_BLS383_NIST521.js
similarity index 98%
rename from examples/node/example_ECC_BN254_NIST521.js
rename to examples/node/example_ECC_BLS383_NIST521.js
index 10d812f..6a5e82f 100644
--- a/examples/node/example_ECC_BN254_NIST521.js
+++ b/examples/node/example_ECC_BLS383_NIST521.js
@@ -22,10 +22,10 @@ under the License.
var CTX = require("../../index");
-var ctx1 = new CTX("BN254");
+var ctx1 = new CTX("BLS383");
var ctx2 = new CTX("NIST521");
-console.log("Start testing BN254");
+console.log("Start testing BLS383");
var pp = "M0ng00se",
res,
diff --git a/examples/node/example_MPIN_BN254CX.js
b/examples/node/example_MPIN_BLS383.js
similarity index 99%
rename from examples/node/example_MPIN_BN254CX.js
rename to examples/node/example_MPIN_BLS383.js
index f4defdc..26acda7 100644
--- a/examples/node/example_MPIN_BN254CX.js
+++ b/examples/node/example_MPIN_BLS383.js
@@ -61,7 +61,7 @@ ctx.MPIN.RANDOM_GENERATE(rng, S);
console.log("M-Pin Master Secret s: 0x" + ctx.MPIN.bytestostring(S));
/* Create Client Identity */
-var IDstr = "[email protected]";
+var IDstr = "[email protected]";
var CLIENT_ID = ctx.MPIN.stringtobytes(IDstr);
HCID = ctx.MPIN.HASH_ID(sha, CLIENT_ID); /* Either Client or TA calculates
Hash(ID) - you decide! */
diff --git a/examples/node/example_MPIN_FULL_BN254CX.js
b/examples/node/example_MPIN_FULL_BLS383.js
similarity index 99%
rename from examples/node/example_MPIN_FULL_BN254CX.js
rename to examples/node/example_MPIN_FULL_BLS383.js
index 7788672..7e689b3 100644
--- a/examples/node/example_MPIN_FULL_BN254CX.js
+++ b/examples/node/example_MPIN_FULL_BLS383.js
@@ -73,7 +73,7 @@ ctx.MPIN.RANDOM_GENERATE(rng, S);
console.log("M-Pin Master Secret s: 0x" + ctx.MPIN.bytestostring(S));
/* Create Client Identity */
-var IDstr = "[email protected]";
+var IDstr = "[email protected]";
var CLIENT_ID = ctx.MPIN.stringtobytes(IDstr);
HCID = ctx.MPIN.HASH_ID(sha, CLIENT_ID); /* Either Client or TA calculates
Hash(ID) - you decide! */
diff --git a/examples/node/example_MPIN_ONE_PASS_BN254CX.js
b/examples/node/example_MPIN_ONE_PASS_BLS383.js
similarity index 99%
rename from examples/node/example_MPIN_ONE_PASS_BN254CX.js
rename to examples/node/example_MPIN_ONE_PASS_BLS383.js
index a4b999b..c6f6b9f 100644
--- a/examples/node/example_MPIN_ONE_PASS_BN254CX.js
+++ b/examples/node/example_MPIN_ONE_PASS_BLS383.js
@@ -72,7 +72,7 @@ ctx.MPIN.RANDOM_GENERATE(rng, S);
console.log("M-Pin Master Secret s: 0x" + ctx.MPIN.bytestostring(S));
/* Create Client Identity */
-var IDstr = "[email protected]";
+var IDstr = "[email protected]";
var CLIENT_ID = ctx.MPIN.stringtobytes(IDstr);
HCID = ctx.MPIN.HASH_ID(sha, CLIENT_ID); /* Either Client or TA calculates
Hash(ID) - you decide! */
diff --git a/examples/node/example_MPIN_TP_BN254CX.js
b/examples/node/example_MPIN_TP_BN254CX.js
index 43bae9e..88f10a0 100644
--- a/examples/node/example_MPIN_TP_BN254CX.js
+++ b/examples/node/example_MPIN_TP_BN254CX.js
@@ -61,7 +61,7 @@ ctx.MPIN.RANDOM_GENERATE(rng, S);
console.log("M-Pin Master Secret s: 0x" + ctx.MPIN.bytestostring(S));
/* Create Client Identity */
-var IDstr = "[email protected]";
+var IDstr = "[email protected]";
var CLIENT_ID = ctx.MPIN.stringtobytes(IDstr);
HCID = ctx.MPIN.HASH_ID(sha, CLIENT_ID); /* Either Client or TA calculates
Hash(ID) - you decide! */
diff --git a/test/test_DVS.js b/test/test_DVS.js
index a564621..3f9eeea 100644
--- a/test/test_DVS.js
+++ b/test/test_DVS.js
@@ -39,7 +39,7 @@ pf_curves.forEach(function(curve) {
MPIN, EGS, EFS, G1S, G2S,
pin = 1234,
pin2 = 2345,
- IDstr = "[email protected]",
+ IDstr = "[email protected]",
message = "Message to sign",
S = [],
SST = [],
diff --git a/test/test_MPIN.js b/test/test_MPIN.js
index ae67c9b..308474c 100644
--- a/test/test_MPIN.js
+++ b/test/test_MPIN.js
@@ -87,7 +87,7 @@ pf_curves.forEach(function(curve) {
sha = ctx.ECP.HASH_TYPE,
- IDstr = "[email protected]",
+ IDstr = "[email protected]",
pin = 1234,
pin2 = 2345,
CLIENT_ID, date;