Skip to content

Conversation

@critesjosh
Copy link
Collaborator

  • Created essential files including package.json, TypeScript configuration, and Playwright configuration.
  • Added global styles and layout components for the application.
  • Implemented a proof generation component with state management and proof verification logic.
  • Included a README for setup and usage instructions.
  • Established a .gitignore to exclude unnecessary files and directories.

Description

Problem*

Resolves AztecProtocol/dev-rel#570

Summary*

Additional Context

PR Checklist*

  • I have tested the changes locally.
  • I have formatted the changes with Prettier and/or cargo fmt on default settings.

critesjosh and others added 9 commits June 13, 2025 15:55
- Created essential files including package.json, TypeScript configuration, and Playwright configuration.
- Added global styles and layout components for the application.
- Implemented a proof generation component with state management and proof verification logic.
- Included a README for setup and usage instructions.
- Established a .gitignore to exclude unnecessary files and directories.
* Fix Next.js Playwright tests

- Fix JSON import syntax in test file for ES modules compatibility
- Simplify API endpoint to avoid WASM loading issues in Next.js server environment
- Remove problematic server-side test that was causing failures
- Clean up Next.js configuration
- All browser tests now pass successfully

* Implement working server-side proof verification using Pages Router

- Add new Pages Router API endpoint at /api/verify for server-side verification
- Update Next.js configuration with proper WASM file tracing for Pages Router
- Add server-side test that successfully verifies proofs on the server
- Fix proof serialization/deserialization between client and server
- All tests now pass: 3 browser tests + 3 server-side tests = 6/6 ✅

Key improvements:
- Uses Pages Router (/pages/api/) instead of App Router for better WASM support
- Proper outputFileTracingIncludes configuration for @aztec/bb.js WASM files
- Robust proof format handling for serialized Uint8Array objects
- Demonstrates both client-side and server-side Noir proof verification

---------

Co-authored-by: openhands <[email protected]>
@socket-security
Copy link

socket-security bot commented Jul 1, 2025

No dependency changes detected. Learn more about Socket for GitHub.

👍 No dependency changes detected in pull request

@critesjosh critesjosh force-pushed the jc/web-starter-nextjs branch from e069d87 to 05d956e Compare July 1, 2025 18:21
@critesjosh critesjosh merged commit 89b410c into master Jul 3, 2025
3 checks passed
@critesjosh critesjosh deleted the jc/web-starter-nextjs branch July 3, 2025 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a web starter that uses next.js to noir-examples

3 participants