Manta-Network / manta-rs

Rust Crates for the Manta Network Ecosystem

Home Page:https://github.com/Manta-Network

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add Explicit Balance Violation Test

bhgomes opened this issue · comments

The reason we need to do bounds checking on asset balances is to prevent overflowing balances to increase the total balance of the UTXO Set. The explicit test would be something like:

$a + b \mapsto a + b + p \mapsto (a + b + k) + (p - k)$

Such re-balance should be impossible for all $k \ne 0$.

This test cannot be really implemented until we can separate the proof generation phase into separate circuit compilation and witness assignment phases.