bryce pfp
bryce
@bap
New modular /zk toolkit! ⚡ Use it to generate zkps from offchain attestations. The flow: - Sign/use offchain attestation - Generate proofs with /succinct SP1 - Verify with WASM - Attest verification result onchain (optional) Special thanks to @shivansheth & @whoisgautxm for contributing this!
1 reply
2 recasts
5 reactions

bryce pfp
bryce
@bap
Here's the flow: 1) Sign/provide a valid offfchain attestation - Structured attestations is created using EAS - Signed with EIP712 - Data stays offchain and private. - Signature is verifiable. 2) Generate ZK Proof (SP1) - Use SP1 zkvm to parse the EAS structure - Validates signature correctness and logic (hardcoded for demo) - SP1 program generates Groth16 or Plonk proofs - Output includes proof file + public inputs The repo's dob-program and dob-scripts handle the logic. 3) Verify in WASM (Browser or Node) - Load the compiled verifier - Provide proof + public inputs - JS script runs proof verification and checks logic 4) Optional: Attest verification result onchain - Submit the zk proof to a solidity verifier contract (groth16 verifier) - On success, call EAS to issue a new onchain attestation - Schema and data are customizable (isOver18 = true) - Gives you control over expiration/revocation/composability - No link to original offchain attestation
1 reply
1 recast
2 reactions