StarknetByExample icon indicating copy to clipboard operation
StarknetByExample copied to clipboard

Feat: SNARK proof verification

Open julio4 opened this issue 1 year ago • 6 comments

Description

Thanks to the amazing work of garaga it is now possible to verify SNARK proofs on Starknet. We want to show a use case of this with an example of a contract that rely on a deployed verifier to verify one proof and do something with the result.

An opening idea would be age verification where users can prove they are above a certain age without revealing their birth date.

Criteria:

  • You can use any predeployed verifier contracts such as risc0, or deploy your own verifier (groth16, noir) (no need to explain how to deploy the verifier)
  • Include an example of verifying a proof on testnet
  • Have a working example that leverage private inputs for privacy and potential public inputs

Resources:

ODHack

To be eligible for additional rewards, be sure to review and follow the ODHack Common Guidelines and Contributing Guidelines. Be sure to join the telegram group and introduce yourself.

julio4 avatar Nov 22 '24 05:11 julio4

Hi @julio4 please can I work on this issue

ShantelPeters avatar Nov 22 '24 06:11 ShantelPeters

Hi this seems like a really interesting issue, I'd love to work on it. I have experience with Cairo and Rust, and contributed to Kakarot-ssj

augustin-v avatar Nov 22 '24 06:11 augustin-v

Is it okay if I take this?

mimisavage avatar Nov 22 '24 07:11 mimisavage

pls, i would love to tackle this issue

blessingbytes avatar Nov 22 '24 08:11 blessingbytes

Can I work on this, please?

Supa-mega avatar Nov 22 '24 10:11 Supa-mega

Hi @julio4,

As you suggested different zk-snark proving schemes, do you think we could divide this issue in 2, and I could provide an example with a proving scheme different than the one the person already assigned is doing ? I think it could be interesting to have several examples showcasing how to use different proving schemes and for different use cases too

hudem1 avatar Nov 29 '24 10:11 hudem1