gnark solidity check filed due to ExportSolidity Public Input Size #893
-
Hi How to solove this problem? |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 7 replies
-
Hi, it is a known issue for Groth16 verifier when using Right now the workaround is to use PLONK verifier. |
Beta Was this translation helpful? Give feedback.
-
Hi,could you pls check the problem I reported here:
#893.
Thanks.
Ivo Kubjas ***@***.***> 于2023年10月30日周一 19:59写道:
… Hi, it is a known issue for Groth16 verifier when using api.Commit (which
we use for field emulation). See more here: #860
<#860>
Right now the workaround is to use PLONK verifier.
—
Reply to this email directly, view it on GitHub
<#893 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKW7XZDKSAU4QD5APUBD3ZDYB6JCVAVCNFSM6AAAAAA6SFXJG6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TIMRTGE3DS>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Sure, no problem.
Ivo Kubjas ***@***.***>于2023年11月8日 周三18:16写道:
… Could you post a minimal working example properly formatted? I could try
debugging if I can copy-paste the program, but won't have time to implement
the circuits, witness generation etc. Thanks.
—
Reply to this email directly, view it on GitHub
<#893 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKW7XZGQOREWY427JDBQPHLYDNLYJAVCNFSM6AAAAAA6SFXJG6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TKMBYGU3DA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I think you forked gnark,can I push a branch to your rep.And then you could
see my example?Is it ok?
Ivo Kubjas ***@***.***>于2023年11月8日 周三18:16写道:
… Could you post a minimal working example properly formatted? I could try
debugging if I can copy-paste the program, but won't have time to implement
the circuits, witness generation etc. Thanks.
—
Reply to this email directly, view it on GitHub
<#893 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKW7XZGQOREWY427JDBQPHLYDNLYJAVCNFSM6AAAAAA6SFXJG6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TKMBYGU3DA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
#907
Is it ok for you?
Zhengjun He ***@***.***> 于2023年11月8日周三 18:32写道:
… I think you forked gnark,can I push a branch to your rep.And then you
could see my example?Is it ok?
Ivo Kubjas ***@***.***>于2023年11月8日 周三18:16写道:
> Could you post a minimal working example properly formatted? I could try
> debugging if I can copy-paste the program, but won't have time to implement
> the circuits, witness generation etc. Thanks.
>
> —
> Reply to this email directly, view it on GitHub
> <#893 (reply in thread)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AKW7XZGQOREWY427JDBQPHLYDNLYJAVCNFSM6AAAAAA6SFXJG6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TKMBYGU3DA>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
Beta Was this translation helpful? Give feedback.
-
@zhengjunhe - I tested on my side and it works. Do you have the application Additionally, solidity checker requires that there are public inputs. In the SHA2 circuit in gnark all the inputs are private. Change: type sha2Circuit struct {
In []uints.U8
Expected [32]uints.U8
} to type sha2Circuit struct {
In []uints.U8 `gnark:",public"`
Expected [32]uints.U8
} Finally, to run the tests without having to modify the files, use the command: go test -timeout 10m -tags debug,solccheck,prover_checks -run ^TestSHA2$ github.com/consensys/gnark/std/hash/sha2 -v -count=1 Ultimately - PLONK verifier works as intended. The tests are meant for being used in continuous integration tests, not directly by the end users. |
Beta Was this translation helpful? Give feedback.
ok,thanks.