Skip to content

fix: remove is_most_voted_id field and implement calculate_output met… #74

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 4, 2025

Conversation

sheagrief
Copy link
Collaborator

@sheagrief sheagrief commented May 21, 2025

  • Fix AnonymousVotingCircuit. (remove MPC calculated value from circuit input)
  • Support serialize/deserialize in many places.

Copy link

Workflow Telemetry - Rust CI / Run Groth16 Binary

Workflow telemetry for commit a0d0d4f6478ea43e8c423a68a8c8d8f6d792512e
You can access workflow job details here

Step Trace

gantt
	title Run Groth16 Binary
	dateFormat x
	axisFormat %H:%M:%S
	Set up job : milestone, 1747824659000, 1747824661000
	Collect Workflow Telemetry : 1747824661000, 1747824661000
	Checkout code : 1747824661000, 1747824662000
	Setup Rust : 1747824662000, 1747824672000
	Cache dependencies : 1747824672000, 1747824673000
	Run groth16 binary : 1747824673000, 1747824765000
	Post Cache dependencies : 1747824765000, 1747824767000
	Post Setup Rust : 1747824767000, 1747824772000

Loading

CPU Metrics

chart_stacked_area_time_c867385b-9264-4ceb-9c30-a4be2429dd83

Memory Metrics

chart_stacked_area_time_c0711ce0-dd63-4586-a6e2-32ae39e595ab

IO Metrics

Read Write
Network I/O chart_line_time_7d30276c-4bfc-4154-838b-bf8e8c537727 chart_line_time_e31c1e68-4b02-41b3-9e8b-479af4e4693c
Disk I/O chart_line_time_56e08dbc-0f84-4e9b-8a90-8a32de315182 chart_line_time_897ee165-0517-49b0-827e-7d1adccfc3c6

Copy link

Workflow Telemetry - Rust CI / Run Online Binary

Workflow telemetry for commit a0d0d4f6478ea43e8c423a68a8c8d8f6d792512e
You can access workflow job details here

Step Trace

gantt
	title Run Online Binary
	dateFormat x
	axisFormat %H:%M:%S
	Set up job : milestone, 1747824658000, 1747824661000
	Collect Workflow Telemetry : 1747824661000, 1747824661000
	Checkout code : 1747824661000, 1747824662000
	Setup Rust : 1747824662000, 1747824673000
	Cache dependencies : 1747824673000, 1747824673000
	Copy input file : 1747824673000, 1747824673000
	Preprocess inputs : 1747824673000, 1747824733000
	Run online binary : 1747824733000, 1747824880000
	Post Cache dependencies : 1747824880000, 1747824883000
	Post Setup Rust : 1747824883000, 1747824890000

Loading

CPU Metrics

chart_stacked_area_time_2dfaf916-5b93-4c79-baed-6c30d609f1d7

Memory Metrics

chart_stacked_area_time_b9f3e93e-7648-443e-b0cf-9f889180a8a3

IO Metrics

Read Write
Network I/O chart_line_time_4b24b66f-b03c-4ae8-ad41-b030cc2c27d0 chart_line_time_22b29b8b-9ca5-4dfd-944a-a2d90e3e98c5
Disk I/O chart_line_time_d7fb3b16-1a6e-46e8-90fc-3c7fc4677b3b chart_line_time_c12e1016-3a38-4a3f-be4d-5f87cb4f0b43

Copy link

Workflow Telemetry - Rust CI / Tests

Workflow telemetry for commit a0d0d4f6478ea43e8c423a68a8c8d8f6d792512e
You can access workflow job details here

Step Trace

gantt
	title Tests
	dateFormat x
	axisFormat %H:%M:%S
	Set up job : milestone, 1747824659000, 1747824661000
	Collect Workflow Telemetry : 1747824661000, 1747824662000
	Checkout code : 1747824662000, 1747824663000
	Setup Rust : 1747824663000, 1747824673000
	Cache dependencies : 1747824673000, 1747824674000
	Run tests : 1747824674000, 1747824889000
	Post Cache dependencies : 1747824889000, 1747824891000
	Post Setup Rust : 1747824891000, 1747824897000

