Comparing version 0.0.3 to 0.0.4
26
mcl.js
@@ -236,10 +236,10 @@ "use strict"; | ||
} | ||
fromHexStr(s) { | ||
deserializeHexStr(s) { | ||
this.deserialize(exports.fromHexStr(s)) | ||
} | ||
toHexStr() { | ||
serializeToHexStr() { | ||
return exports.toHexStr(this.serialize()) | ||
} | ||
dump(msg = '') { | ||
console.log(msg + this.toHexStr()) | ||
console.log(msg + this.serializeToHexStr()) | ||
} | ||
@@ -304,2 +304,7 @@ clear() { | ||
} | ||
exports.deserializeHexStrToFr = function(s) { | ||
r = new exports.Fr() | ||
r.deserializeHexStr(s) | ||
return r | ||
} | ||
exports.G1 = class extends Common { | ||
@@ -331,2 +336,7 @@ constructor() { | ||
} | ||
exports.deserializeHexStrToG1 = function(s) { | ||
r = new exports.G1() | ||
r.deserializeHexStr(s) | ||
return r | ||
} | ||
exports.G2 = class extends Common { | ||
@@ -358,2 +368,7 @@ constructor() { | ||
} | ||
exports.deserializeHexStrToG2 = function(s) { | ||
r = new exports.G2() | ||
r.deserializeHexStr(s) | ||
return r | ||
} | ||
exports.GT = class extends Common { | ||
@@ -388,2 +403,7 @@ constructor() { | ||
} | ||
exports.deserializeHexStrToGT = function(s) { | ||
r = new exports.GT() | ||
r.deserializeHexStr(s) | ||
return r | ||
} | ||
exports.neg = function(x) { | ||
@@ -390,0 +410,0 @@ let f = null |
{ | ||
"name": "mcl-wasm", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "mcl ; A generic and fast pairing-based cryptography library for Node.js by WebAssembly", | ||
@@ -5,0 +5,0 @@ "main": "mcl.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
669417
1454