How to use the mcl-wasm.G2 function in mcl-wasm

To help you get started, we’ve selected a few mcl-wasm examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ChainSafe / lodestar / old / index.js View on Github external
function mclSignature(signature) {
  assert.equal(signature.length, 96, 'signature must be 96 bytes long')
  return fromBuffer(mcl.G2, signature)
}

mcl-wasm

mcl ; A portable and fast pairing-based cryptography library for Node.js by WebAssembly

BSD-3-Clause
Latest version published 2 months ago

Package Health Score

77 / 100
Full package analysis