Comments (4)
As far as I remember "is_satisfied" doesn't verify that gate that is tied to public input allocation. In any case you can just put a breakpoint inside a "is_satisfied" function and see a gate number or relation that fails. You can also do the same in verification function and check whether polynomial equality on random point fails (which I would guess), or something more exotic
from bellman.
I see, I don't have time to dig into it now so here are some other programs I tried which fail:
// fails in `log2_floor`
def main() {
return;
}
// fails in `z_2.add_assign_scaled` inside `second_step_from_first_step`
def main(private field a, private field b) {
assert(a == b);
return;
}
// fails in `z_2.add_assign_scaled` inside `second_step_from_first_step`
def main(private field a, private field b) {
assert(a * a == b);
return;
}
// proof generated but not verified
def main(private field a, private field b) {
assert(a * a == b);
assert(a * a == b);
return;
}
I am not using any public variable except ~one
in any of these.
from bellman.
Debugging the program, all I can see is that the very last verification check fails, not sure how to go from there.
@shamatar Could you point me to a minimal working example going from a Circuit
to a verified Plonk proof? Then I'd take it from there.
from bellman.
Hey George.
There is a test, cargo test --release -- --nocapture test_prove_trivial_circuit
that passes on my machine. I can see potential problems as:
- you are using
better_cs
subfolder implementation that is legacy and is more about the time when we transitioned form R1CS into Plonk arithmetization using transpiler. It works well in zkSync1 (actually usingbeta
branch), but it's anyway legacy - if you are using non-multithreaded implementation then it may contain problems by itself. Such case was never interesting for us, and while implementations are written such they should not depend on number of worker cores, it was never a focus point
I'm neglecting any trivial cases like if you used different trusted setups for VK and proving. The test above generates trusted setup as powers of 42
, but it's not important for that test
from bellman.
Related Issues (19)
- How to do succinct unhelped verification in Sonic? HOT 1
- Singlecore mode panics because of zero sized chunk
- Backwards compatibility HOT 1
- Using pairing_ce verison 0.21 will cause pinic when handle GroupDecodingError? HOT 5
- Testing multicore HOT 1
- Enforce for Transpiler in PLONK system HOT 4
- performance(PLONK): prove_by_steps vs prove HOT 5
- when can beta branch be considered stable HOT 1
- Plonk proofs are invalid if bellman is compiled with the wasm feature HOT 6
- Wrong size in commit_fe? HOT 1
- Implement GM17 proof system HOT 1
- Question about plonk proof input fields HOT 4
- what does field STATE_WIDTH and CAN_ACCESS_NEXT_TRACE_STEP mean of PlonkConstraintSystemParams? HOT 9
- how to read snarkjs generated proof.json file?
- Left shift overflow when calculating `max_degree`
- Implement SONIC proof system
- Make multiexp Module Public HOT 1
- Unified byte-level frontend-backend interface HOT 5
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 bellman.