Comments (2)
Curves are created when they are needed and then they are available on the global, such as globalThis.curve_bn128
from snarkjs.
I use
console.log(globalThis)
and console shows
<ref *1> Object [global] {
global: [Circular *1],
queueMicrotask: [Function: queueMicrotask],
clearImmediate: [Function: clearImmediate],
setImmediate: [Function: setImmediate] {
[Symbol(nodejs.util.promisify.custom)]: [Getter]
},
structuredClone: [Getter/Setter],
clearInterval: [Function: clearInterval],
clearTimeout: [Function: clearTimeout],
setInterval: [Function: setInterval],
setTimeout: [Function: setTimeout] {
[Symbol(nodejs.util.promisify.custom)]: [Getter]
},
atob: [Getter/Setter],
btoa: [Getter/Setter],
performance: [Getter/Setter],
fetch: [AsyncFunction: fetch],
crypto: [Getter],
curve_bn128: null,
curve_bls12381: null
}
the curve_bn128 object is null.
from snarkjs.
Related Issues (20)
- snarkjs pot contribute with same file as input and ouput causes issue
- Using BLS12-381 curve to generate groth16 solidity verifier results in out of range error in solidity HOT 1
- RangeError: Too many elements passed to Promise.all HOT 2
- The javascript prover and verifier will succeed when using public inputs > field prime
- Zkeys fail to be verified right after generations with custom R1CS and witness HOT 1
- How to call `soliditycalldata` in ethereum smart contract runtime? HOT 1
- Proof valiadation not working with cirtcuit that works fine with circom tester HOT 1
- snarkjs.groth16.verify is not working if pubSignals is empty
- snarkjs.groth16.fullProve run locally fine but doesn't run correctly on cloud
- Where is generate_witness.json๏ผ HOT 1
- Generating just a witness in browser HOT 2
- is there a cpp implementation of trusted setup? js runs too slow for my circuits
- Vulnerability report received? HOT 2
- Getting 'Scalar size does not match' error when proving a simple circuit with addition or subtraction HOT 1
- Way to verify vkey for a circuit? HOT 3
- Troubleshooting Discrepancies: Validating Pre-Image Hashes in SnarkJS HOT 1
- `snarkjs` cannot be used with ES modules
- Not all available cores are used by taskmanager HOT 2
- Error generating a proof for Circom circuit HOT 2
- Why check public signals less than `q` instead of `r` in generated solidity code? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from snarkjs.