Loading

CPU Metrics

chart_stacked_area_time_eb971991-7a0a-4260-849e-3fd826fad8e9

Memory Metrics

chart_stacked_area_time_74fd7a43-5f9d-4834-a1b5-88d305c348aa

IO Metrics

Read Write
Network I/O chart_line_time_2198a589-b29a-4037-a817-15a983a4f0bf chart_line_time_5a4c1984-4b3f-4d78-9528-e928f971d736
Disk I/O chart_line_time_28eb0ec5-d693-48de-aeef-870dcb598d54 chart_line_time_d8e81e6a-d7f0-40ec-9150-de0e46298130

Copy link

Workflow Telemetry - Rust CI / Run Marlin Binary

Workflow telemetry for commit a0d0d4f6478ea43e8c423a68a8c8d8f6d792512e
You can access workflow job details here

Step Trace

gantt
	title Run Marlin Binary
	dateFormat x
	axisFormat %H:%M:%S
	Set up job : milestone, 1747824658000, 1747824660000
	Collect Workflow Telemetry : 1747824660000, 1747824661000
	Checkout code : 1747824661000, 1747824661000
	Setup Rust : 1747824661000, 1747824673000
	Cache dependencies : 1747824673000, 1747824674000
	Run marlin binary : 1747824674000, 1747825211000
	Post Cache dependencies : 1747825211000, 1747825213000
	Post Setup Rust : 1747825213000, 1747825219000
	Post Checkout code : 1747825219000, 1747825219000

Loading

CPU Metrics

chart_stacked_area_time_8cdfd153-b8b2-46ac-a23c-988fc95d155c

Memory Metrics

chart_stacked_area_time_a8961478-ee8c-45d1-9b82-4411e82d5e27

IO Metrics

Read Write
Network I/O chart_line_time_9c513891-83d0-4369-b784-15ac282ed91c chart_line_time_b7bfb423-2d91-4f90-9eb1-9bbc678f4c22
Disk I/O chart_line_time_2b9838c2-65ea-413d-8df1-76c378463319 chart_line_time_876ea011-47d4-4e7c-a814-fffa232e0b8f

Copy link

Workflow Telemetry - Rust CI / Run Werewolf Binary

Workflow telemetry for commit a0d0d4f6478ea43e8c423a68a8c8d8f6d792512e
You can access workflow job details here

Step Trace

gantt
	title Run Werewolf Binary
	dateFormat x
	axisFormat %H:%M:%S
	Set up job : milestone, 1747824658000, 1747824661000
	Collect Workflow Telemetry : 1747824661000, 1747824661000
	Checkout code : 1747824661000, 1747824662000
	Setup Rust : 1747824662000, 1747824673000
	Cache dependencies : 1747824673000, 1747824673000
	Run werewolf init : 1747824673000, 1747824787000
	Run werewolf night : 1747824787000, 1747824814000
	Run werewolf vote : 1747824814000, 1747824918000
	Run werewolf judgment : 1747824918000, 1747825135000
	Run werewolf role assignment : 1747825135000, 1747825368000
	Post Cache dependencies : 1747825368000, 1747825371000
	Post Setup Rust : 1747825371000, 1747825377000
	Post Checkout code : 1747825377000, 1747825378000

Loading

CPU Metrics

chart_stacked_area_time_f8904d3c-fff5-49eb-a7b7-22e9f6b8e6b4

Memory Metrics

chart_stacked_area_time_0d758741-64be-46f9-89b1-73716de32c5e

IO Metrics

Read Write
Network I/O chart_line_time_23cc0dc5-d7c5-4e9d-9911-6a21d6db02ae chart_line_time_32788220-77d4-44d6-81e0-994bb44fc746
Disk I/O chart_line_time_4d08fc6f-a015-4d2f-87cd-278e1d8f7db0 chart_line_time_ae995c15-dec8-4180-b165-307d15c3741a

Copy link

Workflow Telemetry - Rust CI / Run Groth16 Binary

