-
Notifications
You must be signed in to change notification settings - Fork 5
/
TallyDecryptionTestVector.json
112 lines (112 loc) · 11 KB
/
TallyDecryptionTestVector.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
{
"desc": "Test tally partial decryption",
"joint_public_key": "7796F3514FAF68EECED9CE45F4344E62E09CEBC91AACD167AEF78E70550A79BEF66AB37673B0D5A7E76346A83EF0C9639D83803F25A1319317390C607A48F2C7B532DE825E756D629EA916FB9167BCD2DC996CD5DB10DA1443CC501AB1FF53C8FCDC4FA35CB740576E69BDB2B713537C3CE4943233A0AE883B614166294ED9E66AE2B792A12246A00B4844E205B2CAE98F53CE0E48D8555FCDA5A4EE6089BB09F5F430EB48D9C49FA55E474B495CB773A9A2BBBCD98AC4F3C4E8321DC7EE0E800775567EBB41A58F47F66B7B8C7E7995D859479240E1D59BDAFF3BBDEE3179A05F2BF12131325CF3B4C2B7F4C6C1E55713E0F3A15C1D8AD3668461DB1E16DE956F1765C650CFB434F64825CB58CDA49016246541328913671F066D108E7C39660B8F5419E7A13D6EF893D17CAB80CAAA739DEDCDE560D719ACA76B42A3F4365D1C9BC9006D16DC2965A85D1F5E094B149231406B44CB33445B5FE19219D070ACD833CDEE10B43581C8F966F34990730179CF1E43CA987E5292E235A8763E534CDB4FE98EFE472227AD81CF8A743BE3899833703F9CD97C0587C38DC060805C78DB92AA06AF25B59DF9A22D064F25140DBA095FEA356BA1807798F4F0CF432679B961032FEA40DD47CA52F4067422065F714475B48E55BC4A46E0633973C702AE0F6C20972BC880387E8E67CC894DC98962EBD204B34DD2D019567AA537B1A06C",
"extended_base_hash": "62F2FB526DD6698E9BC3A7BBA7F668F09CEB5B4961FB5FA98EB5031E1A4A77EE",
"trustees": [
{
"id": "guardian1",
"xCoordinate": 1,
"polynomial_coefficients": [
"41F51ABAAE037FC55E0869D7D05609A2BE38BB136F72934629450F86CC1D63DC",
"6EA930D67D2CE4A829BFACE07ED46357904C183C784E97E96864B0702E2A592C",
"B00AD05C534CBF0E2920450908494936F490E5FFB6DA8AB6E004DC8805F86334"
],
"keyShare": "C4CE7267F2E2BBE57A44C85D1BD014C19C11750FBAC834C5B6B0B4C7A04841EA",
"missing": true
},
{
"id": "guardian2",
"xCoordinate": 2,
"polynomial_coefficients": [
"6E7861A6457133A5B3DE4C0CAFF03CA032F33AD311DFC8543ADA1E02D13C79F8",
"07C52EB7465E73C5EE22B5812B949B491BFA57F3BCB2BD3088F9F8B6EA4CE181",
"D65BBF289FE8B0241F3D553B530EBCB0EC62E6238AA3390155FED9256539C836"
],
"keyShare": "412E3D614E734B281B2A8EA258AB49EABCEAC71C3DC0273742C933A1CBEF66C2",
"missing": true
},
{
"id": "guardian3",
"xCoordinate": 3,
"polynomial_coefficients": [
"77CE38148CDC05F268FB1B5E909B5E528E7141B1F667DDFC49CA23468DF2ED70",
"363DD7E13A8763BC96BF2D22C78F0F0CEDFB42FC6E17AA73D5C02D5F012E6423",
"697FF6FE8149D72B0863CD513D9E5C96A13EBE275E7737E90BA4D7C3F023AA35"
],
"keyShare": "9D5B1561930267255D932412C7734410E2292DBE00A210EB5232CD5EAE42390F",
"missing": true
}
],
"encrypted_tally": {
"tally_id": "makeBallotAggregationTestVector",
"contests": [
{
"contest_id": "onlyContest",
"sequence_order": 0,
"selections": [
{
"selection_id": "selection1",
"sequence_order": 0,
"encrypted_vote": {
"pad": "19DD574933A5BC65AEA9AB4FD7C27E51AF1C859988AE6A6C3C57CC26CA33ED8AE5E839CABB6C656D4D098212D45AA4BF3CFCE09A8D01556202463AFEC4D6FD1BB30796242510F58BA48EAEC35B5AEDEE4C3A27BEB337DAC3313720942FFA37C4DA1F4C079986005008D7F217A7F29AFE052FA38615F9CD46EF795350A187A08377442880866D663428F12C8E6DBBB58FC16C2E4EF7F72D1A78DECA618EC3AE146791466CFC328885C6268AFA253EB24DFE34EE59952F71FD6779990800B77C17A27E7BF8D1F7D94CD2A5DEB1786B7E61561E43AB52FDF792EB493EAD1ECB6919FFB0211F5F4BB98645B3986DB9A3F4ED5B3161948B8289D5C794DD1D0A1B4A3E907BCEBBAFA7879FDE650589F60CA5DF83A4F24E5C5922CB19493E44664277A7B5DBB8B1C4837110A2557FF0F6EB4A2AC2B875C0F870554DF338A7D94E0DE72E0EF68CE98853E58B466C0A0624A7C5943A017B9451D03B44E78FB2F9E3D20AF0814BEE2DF0FCEEC4159E0E2B28FFE61A6969E905928D3226913914CE458CF578B1DA27745F5DF975A51205A4754FBC5A9E5E67B54A23F670CADB5B5BEC82E7EBB37CAFEFF9E1EB2D23895F704DB0BB828E16875DB6589ECD86298A3C19F23521D64BA2A5ED3C2F0965A97121B8F60B98EDE082AC0EA4204766CB05526164581DB2D0EBC20B44D72FD09BEA5BC4127F4A9ACA1AD0646D8DC1545D089A9CB10B59",
"data": "BC07BFE72FDD5CE9F4ECBA21F690C943833F5F993B4313BB7CEE4F7075C7D3EC95A29B53C8353FD2D85155CF36AD17518CF2891AD488D5586AB559798A9AE2ADEE40EB416535217769CD1B1A2C3E825F78D576EDE3C572A8C66AC630B37B9F259C481BFFEA8911D475623AF9264FC925E4E532C2068D6AB5EB4617A68E4E99CC73A122D572943BBE96A3430754D47FC41C37D0B889705EB136DFA572DBEAB35E63E8422B76EB4C8DDCE1AFD516A828D213213196FC48AA6E87E5EEF19007D08381A648ED29AF77512F4E12EC35A6BD5B6C548176E668DD1C4E7665AF2A36187A002307017BF7D779C609AB659CB74CAE1A7F6BA23B21CA189A218F29D4074649F563750029238F0EFFFD676B373BC4304031089F98C4A5E5C270D24DBAE5D482E6D3BFC2F6D74F055EB2FB4D3A837EF7673B82A033771324E7C1B175C980FA71169E919ED19FB41927319F5DCC7ADFFEC8584CC2D530264E1091812713107C051E28EE561BAEB10F50C39FAB2428EB7242716BEE8CC930E858C831989622273615BDE0B378200B08C0F2E2FAFC67BED293AF0F9F38B53BDA0669E3261DED9C46AEAE11B603DCC86D76789D825DCAD6609B61BA6A1BE882E6393B57DAC1A7D1769FE76FC514A4B9A9CCE40B3445FC54C0F9EAF2BF293B833432D19E9CB9D7180AFA084D1019E06A7DB14BAF01E5F0620954D379BDAA7C5B056CEE7128BA5BF83D"
}
},
{
"selection_id": "selection2",
"sequence_order": 1,
"encrypted_vote": {
"pad": "DBC8C71A3A2114717EA1D8145D7CD3BD7535BEEB907D796B24BC32021915FA351866C99800F5D4331662A5D7B2A7230E3CBF89149341209DC51EB00BD17B175EB0D1ABFCE5642E565DA3DAC218CAAE0FA3D5659373488EA8FA090D55D448765E2B399B1DA34DA47C56EB4997A59D2F6A6C30EF68B37D9B2EBCDB414D0C52C51BE3F3DD9E5DBC91D8771A41927683BE43AC891A117D98E748E3C37E550653E738628DED7DB3E9B224AB357277251451A3CD735A0535DEE8E7B060A14DF8E4070E50C4F112700CA5B877FE38F0107B1E62E9A363629F8F29FF6EA2631D77D7E174B33481A07E297378233CB80FBF0F929F7D6C7B0CC46EC80D943A3BF24992D998DD2B86204E108C11A4FED7ADA1FFF00033261171A6A420879B969C7AF32C4762CC5240962A7BB4F354A6A59DC0CB8A841A74485546989FB2DC6D45270E2874D6267DEC442E1CCF5451178C7546FD8C90A16E9AA06D1A3623E50940DC15179477FB5088461FE62F02A3E4821B19C18A904D7A3A7AA400497CD0FFE3E4E85BE1E480DDF7735D38595D88D6083194F250092C1F855D170DADA9BB50FE583FA30C73AC46D639EF9557C3079F019E02E67A5EFFEB020A16434466635A299C540E9E32120B990135433955BD228081386E35916E0452877DD559C4FE1657D27BA687AB129A13D020BD742B2930A13E7E1591FA32E6D33A625B29354F3CA604077C6278",
"data": "BC5B0F99CB48D190BD6D3A9277B9C8D04497E08DAB5B6C2DB2429BDA59708D2360D5D5384B55E327A48D45B0929DB405D3867B9F5F66C04391B12C339F435772ED5CB5E3D8BAD1070CCD89D0CA869F867CD5E81D88F0ABA77F0A22B0C5E7C6668D644DD7865688FE2455F35789E204C5F0770C296C56C85E6B63A364D1D196D70E85558D6037A78C1E4C6D29954D115F09BE8D0C95702B3BC38732E81403FD2730963FB154037916A5C28662FE6ACC1F7FD9C6049F95F4117D859AF0FD169655E7A373262F0831D2F9E69B23C9FE517F85DAC30F41616C8D487DEC3F6758F3C3F1C5D80F97805603ADA17147AE94655BEFE283E97199692D38DD6B4EC815280502843C44B8D3CA313E1E5EE009B495A3B5749640C93B5649BD6E249E48D5F4F749F357CC3FF9ED6047B431F23A0C6E45F07DA2D47F79CB7781F4EE2C492478DB75D1F0506F23725F98A73674C997B90CF379DDDEECD8D35A83B9CA979E554699FF15FA041B3C690F1CE3BF5994D39B4FB92424C25CB02CA3396BD689C8AEFBDB92BF8C1BDC13011A7E3411C080298831C0593FE1BA5DD2F71A5F9BDDB1D866341238D4352E3E8C791161C7C3FFF0BBF392316CB534D653ACFEF9E3CC50B59B0DE79A80377C21F0F824D545F613365F8E0F207478120B9D96CA9518B305977DDB969991326EF2C4D576F37C4F9404927EC16B96CDAE92333303955C955E9D1611"
}
},
{
"selection_id": "selection3",
"sequence_order": 2,
"encrypted_vote": {
"pad": "413FA32B54327F2450465CE76F0EEBCD8336B0EE20BA8A63AAC54908F4321363FBFA2DBAEB3A8B5A2324A2F277C7D0AF69AA878926E86B4D4F26F498B370F1FB74897491CD5858D8E00361E123092EF1887F2D43BCF618781749EA29D87B37AC1105CF79A341F5B91232A78440346AC9E972BD25361541E7B1A38A6E7765FD345DC172D5C609DE45FDBE9044EABB7A966A740AED762809B355A1DE3BB87824715ABA31284D61C9B07FB939E858C848C5A6F3875FC8DE80AA6D952386B12EB5BBC56D2FB205E8FCF937B66FCD5D2AE4DFD21E0348C9474358220136F9B3D180B441B80EAC4B755C5924DDD9A975E8142B6441E32E267D3A73C7B3BBA8BD63500E8A8636F7F36F151B2756E5A0F8886C80171B50AF439B53934B96C671EAEA911BBF67B7DEE6C40A62BABC44AAF3124A6BCD9652862FCDA616EECF7A2F62BEFAFC33B84B4E158FC3B8BADEB08C3E722E85C3EBFB11C009F2C71FCD148F7CE5D5643B6759494F1B4836D03CC7FBB55F88EA016CE112BB186B56A81477AC17C16852C31402AF6E0A8B2CFB7AEA486297F107467CC332C7DAF00B4190459797E8C4AEC3EE69D49222F9D4EDADEE04D189999E56AC320093C5CA3C960AB83B36AF2FF08B1EF33B638EB4A71C8333B5007AFEE07EAF7C5D4579F251F716D4DCBA8E8AC93DED955D6F7B62AFAB9C81B9E04D7FC3A970322BB4376F9135F5FFF483F57079",
"data": "FF6EB6AB9FDB4BF1781A05998F6BAC110AED7A1F1097B4D6E022AAEFE5973C25B5FBD46BD25A566D4B6904AC7B5C58EFE461B96B73F8154989D97D14701E5B55DA4347AFC55B012F78DAD758824A5F6AFAB6B81C805873B08445A4EE7B2E0FED1B8BFF4CBC6C887940C1736B4C6D8B11242CD38E7FF5987009E5B85AF17C452DF88E47E653136EB12850B1036F0B66101B61126897125415CDC5DF64974AE86FC0ED929F23D180C2C70442F89ABB2B5130C411970E226C3B0FC053277E0351086C607C7CFE24199C2E1ABC503817BCFD295AB0B8BDE472FF3EA87BAE045CFBCC0981804D9100A9A07CF4E24F93866AEA1213D1FDDE15E6C62512B2E1C56F5AAF18113DF601D81382E1961A7FA34EEF94440C4F796E759CF189ED2B80347619B196F152F358E975EC4945399EE81AF994EA9D9EE7B1C4DA7642A5684ECE0E987DB2922222E2BC18F391F434625793E9191E3E640FF28D9F4439A450967443A89FEE9DDEBCDC239717B46838E7E3A8813CAD10DEE2A464A898A8BE2ACDC1CF953CB0C3366B9C2257CC5F3D42BE216BF467E0DB7231BD2B6DAE4CB0BE8212D55F7FD5F16433FFFBAB3F10366C1D06997DF247874145AF1B5A5F5C1875897B816776C2C9A09C03FFC17BA6B0EAEAFBB8D3C51844AF8166AF4DA56C7D9045C082BBFE1F2954B21491D4B4C327763346570B9091787D2EB6873968F00982E551F5B60A"
}
}
]
}
],
"cast_ballot_ids": [
"id-156511338",
"id-225959022",
"id1408636162",
"id697149365",
"id329687959",
"id-1200253282",
"id-1369897759",
"id-1422468502",
"id727188433",
"id234340317",
"id411494542"
]
},
"expected_decrypted_tally": {
"contests": [
{
"contestId": "onlyContest",
"selections": [
{
"selectionId": "selection1",
"task": "Decrypt tally for this selection, eq 65",
"expected_decrypted_vote": 3
},
{
"selectionId": "selection2",
"task": "Decrypt tally for this selection, eq 65",
"expected_decrypted_vote": 4
},
{
"selectionId": "selection3",
"task": "Decrypt tally for this selection, eq 65",
"expected_decrypted_vote": 3
}
]
}
]
}
}