feat: deriving serialization in protocol circuits
Until now using #[derive(Deserialize, Serialize, ...)] in noir protocol circuits didn't work because we had an issue with ordering in the types crate.
WHY BLOCKED? WEN MERGE?
Currently blocked by https://github.com/noir-lang/noir/issues/8545#issuecomment-2887599812
Note: If this PR gets merged this PR from Alvaro can most likely be closed.
-
#11041
-
#11774
๐ (View in Graphite)
-
master
This stack of pull requests is managed by Graphite. Learn more about stacking.
Changes to public function bytecode sizes
Generated at commit: 22a230ffbc8ab76ee9e2807a6b302c0a6dfec184, compared to commit: 4f6b76f2a19808b3786bf7a7dee96a126c770d69
๐งพ Summary (100% most significant diffs)
| Program | Bytecode size in bytes (+/-) | % |
|---|---|---|
| Lending::init | +190 โ | +6.96% |
| AMM::constructor | +190 โ | +6.11% |
| AppSubscription::constructor | +190 โ | +5.30% |
| FPC::constructor | +145 โ | +4.85% |
| Crowdfunding::init | +145 โ | +4.64% |
| AppSubscription::public_dispatch | +190 โ | +4.02% |
| Crowdfunding::public_dispatch | +145 โ | +3.27% |
| CardGame::on_game_joined | +145 โ | +2.76% |
| CardGame::on_card_played | +145 โ | +2.26% |
| CardGame::start_game | +145 โ | +2.06% |
| CardGame::on_cards_claimed | +145 โ | +1.87% |
| FPC::public_dispatch | +145 โ | +1.39% |
| CardGame::public_dispatch | +145 โ | +0.95% |
| AMM::public_dispatch | +190 โ | +0.72% |
| Lending::public_dispatch | +190 โ | +0.69% |
| EasyPrivateVoting::public_dispatch | +5 โ | +0.10% |
Full diff report ๐
| Program | Bytecode size in bytes (+/-) | % |
|---|---|---|
| Lending::init | 2,919ย (+190) | +6.96% |
| AMM::constructor | 3,301ย (+190) | +6.11% |
| AppSubscription::constructor | 3,777ย (+190) | +5.30% |
| FPC::constructor | 3,137ย (+145) | +4.85% |
| Crowdfunding::init | 3,268ย (+145) | +4.64% |
| AppSubscription::public_dispatch | 4,921ย (+190) | +4.02% |
| Crowdfunding::public_dispatch | 4,575ย (+145) | +3.27% |
| CardGame::on_game_joined | 5,390ย (+145) | +2.76% |
| CardGame::on_card_played | 6,560ย (+145) | +2.26% |
| CardGame::start_game | 7,193ย (+145) | +2.06% |
| CardGame::on_cards_claimed | 7,900ย (+145) | +1.87% |
| FPC::public_dispatch | 10,554ย (+145) | +1.39% |
| CardGame::public_dispatch | 15,379ย (+145) | +0.95% |
| AMM::public_dispatch | 26,656ย (+190) | +0.72% |
| Lending::public_dispatch | 27,910ย (+190) | +0.69% |
| EasyPrivateVoting::public_dispatch | 4,836ย (+5) | +0.10% |
WHY BLOCKED? WEN MERGE?
Currently blocked by https://github.com/noir-lang/noir/issues/8545#issuecomment-2887599812
Issue fixed. Wen merge?
Issue fixed. Wen merge?
@jfecher Just came back from vacation. Will try to resurrect this.
Replaced by https://github.com/AztecProtocol/aztec-packages/pull/15415