Conversation
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThis PR introduces server-side OPRF ("oprf-raw") redaction support, upgrades to Ethers v6 with updated contract typings, adds Stwo ZK engine support, migrates to ESLint flat config, and updates TypeScript/build configurations to support new build scripts and output targets. Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant Provider as HTTP Provider
participant Server
participant AVS as AVS Contract
Client->>Client: Apply oprf-raw redaction<br/>(skip actual redaction,<br/>record markers)
Client->>Server: Send claim with<br/>oprfRawMarkers
Server->>Server: decryptTranscript()<br/>process oprf-raw markers<br/>handle cross-block overshoots
Server->>Server: computeOPRFRaw()<br/>for each marker:<br/>derive nullifiers
Server->>Server: assertValidProviderTranscript()<br/>apply replacements<br/>originalText → nullifierText
Server->>AVS: createNewClaimRequest()<br/>(with redacted params)
AVS->>Server: emit NewTaskCreated
Server->>Client: Return task with<br/>redacted transcript
sequenceDiagram
participant Client
participant BrowserRuntime as Browser Runtime
participant Stwo as Stwo WASM
BrowserRuntime->>BrowserRuntime: Import s2circuits from<br/>window.s2circuits
Client->>BrowserRuntime: generateWitness()<br/>(ZKProofInput)
BrowserRuntime->>BrowserRuntime: Serialize witness to JSON<br/>with base64 fields
Client->>BrowserRuntime: groth16Prove()<br/>(witness, algorithm)
BrowserRuntime->>Stwo: Ensure WASM initialized<br/>fetch s2circuits_bg.wasm
Stwo->>BrowserRuntime: Return proof JSON
BrowserRuntime->>Client: Return proof
Client->>BrowserRuntime: groth16Verify()<br/>(proof, publicSignals)
BrowserRuntime->>Stwo: Call verify_*_proof
Stwo->>BrowserRuntime: Return valid: bool
BrowserRuntime->>Client: Return boolean result
Estimated code review effort🎯 5 (Critical) | ⏱️ ~120 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary by CodeRabbit
Release Notes
New Features
Improvements
Chores