How to use the mcl-wasm.Fr 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 genSecret () {
  const s = new mcl.Fr()
  s.setByCSPRNG()
  return toBuffer(s)
}

mcl-wasm

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

BSD-3-Clause
Latest version published 8 months ago

Package Health Score

63 / 100
Full package analysis