Public key verification issue in circuits #1644
Unanswered
yinzhenzhen
asked this question in
Q&A
Replies: 1 comment
-
|
Thank you for your interest in gnark. Short answers to your questions are below:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have two questions. First, regarding the example


examples/pubkeyhashing/pubkeyhashing_test.go, why does it use SHA256 to calculate the public key hash outside the circuit, but SHA2 is used inside the circuit, and why are these two hash values compared for equality?Second, I want to generate a signature outside the circuit and verify it inside the circuit. In the circuit, I want to directly use multiple fields concatenated as the original signature for verification. How can I achieve this? Are there any similar examples I can refer to? Below are the fields of my circuit; I want to concatenate all of these fields as the original signature text
msg.By the way, are there significant differences between the ECDSA and EDDSA algorithms in GNark, and which algorithm would you recommend?
Beta Was this translation helpful? Give feedback.
All reactions