Replies: 2 comments 21 replies
-
Can you give the circuit type definition ( This can theoretically be reduced, but it depends on your use-case. E.g. you can provide signature as a private input (statement "there is a valid signature for message by public key") or you can provide the public key as an address (but then have to hash public key into address in-circuit). |
Beta Was this translation helpful? Give feedback.
-
Hi sir, @ivokub I mark here as public: I add one line here: assert.ProverSucceeded(&circuit, &witness, test.WithCurves(ecc.BN254), test.WithBackends(backend.GROTH16)) to this part: https://github.com/ConsenSys/gnark/blob/master/std/signature/ecdsa/ecdsa_test.go#L68 However, it will occur the following problems: panic: runtime error: slice bounds out of range [:768] with capacity 704 [recovered]
panic: runtime error: slice bounds out of range [:768] with capacity 704 |
Beta Was this translation helpful? Give feedback.
-
Hi sir, @ivokub
I want to verify ECDSA circuit with solidity, then I try the above method, why it has 21 public inputs?
Beta Was this translation helpful? Give feedback.
All reactions