Workflow telemetry for commit ffa32fa9e5a3d91132c4d93fe9362238459eb526
You can access workflow job details here

Step Trace

gantt
	title Run Groth16 Binary
	dateFormat x
	axisFormat %H:%M:%S
	Set up job : milestone, 1747825747000, 1747825749000
	Collect Workflow Telemetry : 1747825749000, 1747825749000
	Checkout code : 1747825749000, 1747825750000
	Setup Rust : 1747825750000, 1747825763000
	Cache dependencies : 1747825763000, 1747825764000
	Run groth16 binary : 1747825764000, 1747825808000
	Post Cache dependencies : 1747825808000, 1747825808000
	Post Setup Rust : 1747825808000, 1747825809000

Loading

CPU Metrics

chart_stacked_area_time_aea8243f-db18-4aa2-880d-55083b169912

Memory Metrics

chart_stacked_area_time_b706cc92-404a-4f06-87f3-6c7afaf623c7

IO Metrics

Read Write
Network I/O chart_line_time_b728ced6-38c2-4489-8572-97c9256f6019 chart_line_time_3873a4ce-65d6-4e27-bd41-f151538e5ab4
Disk I/O chart_line_time_08e61cd9-e139-4b0e-9623-af0071ecc8ec chart_line_time_8888a71b-786a-4160-a8ad-a1e34d6a65be

Copy link

Workflow Telemetry - Rust CI / Run Online Binary

Workflow telemetry for commit ffa32fa9e5a3d91132c4d93fe9362238459eb526
You can access workflow job details here

Step Trace

gantt
	title Run Online Binary
	dateFormat x
	axisFormat %H:%M:%S
	Set up job : milestone, 1747825748000, 1747825750000
	Collect Workflow Telemetry : 1747825750000, 1747825751000
	Checkout code : 1747825751000, 1747825752000
	Setup Rust : 1747825752000, 1747825768000
	Cache dependencies : 1747825768000, 1747825771000
	Copy input file : 1747825771000, 1747825771000
	Preprocess inputs : 1747825771000, 1747825809000
	Run online binary : 1747825809000, 1747825911000

Loading

CPU Metrics

chart_stacked_area_time_f766fbe0-0716-44b2-b38f-edb60d7f6325

Memory Metrics

chart_stacked_area_time_81ac9f66-24cb-4129-a7ac-10a82403e4b7

IO Metrics

Read Write
Network I/O chart_line_time_e73a62e8-29ef-4d7d-82f5-a8f288676569 chart_line_time_137a6bf4-fa90-43e1-a619-662973f9f7c4
Disk I/O chart_line_time_9357f8d4-c007-41da-a53e-f6267792eb41 chart_line_time_c8cc33a5-2a05-47b1-9315-5cd9eb6825cd

Copy link

Workflow Telemetry - Rust CI / Tests

Workflow telemetry for commit ffa32fa9e5a3d91132c4d93fe9362238459eb526
You can access workflow job details here

Step Trace

gantt
	title Tests
	dateFormat x
	axisFormat %H:%M:%S
	Set up job : milestone, 1747825747000, 1747825749000
	Collect Workflow Telemetry : 1747825749000, 1747825750000
	Checkout code : 1747825750000, 1747825750000
	Setup Rust : 1747825750000, 1747825763000
	Cache dependencies : 1747825763000, 1747825764000
	Run tests : 1747825764000, 1747825923000
	Post Cache dependencies : 1747825923000, 1747825923000
	Post Setup Rust : 1747825923000, 1747825923000

Loading

CPU Metrics

chart_stacked_area_time_7f992a68-5505-47a7-92ee-c3c2bed4bc06

Memory Metrics

chart_stacked_area_time_1f5717bb-d798-4c64-9d02-c99146717798

IO Metrics

Read Write
Network I/O chart_line_time_cdf6c3ff-5c63-48d3-913f-60ee2af55a91 chart_line_time_ae8a05da-3b6c-4cc0-8935-1b5767e082e5
Disk I/O chart_line_time_8878deb5-ef99-49a8-a43d-0d9b4148bd74 chart_line_time_a7550b50-750e-4237-a930-dcb5667e960d

