aztec-packages icon indicating copy to clipboard operation
aztec-packages copied to clipboard

feat: deriving serialization in protocol circuits

Open benesjan opened this issue 11 months ago โ€ข 2 comments

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.

benesjan avatar Feb 06 '25 10:02 benesjan

This stack of pull requests is managed by Graphite. Learn more about stacking.

benesjan avatar Feb 06 '25 10:02 benesjan

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%

github-actions[bot] avatar Feb 06 '25 10:02 github-actions[bot]

WHY BLOCKED? WEN MERGE?

Currently blocked by https://github.com/noir-lang/noir/issues/8545#issuecomment-2887599812

Issue fixed. Wen merge?

jfecher avatar Jun 26 '25 19:06 jfecher

Issue fixed. Wen merge?

@jfecher Just came back from vacation. Will try to resurrect this.

benesjan avatar Jul 01 '25 08:07 benesjan

Replaced by https://github.com/AztecProtocol/aztec-packages/pull/15415

benesjan avatar Jul 01 '25 11:07 benesjan