feat: add income range mode - #455
Conversation
|
@Goodness-0x Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
|
The income range mode is implemented well (threshold mode preserved, plus min/max band with income >= min and income <= max, and mode-selection tests). Two things before merge. First, changing income_proof/src/main.nr changes the circuit and therefore its verification key, but there is no fixtures/income/vk update in this PR. Once merged that would fail main's Circuit compile artifact-freshness check (the committed VK would no longer match the circuit). Please regenerate and commit the income vk/proof/public_inputs from the updated circuit. Second, CI has not run on this branch yet (no checks reported) - push so it runs and confirm everything is green, especially the circuit job. Also confirm the witness/SDK path passes min and max through end to end. |
Summary
Adds an inclusive income band mode to the income proof while keeping the existing threshold mode intact.
What changed
Why
This enables tiered eligibility checks such as subsidy or bracket-based income gates without revealing the exact value.
Testing
Closes #414