Copy link

Workflow Telemetry - Rust CI / Run Marlin Binary

Workflow telemetry for commit ffa32fa9e5a3d91132c4d93fe9362238459eb526
You can access workflow job details here

Step Trace

gantt
	title Run Marlin Binary
	dateFormat x
	axisFormat %H:%M:%S
	Set up job : milestone, 1747825746000, 1747825748000
	Collect Workflow Telemetry : 1747825748000, 1747825748000
	Checkout code : 1747825748000, 1747825749000
	Setup Rust : 1747825749000, 1747825763000
	Cache dependencies : 1747825763000, 1747825764000
	Run marlin binary : 1747825764000, 1747826241000
	Post Cache dependencies : 1747826241000, 1747826242000
	Post Setup Rust : 1747826242000, 1747826242000

Loading

CPU Metrics

chart_stacked_area_time_286cef08-effb-4d3f-aa81-f39c088daa32

Memory Metrics

chart_stacked_area_time_ec859e0c-8e16-40b6-9963-77ddbb45fc3f

IO Metrics

Read Write
Network I/O chart_line_time_cceba539-3d22-4d61-9f6c-c4d8cf78623a chart_line_time_f73bb8bf-06d4-434f-9edf-0971a50007ef
Disk I/O chart_line_time_194a297a-31ca-4bce-af66-ec800dda07dc chart_line_time_2c895ce2-ce4f-46dd-a163-45799a40b4ef

Copy link

Workflow Telemetry - Rust CI / Run Werewolf Binary

Workflow telemetry for commit ffa32fa9e5a3d91132c4d93fe9362238459eb526
You can access workflow job details here

Step Trace

gantt
	title Run Werewolf Binary
	dateFormat x
	axisFormat %H:%M:%S
	Set up job : milestone, 1747825748000, 1747825750000
	Collect Workflow Telemetry : 1747825750000, 1747825751000
	Checkout code : 1747825751000, 1747825752000
	Setup Rust : 1747825752000, 1747825770000
	Cache dependencies : 1747825770000, 1747825772000
	Run werewolf init : 1747825772000, 1747825835000
	Run werewolf night : 1747825835000, 1747825861000
	Run werewolf vote : 1747825861000, 1747825965000
	Run werewolf judgment : 1747825965000, 1747826181000
	Run werewolf role assignment : 1747826181000, 1747826414000
	Post Cache dependencies : 1747826414000, 1747826415000

Loading

CPU Metrics

chart_stacked_area_time_ca5247e0-6407-438c-9587-f98a80ef8190

Memory Metrics

chart_stacked_area_time_19c88388-0dc1-4c51-bc78-c79f2af2d917

IO Metrics

Read Write
Network I/O chart_line_time_ee5fba7f-458c-44e2-95d3-b68b0c307735 chart_line_time_dcba090a-cdb3-43a4-828f-3447fd99a91f
Disk I/O chart_line_time_ec03787b-d05e-4633-82ba-a4954142a240 chart_line_time_348f5cac-6dd9-42e4-9d03-96ac9906d664

@sheagrief
Copy link
Collaborator Author

@taskooh Could you review this PR?

Copy link

github-actions bot commented Jun 4, 2025

Workflow Telemetry - Rust CI / Run Groth16 Binary

Workflow telemetry for commit ee50f5d186531750c658b46ed3ec0677c70cfc3b
You can access workflow job details here

Step Trace

gantt
	title Run Groth16 Binary
	dateFormat x
	axisFormat %H:%M:%S
	Set up job : milestone, 1749032947000, 1749032949000
	Collect Workflow Telemetry : 1749032949000, 1749032949000
	Checkout code : 1749032949000, 1749032950000
	Setup Rust : 1749032950000, 1749032952000
	Cache dependencies : 1749032952000, 1749032952000
	Run groth16 binary : 1749032952000, 1749033045000
	Post Cache dependencies : 1749033045000, 1749033047000
	Post Setup Rust : 1749033047000, 1749033053000

Loading

CPU Metrics

