bls-eth-wasm
Advanced tools
Comparing version 1.0.6 to 1.1.0
{ | ||
"name": "bls-eth-wasm", | ||
"version": "1.0.6", | ||
"version": "1.1.0", | ||
"description": "BLS signature for Node.js by WebAssembly for Ethereum 2.0", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -18,2 +18,4 @@ /** | ||
exports.ETH_MODE_DRAFT_07 = 3 | ||
exports.MAP_TO_MODE_ORIGINAL = 0 | ||
exports.MAP_TO_MODE_HASH_TO_CURVE = 5 // IRTF | ||
@@ -205,2 +207,4 @@ function blsSetup(exports, curveType) { | ||
exports.getFieldOrder = _wrapGetStr(mod._blsGetFieldOrder) | ||
exports.setDstG1 = _wrapInput(mod._mclBnG1_setDst, 0) | ||
exports.setDstG2 = _wrapInput(mod._mclBnG2_setDst, 0) | ||
@@ -681,2 +685,5 @@ exports.blsIdSetDecStr = _wrapInput(mod._blsIdSetDecStr, 1) | ||
} | ||
exports.setMapToMode = (mode) => { | ||
if (mod._mclBn_setMapToMode(mode) != 0) throw new Error(`bad setMapToMode ${mode}`) | ||
} | ||
// make setter check the correctness of the order if doVerify | ||
@@ -683,0 +690,0 @@ exports.verifySignatureOrder = (doVerify) => { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
1370094
4552
0