@multiversx/sdk-bls-wasm
Advanced tools
Comparing version 0.3.3 to 0.3.4
16
bls.js
(generator => { | ||
if (typeof window === 'object') { | ||
const exports = {} | ||
window.bls = generator(exports, false) | ||
if (typeof module !== 'undefined' && module.exports) { | ||
module.exports = generator(exports, false) | ||
} else { | ||
window.bls = generator(exports, false) | ||
} | ||
} else { | ||
@@ -181,3 +186,3 @@ generator(exports, true) | ||
// change curveType | ||
exports.blsInit = (curveType = exports.ethMode ? exports.BLS12_381 : exports.BN254) => { | ||
exports.blsInit = (curveType = (exports.ethMode ? exports.BLS12_381 : exports.BN254)) => { | ||
const r = mod._blsInit(curveType, MCLBN_COMPILED_TIME_VAR) | ||
@@ -667,3 +672,8 @@ if (r) throw ('blsInit err ' + r) | ||
.then(() => { | ||
exports.mod = Module() // eslint-disable-line | ||
if (typeof module !== 'undefined' && module.exports) { | ||
exports.mod = require('./bls_c')() | ||
} else { | ||
exports.mod = Module() // eslint-disable-line | ||
} | ||
exports.mod.cryptoGetRandomValues = _cryptoGetRandomValues | ||
@@ -670,0 +680,0 @@ exports.mod.onRuntimeInitialized = () => { |
{ | ||
"name": "@multiversx/sdk-bls-wasm", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"description": "BLS signature for Node.js by WebAssembly", | ||
@@ -5,0 +5,0 @@ "main": "bls.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
409782
986