-
Notifications
You must be signed in to change notification settings - Fork 5
/
TallyPartialDecryptionTestVector.json
123 lines (123 loc) · 11.5 KB
/
TallyPartialDecryptionTestVector.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
{
"desc": "Test tally partial decryption",
"joint_public_key": "65AF22E05A85729F80214DF5C1DE5121C108B543A3A288EC1D5BC7D929AF104E3E2445BFF0A48E665E087AD7824A45E751D36934094F7E08B7FBFCEDF41BC0B37C335A223E0179510F5A2643D54878B3B211BFD5B1CD93D1BAD41F7DB3E91F22EA880B6FF452FA4354BCCEE4AE7EEDBDB3F92F06F074419D1BBAE1CC3965251367E8C85406DBB2A99CD10933770AE71165054C98054CBFC495639139814D8EA6FD24F4D108504BB295EC2FAD7D086DC30BB1FA78B55E192427C057843A7A943904248771B2836F308776C3E23AD64590FBFB87EDB18B27FEE0265E2A7CECFFB8F807E34031D3FDBD7EADBC0D61FF171267CECAFC398B11D3A039D5767A4DC48A2EAD555D445DC762C56ABE82F09800B191BA1FC863BDC3426575B724DC93B8F11FC8CE771C87235AAEC37CDD6420180691CF3E5EE04E82C8125A19033D01C9C81B4293DC1EB2EA3ED0A7B942495BA40D39A7B506FE376E367EC986FCF87FECF5A1BBEFE0C2DD01AEC44A3E202419C78F7E9B444F12B1C5BA8FB65E467F216E489C51CEB959EFFEB73269FE625F10D44DF6779FD09F05B5C5C8F0861DBDE5FB86A0B07A3FA1454BAD4EA5C934855477FC4F91C464C4D98BDE6E90A63CADEBC8A9D4D15B63F5D699FBC479F131FC5B2DCF2618C8B712F09780CF5381A235992301A36789FB116438D42E56BC4AB59D8992CF97CBC603605B47AF4CF943C901361A",
"extended_base_hash": "E7F51AEE22ED0D8C04E2A7DF406103E6A6BE62B60E0F58E8B94ECD89E0B291DF",
"trustees": [
{
"id": "guardian1",
"xCoordinate": 1,
"polynomial_coefficients": [
"2FEF3593A8FEE0A6B1320A39E33CA95CEB5C83B66F13F6AE199001639385EE6B",
"CA260FE7850142435E8A43852280AB5AB6D85435E0AF333C6687F9F84F8A8055",
"6CEB9E769DA1575623AD9614BE9D6D43F740EACD62E552A73FBEAFED7FBFF8D5"
],
"keyShare": "199C693C9C58622B75C18E48B533A4993C7E5AA6000F18E3EA09FE1B8F20AA1C",
"missing": false
},
{
"id": "guardian2",
"xCoordinate": 2,
"polynomial_coefficients": [
"41045AA89BA2B31E4AE161DCB78A2B6559173B4C09D659DE5C3557266F8CF116",
"9335A6260F02A0DCCD82CAA3B78A686FEDEE5090D83CAC24C49A87E1AF9C7350",
"14BF80713A7E3D1843CC383755C824A6841155B8E3B9775669EED8DB79EA3458"
],
"keyShare": "FA9B6B44549D069BFB9A1B540881A3915683B26C2532767DE7A8EF59915AF003",
"missing": true
},
{
"id": "guardian3",
"xCoordinate": 3,
"polynomial_coefficients": [
"ECE5E9366309C91F85F2DDD3AE8128500A1682F916BBC792CBDEC4573827AFB3",
"B846A3E335D236648FB9DA955C798388FFECA7099A22B78A3E869D1EEE4CF2E0",
"FF1C03641E3047F24608A9BDCEECA84C060FF53A074F090ACBCBDB03795D7C46"
],
"keyShare": "14020C206DC5CCA20E5A506BFEAAAA9589E08E6A661A5082B9396C9B074A349E",
"missing": true
},
{
"id": "guardian4",
"xCoordinate": 4,
"polynomial_coefficients": [
"132B8C969D4C826BFACA5F5FBB78B09AED46451C670A1F957EB87BFFC560D0C1",
"76C139D85D18588B76B6283A2880DB924F4EC5A1A86E0C0E560B803FE736E211",
"9B6CAD1E3A22346A18F15BFC6E1B49CF8B498C5BBFF46B2CF47F623546D2D3B0"
],
"keyShare": "65D04BD0E7D2B43DAE022D9097AEB9A5D694EEA0C2C6A6F25EBB75DFF0EE75B6",
"missing": true
}
],
"encrypted_tally": {
"tally_id": "makeBallotAggregationTestVector",
"contests": [
{
"contest_id": "onlyContest",
"sequence_order": 0,
"selections": [
{
"selection_id": "selection1",
"sequence_order": 0,
"encrypted_vote": {
"pad": "36D3D92D4C634080F2B9ABA225DBC96748950BEAF12A271A2712F64420550306B303734E082BA11DF134344ECCBBF191344249786B07CEC27AA55B12C8A559E3FC9FE6D63589CC4B6F47F4BC402ECC12C2140598A1724DACEB689042D306B58F64A0C572C4EE4674A26BD2A6BB51049AC145D888B136649B3403260199ED59400F640243741692C92DB3D78ECB0B174CCC56D5CFB1B12DFEE6C4EDF96798DDE1C2242C3D73E6680585EA05236C45AA288183B2ABD874466745666B94955754C3AE0A7A9D2E65967E2AFFC2974FE3F6E10A227B6129C1DA3F4BF90A062A9A60F8068A4FC87FC13719E094AF058A5D6B5E31B73DD80EA9E916D0F0818AFE146789B335991F326CE9052CD51BBCBAF6495E07C96364C858631CA67F5CF9BC995BE53FBFD1786922078F0650538AD2ABD0577635CFF222905E62F734BAC473D63C4EB2E7107E6EF40EB50B169862FF8BC83211C8F6F50B7D2E980B25E03BEDB6716FCD0DB8E146003C7854D98A3955D62111526B2082BB5E51972CB71F84F9B9A71A01947995C9D8A4E782D7E14837AF5E25F6560122D61EA4EA9350D813876B90E93A71A9780004571825D5C83C1F604B995CB44311CD4B79679C37E8D00371CD16B79AA3A0A05BCF7ABFD1C6455A430C3D0E3119ED4F469BA95C7E346AA7BBBCC72B985F8A41CF7ECEDEC9C294F62544064FFD2FB1E17FB68FA7B173B9B07871A0",
"data": "332CA48505D909406D6E624D0BAC6B434502F8D717EC16238E3DE35A5D07907FF0B8FC6DD003862A6256A5121B4619977537F61B3EDDD4F8B59F73E542255B1CC3AF58B753799167833D800A42DF7D64A5E668EC6100D0ADEDD09A29D31E67FF190F3A534E3B04F30A00359C056A4C2E41798F9F406336933B50D7B1707B57C1EB08A6E6094531447B156CF65FB5E022D93F49F2E1F29687B19CC1926ABB5C8ABA07C6148415EEB3B73D1085C43625DD913F56C2DBF6ADFB3998238FEDEB6C96E5100EBD6A769F8AE9B686660B6CF04A7F199AE10F3AF364DD3FD9FDDC5A681B623D8E18CD7BCBF9E134BB3D60E6169F9EE103A10EEA380F0EF1595B12D998B10844E68C78AD470568AE0F48DA92978DAAEC68F6437D16FC5E4168655E0C329F59C7123B206463FDF8F066B9CEAB78F4E4206845DE8C69D10EF62E01FB978EA41E7C720C950B164160E43DDAC4E10F5F0B72FC8BBF1ED59CA331B4ED10DE3BEC1F48A0CB32030970A6135B26DDC0DA9A9721BC619D08EA36A07B2857CCB0BDC64A4BF9F8BCF293B7A491E680158827DEE3BE318CBD7A1710AFE3BEA450DC9B0D763ED0D6F926CB3CBCCBC088805195BE38998B61108EF5FB1AB8478BE0431CBD3CC95D84B8F514CC24CFD028EDB7E98BE188921F4A91789D06DF1C473376392C67FCE4B779E4B0AEEC8F9AD537C1D7D15D419DFF01B2766FC13C1AE5F2229B2D"
}
},
{
"selection_id": "selection2",
"sequence_order": 1,
"encrypted_vote": {
"pad": "5D220C874679FEC29140797A21B91CF4672AAAA3192A9F42B2C3F73B194A0C4E37D6B821AB40B2C3F49B062A3CDA3B974B5E9E95CAD54F63E50BE9240976F1BC6733750C77AC8466010FC0FCE5DA7EB0AC13AF17747A199A8AFD9AF4E8829808419F821532FF191A9DFA7C306E387E200C4B67F6327BC4AB024D045FDF2CEEE2D35031C43C4443EE7303D676350E4E543053DCD6C4B38E0FB1C40EF0E5E99D85A19538A8BEE34101241971AF914BFEA9558FA3513D7A3E1BBB12DC53B968F73A4360E8E6EE63D71014819A1BCCA86A6CFFE466F9EE069D62862A98A6F4484A5AA0D6C601C3B30E141634EFC450C103A5476674BC59B6FA9767447751F15C009514E7931C9F25C9094B3A0980D6B36838DED6AAF76F69F33F72D744C56B11DE716825E0BC9FAAB4D47BF4FAA495D644BB1F1A37D50F358200CA23A48EEC61E7F5531C622AA696217EAF35ED08808A9D45939E5A09780C23D258194029DBAAD5ECF2CAB36C73DE1D82C8D757023B3516D7DDB1E2EB2FA91005CE5CA5A79F2D79C81DF99F7E74E112D9AF1E6CA1F02C4F9A56F46D98DE63219A9E58CB331B154FF711D082168599EF017E4F6CBCBCD25690D34335B1CA84FECD16D769008210932AEDE8F9C9E1CAA6C703BC5F90D6559B5B062AC0E09EBE5DAC439ACAF653248CFAF87AE590E8806E38BA35770E0C3383E93DC37DFDCA23AE3BBF0D8F9DD1403D20",
"data": "D6551D38A2600B3CEABBA80D1FE29560CB0E08271D9079EC306DE82FDE9685DFE0566B4DE39661E36409F379216523036A8D5B0358C3703A79902398BA9705D893F9846F2B2ADDF6C183579A719FD1A3427C5DD624B78602206DF856EDB42A72B5D88FC38EDE8619FB73FCA23890D436856182166FA31C3538D09E0B682627A83ABDCBE2B944B768403ADA0E4F12D4DBA45139B46AAD9EE4B516C50CB8452F46DEF751C770C25836DFD9B3FEA28AC8275124982561735F9ED468400148E99787ED1114CC5CDC12497BA31AA66816137A6F2F18823D422CD23821622475945EA9322F446FF3604EC18FEAE2CDB5AC4E05535FB24458928A8A6A567821568D644FA3EEFCCFD5AE05E5A7BED8E646EE027CD4CFCCEBEBD3B53BA575EC340441DAB158C5A1F093C74B64DE6113280BB3B45C84B37180E7C621F0994DEEC34BED3D2B7ADD8955A0CB6CD9E1E06A7843078FCE5BBDFE7981371C770B9CA51407586C1353E9E4D71B317FD1502D93C2C60EAA3B9BD87C1555735DE160047E2B31214D11DAB413D0C99B491B383FFBCBC37E263729072AABD05A76E0895D703579AC790857CA9E79FDD51D5460EAE4B1249E331B4F9644F2D53EA7D1AB5AD37B724BEC2DEF48C4A390BEA87E22A2EE1E5C954DCFFCDAC72473173FF9F20A24EA4E927FD10FF4227D4556A292CA417A6246DAC26296C6CE6FC91E43A24A5916011F2B4427"
}
},
{
"selection_id": "selection3",
"sequence_order": 2,
"encrypted_vote": {
"pad": "74E6DBDDB592F8290F3D57C0D0CD018F70F84CFC214527F431C0BAB6F54BC5A55304D0328FAD40F17F564CED8FB67F670026DE2CD2199AF67D677AA99C38457C1A4DB425ACE0170B9E6F4AD4F7057E1B550931C91A060C3D710BD05A0A9FC2710EA443A8CEB5DE33E81E435E6CF2BE8B080EC2E12E2E7ED85984511CC0C41DDE0E94E84DAE5F4423B3C6265F9BBE85C231D94F1BD7504BA39AFE9A0D6C39DAA25AC134746F077CFB4354A11C2B112DBD2C518A7968C8555D349826B01172733A2C6C18886C852B0735EA4E68A145DE02482CE22D3396DA3B91441B68AD1F7095190CABF72DAACF18FCEA2E8C889877066678358B3405309A254D169FCBCEB6125A9B5F5DB897461407E88E46B2B84B28BEF84A3560B073C3280AC4F0A28773D249A968C4372ABEDBEA54DC155C9AC9806E7A51F681712E3AB274DC53CE981163AEDB71CA2026AE9CE1A4AB1F800E3F7596FFC83A9F5C0B03211379F7369456FD6C2BBBD5FADD6C5460E5F989F66936AF6FCAD66101C2AB9AC4B9E9D9B74D2B0F9B16951B7A18C6C437E4C36595C76762CDB6894E44F2EEEB11192A3E02C37821DF09E80B3FC5C254FCFED6B04A64359C859E30378C2A2EC70894C56C67AD04F1CB183F41C8152D27ED0B102BD26AD5669BB8CF0AD8970C99A401768F3166B5CE82A6F08DA54680BEC6605A3485AEB50DC8E3780BB852D49E2FA84A732ADC54BC",
"data": "9E09784DDCDDFAA7D7CD55F5DD710C34CBCE084E4F0D4DF8C2B1A196E473A65BFAF818285C4C6C9CE038872115C414C1023C4E645F649514B2214F516D244BC2747F430FD4C900B325DDE7B2E43A37187447386471FCBC0CDE5AE4DEAD00AB9C26F45CF82D4D2862138C48480DB869F7C491D76003F4F74345C2723479BEFE33171AF728F8F084B88291DA84111D982E60706E85065E4EBCE84EF05A3216245E9422BD7FEB2C720E21387B4819F5514E98F77807D139FFAEDFBD74CF01A09E10E855D21F0B1D1D205F4F8EA03D71F755700ED14DD53B6B8A8059BCE7C57C2BADF14308FF8988BAF4682DE293CC1CAE28157433C07AE3729EC8E22A38EB8DE40E17C4D9CD62FF24FF517E04A6DC69688197BD4F652E8FEB301D7B9D181D872E142F90499480B2325A0DEFD1E54B738247C22FD966183F9AB5D5941C7A724384D592E9A587B9B9C018955C56113CFFA0260A0C319F48B904723E237C1760FA7E8781A58944D842F65E31DBF42ABBAD5A1744AC0768E451E3BE6EDCDE124770DBCDD92D90C5418EE7AD773517A70DB9979C258B30CDF4A08D5B14423409D4E7CC9DC46539E08139FAB9AE0DF37016F4B0D5B002CA0F4A48594026D636BE8E8CEB1F4C81C66C55E640C087206D8F18F7C5839B49A8C6E2597ECAA42CE321491B2DAE01A19D546DDFB21D3021888575EC0650672EF2DF9A1D8FA308548FB70A69EC88"
}
}
]
}
],
"cast_ballot_ids": [
"id1734063200",
"id1185116721",
"id1871774325",
"id-1532183861",
"id2133894660",
"id1357551828",
"id-381504742",
"id-1172351375",
"id-1981301342",
"id504123216",
"id-813217540"
]
},
"expected_decrypted_tally": {
"contests": [
{
"contestId": "onlyContest",
"selections": [
{
"selectionId": "selection1",
"task": "Decrypt tally for this selection, eq 65",
"expected_decrypted_vote": 5
},
{
"selectionId": "selection2",
"task": "Decrypt tally for this selection, eq 65",
"expected_decrypted_vote": 3
},
{
"selectionId": "selection3",
"task": "Decrypt tally for this selection, eq 65",
"expected_decrypted_vote": 1
}
]
}
]
}
}