Skip to content

Generalized predicates Integration and SDK packaging fixes#76

Merged
0xVikasRushi merged 1 commit intofeat/generalized-predicates-circuitsfrom
fix/spartan2-intergration
Apr 13, 2026
Merged

Generalized predicates Integration and SDK packaging fixes#76
0xVikasRushi merged 1 commit intofeat/generalized-predicates-circuitsfrom
fix/spartan2-intergration

Conversation

@0xVikasRushi
Copy link
Copy Markdown
Collaborator

Description

This PR introduces two main changes:

  1. Generalized predicates — Replaces the hardcoded age-check with a configurable predicate system. The Show circuit now evaluates atomic comparisons (LE, GE, EQ) combined via a postfix boolean expression stack machine (AND, OR, NOT). Updated across circom circuits, Rust prover, and TypeScript SDK.

  2. SDK packaging fixes, Ships wasm/pkg in npm package, adds test fixtures and vitest global setup, skips tests gracefully when heavy artifacts (keys, WASM module) are missing

Checklist

  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@0xVikasRushi 0xVikasRushi merged commit 1aea382 into feat/generalized-predicates-circuits Apr 13, 2026
1 check failed
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.

1 participant