hermeznetwork / circuits

Implements hermez network zk-Snarks circuits
GNU Affero General Public License v3.0
55 stars 21 forks source link

upgrade state root #46

Closed krlosMata closed 3 years ago

krlosMata commented 3 years ago

Summary

circuit to upgrade the state root of the rollup with a decentralized mechanism. this circuit will be linked to its smart contract function to assure fully and correct state root upgrade

Rationale

All accounts must be updated to their new account fields. Basically, two new fields would be added in each leaf: exitBalance = 0 and accumulatedHash = 0 Circuit should do the following:

Notes

krlosMata commented 3 years ago

implemented in https://github.com/hermeznetwork/circuits/pull/47