chart_stacked_area_time_0bba1177-8d9b-4229-b262-47070cebcb12

Memory Metrics

chart_stacked_area_time_3ce92e0d-541b-4a0e-879c-22560fc4102a

IO Metrics

Read Write
Network I/O chart_line_time_cd03ad1e-857d-42af-871a-7943c27cbabd chart_line_time_013295e1-a49f-41cc-a8b6-df1e2ee66b60
Disk I/O chart_line_time_ea742fb8-14e2-4304-a978-0b3bee52ca2b chart_line_time_8c50fc66-a0f8-4929-ba15-6296b49b542d

Copy link

github-actions bot commented Jun 4, 2025

Workflow Telemetry - Rust CI / Run Online Binary

Workflow telemetry for commit ee50f5d186531750c658b46ed3ec0677c70cfc3b
You can access workflow job details here

Step Trace

gantt
	title Run Online Binary
	dateFormat x
	axisFormat %H:%M:%S
	Set up job : milestone, 1749032947000, 1749032949000
	Collect Workflow Telemetry : 1749032949000, 1749032949000
	Checkout code : 1749032949000, 1749032950000
	Setup Rust : 1749032950000, 1749032951000
	Cache dependencies : 1749032951000, 1749032952000
	Copy input file : 1749032952000, 1749032952000
	Preprocess inputs : 1749032952000, 1749033011000
	Run online binary : crit, 1749033011000, 1749033096000
	Post Cache dependencies : done, 1749033096000, 1749033096000

Loading

CPU Metrics

chart_stacked_area_time_82ee9e51-b4d4-45ed-9eb2-aa10d4305165

Memory Metrics

chart_stacked_area_time_28b38bb3-98ec-40ed-9952-e2d54a7220a2

IO Metrics

Read Write
Network I/O chart_line_time_49f90a46-624b-410c-ab6f-fa6d8a2c9dc9 chart_line_time_b80c6590-3f40-4970-ac31-55d112db2ae2
Disk I/O chart_line_time_71760121-167a-4d45-b51e-c29e7abcfc5b chart_line_time_11a9d56b-a2c7-4d23-b083-cd76b79d54b1

Copy link

github-actions bot commented Jun 4, 2025

Workflow Telemetry - Rust CI / Tests

Workflow telemetry for commit ee50f5d186531750c658b46ed3ec0677c70cfc3b
You can access workflow job details here

Step Trace

gantt
	title Tests
	dateFormat x
	axisFormat %H:%M:%S
	Set up job : milestone, 1749032947000, 1749032951000
	Collect Workflow Telemetry : 1749032951000, 1749032951000
	Checkout code : 1749032951000, 1749032952000
	Setup Rust : 1749032952000, 1749032955000
	Cache dependencies : 1749032955000, 1749032955000
	Run tests : 1749032955000, 1749033169000
	Post Cache dependencies : 1749033169000, 1749033172000
	Post Setup Rust : 1749033172000, 1749033178000
	Post Checkout code : 1749033178000, 1749033178000

Loading

CPU Metrics

chart_stacked_area_time_be285731-f155-493b-8f81-4243ae83859c

Memory Metrics

chart_stacked_area_time_e85046df-9465-4897-81b5-e5137c9fc982

IO Metrics

Read Write
Network I/O chart_line_time_b253316f-0612-4867-9f2d-244a36a8ee7c chart_line_time_7fdba179-8a1d-46fc-a319-ea3e483a35d0
Disk I/O chart_line_time_6fa05cc5-aa57-4086-8f47-de0a9c8dd3ba chart_line_time_248d351b-367c-48b3-8262-31c66a9ebfde

Copy link

github-actions bot commented Jun 4, 2025

Workflow Telemetry - Rust CI / Run Marlin Binary

Workflow telemetry for commit ee50f5d186531750c658b46ed3ec0677c70cfc3b
You can access workflow job details here

Step Trace

gantt
	title Run Marlin Binary
	dateFormat x
	axisFormat %H:%M:%S
	Set up job : milestone, 1749032947000, 1749032948000
	Collect Workflow Telemetry : 1749032948000, 1749032948000
	Checkout code : 1749032948000, 1749032949000
	Setup Rust : 1749032949000, 1749032952000
	Cache dependencies : 1749032952000, 1749032952000
	Run marlin binary : 1749032952000, 1749033483000
	Post Cache dependencies : 1749033483000, 1749033485000

Loading

CPU Metrics

chart_stacked_area_time_b77b8b04-b81b-4d92-af0c-ef622f902681

Memory Metrics

chart_stacked_area_time_ee70b3bb-df96-4e6c-931c-1d56500bb2a7

IO Metrics

Read Write
Network I/O chart_line_time_fa58f6a8-2536-4e44-8cc6-35bdd6b6c573 chart_line_time_a0424b03-fa5d-4741-95c0-dcad5b1124df
Disk I/O chart_line_time_8cdc44d6-111d-46af-94a6-163909d5e0f0 chart_line_time_0753aebd-e7c4-4cf3-95df-86de782541be

Copy link

github-actions bot commented Jun 4, 2025

Workflow Telemetry - Rust CI / Run Werewolf Binary

Workflow telemetry for commit ee50f5d186531750c658b46ed3ec0677c70cfc3b
You can access workflow job details here

Step Trace

gantt
	title Run Werewolf Binary
	dateFormat x
	axisFormat %H:%M:%S
	Set up job : milestone, 1749032946000, 1749032948000
	Collect Workflow Telemetry : 1749032948000, 1749032948000
	Checkout code : 1749032948000, 1749032949000
	Setup Rust : 1749032949000, 1749032950000
	Cache dependencies : 1749032950000, 1749032951000
	Run werewolf init : 1749032951000, 1749033069000
	Run werewolf night : 1749033069000, 1749033095000
	Run werewolf vote : 1749033095000, 1749033201000
	Run werewolf judgment : 1749033201000, 1749033418000
	Run werewolf role assignment : 1749033418000, 1749033649000
	Post Cache dependencies : 1749033649000, 1749033652000

Loading

CPU Metrics

chart_stacked_area_time_5633b21a-a106-4cb2-9b9a-0183c2cb6851

Memory Metrics

chart_stacked_area_time_ed8a54a4-80ad-45d5-abeb-379b0b6aa947

IO Metrics

Read Write
Network I/O chart_line_time_f9bea3a8-7765-48b7-8d86-8327e391b27e chart_line_time_d8bfdd78-ab80-4fcf-ba75-223a5a8d1b2d
Disk I/O chart_line_time_2793b249-afa1-461c-a6c5-e806bde638a3 chart_line_time_51c86e4f-d0b8-4657-9ad5-0f87b38a21ab

Copy link

github-actions bot commented Jun 4, 2025

Workflow Telemetry - Rust CI / Run Groth16 Binary

Workflow telemetry for commit eb1cd1d46e736b75976b833d708bfa2d0680e633
You can access workflow job details here

Step Trace

gantt
	title Run Groth16 Binary
	dateFormat x
	axisFormat %H:%M:%S
	Set up job : milestone, 1749034526000, 1749034529000
	Collect Workflow Telemetry : 1749034529000, 1749034529000
	Checkout code : 1749034529000, 1749034530000
	Setup Rust : 1749034530000, 1749034536000
	Cache dependencies : 1749034536000, 1749034538000
	Run groth16 binary : 1749034538000, 1749034588000
	Post Cache dependencies : 1749034588000, 1749034588000
	Post Setup Rust : 1749034588000, 1749034588000
	Post Checkout code : 1749034588000, 1749034588000

Loading

CPU Metrics

chart_stacked_area_time_de66dcb2-c15f-41c0-93df-2fb8ad26f483

Memory Metrics

chart_stacked_area_time_7924ab0c-58e3-4290-9abd-dd867540e4fb

IO Metrics

Read Write
Network I/O chart_line_time_c3b6e7c6-2822-4516-8760-32d3978801f3 chart_line_time_da82b6e2-0552-4e42-a156-3a3bb5df5bc9
Disk I/O chart_line_time_62abb38a-d04e-416b-b42b-6d03ab3f4c3a chart_line_time_459ac574-0e63-4e02-8df9-3bbcf77b11b0

Copy link

github-actions bot commented Jun 4, 2025

Workflow Telemetry - Rust CI / Run Online Binary

Workflow telemetry for commit eb1cd1d46e736b75976b833d708bfa2d0680e633
You can access workflow job details here

Step Trace

gantt
	title Run Online Binary
	dateFormat x
	axisFormat %H:%M:%S
	Set up job : milestone, 1749034526000, 1749034528000
	Collect Workflow Telemetry : 1749034528000, 1749034528000
	Checkout code : 1749034528000, 1749034529000
	Setup Rust : 1749034529000, 1749034533000
	Cache dependencies : 1749034533000, 1749034534000
	Copy input file : 1749034534000, 1749034534000
	Preprocess inputs : 1749034534000, 1749034573000
	Run online binary : 1749034573000, 1749034675000
	Post Cache dependencies : 1749034675000, 1749034675000
	Post Setup Rust : 1749034675000, 1749034675000
	Post Checkout code : 1749034675000, 1749034676000

Loading

CPU Metrics

chart_stacked_area_time_8bb0f96f-a35b-4eca-a430-f265ad6e7ebe

Memory Metrics

chart_stacked_area_time_bccad0bf-3f08-4672-8b3c-ac4480fb7bd3

IO Metrics

Read Write
Network I/O chart_line_time_a82496ae-5d2c-46fb-bc32-8ac8980b5c62 chart_line_time_f5174acf-210c-44a5-bab4-6a41bd7906b6
Disk I/O chart_line_time_7867c9ca-9a9a-48fe-a6be-254f26b4c25f chart_line_time_829b8c04-ee32-4d09-90af-718b7cd91291

Copy link

github-actions bot commented Jun 4, 2025

Workflow Telemetry - Rust CI / Tests

Workflow telemetry for commit eb1cd1d46e736b75976b833d708bfa2d0680e633
You can access workflow job details here

Step Trace

gantt
	title Tests
	dateFormat x
	axisFormat %H:%M:%S
	Set up job : milestone, 1749034526000, 1749034529000
	Collect Workflow Telemetry : 1749034529000, 1749034529000
	Checkout code : 1749034529000, 1749034530000
	Setup Rust : 1749034530000, 1749034535000
	Cache dependencies : 1749034535000, 1749034536000
	Run tests : 1749034536000, 1749034706000
	Post Cache dependencies : 1749034706000, 1749034707000
	Post Setup Rust : 1749034707000, 1749034707000

Loading

CPU Metrics

chart_stacked_area_time_fc133534-4f10-47bc-a19c-f68d82032ddd

Memory Metrics

chart_stacked_area_time_89359572-4035-437e-94ab-a7cf02523628

IO Metrics

Read Write
Network I/O chart_line_time_dbca883f-6630-4d86-a152-de4c00d293dc chart_line_time_603ac76b-10d1-4fe4-aeb4-22c7b8d7543f
Disk I/O chart_line_time_65d4c308-0c0c-4985-9c60-dfc90aa826dc chart_line_time_4c004540-234d-4902-b7de-6d0f50ce7a96

Copy link

github-actions bot commented Jun 4, 2025

Workflow Telemetry - Rust CI / Run Marlin Binary

Workflow telemetry for commit eb1cd1d46e736b75976b833d708bfa2d0680e633
You can access workflow job details here

Step Trace

gantt
	title Run Marlin Binary
	dateFormat x
	axisFormat %H:%M:%S
	Set up job : milestone, 1749034527000, 1749034529000
	Collect Workflow Telemetry : 1749034529000, 1749034529000
	Checkout code : 1749034529000, 1749034531000
	Setup Rust : 1749034531000, 1749034536000
	Cache dependencies : 1749034536000, 1749034538000
	Run marlin binary : 1749034538000, 1749035016000

Loading

CPU Metrics

chart_stacked_area_time_a75be69c-7ac8-46b4-88de-938d2f8c694a

Memory Metrics

chart_stacked_area_time_b61b1d2c-a5ad-4d26-a9c4-6eab121ee743

IO Metrics

Read Write
Network I/O chart_line_time_365455b0-7c8c-4da4-ae22-e1fbd329f059 chart_line_time_01265ecd-ff56-4a60-afd5-429d3cde23f0
Disk I/O chart_line_time_c251f214-81ed-4fee-84fe-8b0d524e93e4 chart_line_time_31ffe956-ad81-409c-a680-84f80f09c4b6

Copy link

github-actions bot commented Jun 4, 2025

Workflow Telemetry - Rust CI / Run Werewolf Binary

Workflow telemetry for commit eb1cd1d46e736b75976b833d708bfa2d0680e633
You can access workflow job details here

Step Trace

gantt
	title Run Werewolf Binary
	dateFormat x
	axisFormat %H:%M:%S
	Set up job : milestone, 1749034526000, 1749034528000
	Collect Workflow Telemetry : 1749034528000, 1749034528000
	Checkout code : 1749034528000, 1749034529000
	Setup Rust : 1749034529000, 1749034532000
	Cache dependencies : 1749034532000, 1749034533000
	Run werewolf init : 1749034533000, 1749034597000
	Run werewolf night : 1749034597000, 1749034624000
	Run werewolf vote : 1749034624000, 1749034728000
	Run werewolf judgment : 1749034728000, 1749034943000
	Run werewolf role assignment : 1749034943000, 1749035183000
	Post Cache dependencies : 1749035183000, 1749035183000

Loading

CPU Metrics

chart_stacked_area_time_38eb9e96-66f3-4725-92f1-741608b4ab1d

Memory Metrics

chart_stacked_area_time_0ef7141c-be25-40a5-97a4-52977e6a03a1

IO Metrics

Read Write
Network I/O chart_line_time_58fe65d2-c6ac-4991-8d73-91c841000db7 chart_line_time_3b1244fe-6c04-47ba-9909-31522f23157e
Disk I/O chart_line_time_0a1b2f35-49c7-49ce-891d-5b0f3da4c0f1 chart_line_time_7c730300-f44b-49c7-8027-d2beb6139e5a

Copy link
Member

@taskooh taskooh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR全体をレビューしました。


変更概要

  • AnonymousVotingCircuit から is_most_voted_id フィールドを削除し、投票結果は calculate_output メソッドで動的に計算する形にリファクタリングされています。
  • 各種構造体・トレイトに serde::{Serialize, Deserialize} を追加し、シリアライズ/デシリアライズ対応が強化されています。
  • 依存クレートに serde を追加し、既存の is_most_voted_id フィールド利用箇所を calculate_output() 呼び出しに置換しています。
  • 不要となったシリアライズ/デシリアライズ処理の削除、テスト・バイナリ・サンプルコードの該当部分も修正されています。

技術的観点

  • 冗長なフィールドの削除によりデータの一貫性が向上しています。
  • シリアライズ対応の拡充で今後のデータ保存・通信の拡張性が高まりました。
  • サンプルやテストも含めて is_most_voted_id の削除に追従しており、一貫性があります。

気になる点・確認事項

  • calculate_output のロジックが従来の is_most_voted_id の値と完全に一致するか、テストでカバーされているか要確認です。
  • serde の derive追加により、不要なフィールドまでシリアライズされていないか(特に秘密情報)ご注意ください。
  • 既存の外部インターフェース(APIやファイルフォーマット)に互換性問題がないかも念のためご確認ください。

CI・テスト状況

  • CI(Groth16/Marlin/Online/Werewolfバイナリ実行、テスト)は全てパスしています。
  • 追加・修正されたテストコードの内容も問題ありません。

総評

  • リファクタリングとして妥当で、保守性・拡張性が向上する良い変更です。
  • 追加のテストや、シリアライズ対象フィールドの見直し(必要なら #[serde(skip)] など)を検討しても良いでしょう。

Approveします。

@sheagrief sheagrief merged commit 351c9bf into main Jun 4, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants