Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@multiversx/sdk-bls-wasm

Package Overview
Dependencies
Maintainers
9
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@multiversx/sdk-bls-wasm - npm Package Compare versions

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 = () => {

2

package.json
{
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc