voting_schemes-electionguard 0.22.2 → 0.24.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2f526a731a37116067d35f851ebe5eb58f8ec8eeb37be728d3b192b6a720151e
4
- data.tar.gz: a7a1ab502f2de3903a99e287e141b4462981f1074443c21c71dcd529e6bbf576
3
+ metadata.gz: e097e8c1b9f5d700bdc4ce7b0a32126c18a16f3f841459224d6f62c436ecd9fd
4
+ data.tar.gz: fe8c97895f376a0632c42abe234759a946e6510a104e8bf57f60c0dc592dd21e
5
5
  SHA512:
6
- metadata.gz: 5b589e05c25a74255a0b62c6d7329e60520fa52bc250910ccc2476fe65ed4f955e1fbaedab0774fb911e5d3c8107f42873028518ac2493c9e484eebabe6f45ec
7
- data.tar.gz: 4eece9bd5c5032e9ce5642aacc7dd153d78f505b03af747b8ed043f9fe50ac74c467d3b03287529dec9aecd953b323c7d900101ff45ef1e677f69c3e7eece9fd
6
+ metadata.gz: 4b67b08171c41b873f95ec56d5aad00edb837074206b1b5fffba61af813eec6cfdc50c326989090e1e465cf1900120ce38073856cf00ddc25b25e47e32f1ea8f
7
+ data.tar.gz: 87e39147435a560841103b35096b5aa7753b65391675dc7906da82501a99d086d03b4b54bd73a65d30f1570a545070e112c7325e5077dc1ceb7f8d0109d9ca53
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.6.6
1
+ 3.1.1
data/Gemfile CHANGED
@@ -5,6 +5,6 @@ source "https://rubygems.org"
5
5
  # Specify your gem's dependencies in decidim-bulletin_board-dummy.gemspec
6
6
  gemspec
7
7
 
8
- gem "rubocop", "~> 0.92.0"
8
+ gem "rubocop", "~> 1.28.0"
9
9
  gem "rubocop-faker", "~> 1.1.0"
10
- gem "rubocop-rspec", "~> 1.44.1"
10
+ gem "rubocop-rspec", "~> 2.10"
data/Gemfile.lock CHANGED
@@ -1,182 +1,197 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- voting_schemes-electionguard (0.22.2)
4
+ voting_schemes-electionguard (0.24.0)
5
5
  rails (>= 5.0.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- actioncable (6.1.4.1)
11
- actionpack (= 6.1.4.1)
12
- activesupport (= 6.1.4.1)
10
+ actioncable (7.0.3.1)
11
+ actionpack (= 7.0.3.1)
12
+ activesupport (= 7.0.3.1)
13
13
  nio4r (~> 2.0)
14
14
  websocket-driver (>= 0.6.1)
15
- actionmailbox (6.1.4.1)
16
- actionpack (= 6.1.4.1)
17
- activejob (= 6.1.4.1)
18
- activerecord (= 6.1.4.1)
19
- activestorage (= 6.1.4.1)
20
- activesupport (= 6.1.4.1)
15
+ actionmailbox (7.0.3.1)
16
+ actionpack (= 7.0.3.1)
17
+ activejob (= 7.0.3.1)
18
+ activerecord (= 7.0.3.1)
19
+ activestorage (= 7.0.3.1)
20
+ activesupport (= 7.0.3.1)
21
21
  mail (>= 2.7.1)
22
- actionmailer (6.1.4.1)
23
- actionpack (= 6.1.4.1)
24
- actionview (= 6.1.4.1)
25
- activejob (= 6.1.4.1)
26
- activesupport (= 6.1.4.1)
22
+ net-imap
23
+ net-pop
24
+ net-smtp
25
+ actionmailer (7.0.3.1)
26
+ actionpack (= 7.0.3.1)
27
+ actionview (= 7.0.3.1)
28
+ activejob (= 7.0.3.1)
29
+ activesupport (= 7.0.3.1)
27
30
  mail (~> 2.5, >= 2.5.4)
31
+ net-imap
32
+ net-pop
33
+ net-smtp
28
34
  rails-dom-testing (~> 2.0)
29
- actionpack (6.1.4.1)
30
- actionview (= 6.1.4.1)
31
- activesupport (= 6.1.4.1)
32
- rack (~> 2.0, >= 2.0.9)
35
+ actionpack (7.0.3.1)
36
+ actionview (= 7.0.3.1)
37
+ activesupport (= 7.0.3.1)
38
+ rack (~> 2.0, >= 2.2.0)
33
39
  rack-test (>= 0.6.3)
34
40
  rails-dom-testing (~> 2.0)
35
41
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
36
- actiontext (6.1.4.1)
37
- actionpack (= 6.1.4.1)
38
- activerecord (= 6.1.4.1)
39
- activestorage (= 6.1.4.1)
40
- activesupport (= 6.1.4.1)
42
+ actiontext (7.0.3.1)
43
+ actionpack (= 7.0.3.1)
44
+ activerecord (= 7.0.3.1)
45
+ activestorage (= 7.0.3.1)
46
+ activesupport (= 7.0.3.1)
47
+ globalid (>= 0.6.0)
41
48
  nokogiri (>= 1.8.5)
42
- actionview (6.1.4.1)
43
- activesupport (= 6.1.4.1)
49
+ actionview (7.0.3.1)
50
+ activesupport (= 7.0.3.1)
44
51
  builder (~> 3.1)
45
52
  erubi (~> 1.4)
46
53
  rails-dom-testing (~> 2.0)
47
54
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
48
- activejob (6.1.4.1)
49
- activesupport (= 6.1.4.1)
55
+ activejob (7.0.3.1)
56
+ activesupport (= 7.0.3.1)
50
57
  globalid (>= 0.3.6)
51
- activemodel (6.1.4.1)
52
- activesupport (= 6.1.4.1)
53
- activerecord (6.1.4.1)
54
- activemodel (= 6.1.4.1)
55
- activesupport (= 6.1.4.1)
56
- activestorage (6.1.4.1)
57
- actionpack (= 6.1.4.1)
58
- activejob (= 6.1.4.1)
59
- activerecord (= 6.1.4.1)
60
- activesupport (= 6.1.4.1)
61
- marcel (~> 1.0.0)
58
+ activemodel (7.0.3.1)
59
+ activesupport (= 7.0.3.1)
60
+ activerecord (7.0.3.1)
61
+ activemodel (= 7.0.3.1)
62
+ activesupport (= 7.0.3.1)
63
+ activestorage (7.0.3.1)
64
+ actionpack (= 7.0.3.1)
65
+ activejob (= 7.0.3.1)
66
+ activerecord (= 7.0.3.1)
67
+ activesupport (= 7.0.3.1)
68
+ marcel (~> 1.0)
62
69
  mini_mime (>= 1.1.0)
63
- activesupport (6.1.4.1)
70
+ activesupport (7.0.3.1)
64
71
  concurrent-ruby (~> 1.0, >= 1.0.2)
65
72
  i18n (>= 1.6, < 2)
66
73
  minitest (>= 5.1)
67
74
  tzinfo (~> 2.0)
68
- zeitwerk (~> 2.3)
69
75
  ast (2.4.2)
70
76
  builder (3.2.4)
71
- concurrent-ruby (1.1.8)
77
+ concurrent-ruby (1.1.10)
72
78
  crass (1.0.6)
73
- diff-lcs (1.4.4)
74
- erubi (1.10.0)
75
- faker (2.15.1)
76
- i18n (>= 1.6, < 2)
77
- globalid (0.5.2)
79
+ diff-lcs (1.5.0)
80
+ digest (3.1.0)
81
+ erubi (1.11.0)
82
+ faker (2.22.0)
83
+ i18n (>= 1.8.11, < 2)
84
+ globalid (1.0.0)
78
85
  activesupport (>= 5.0)
79
- i18n (1.8.10)
86
+ i18n (1.12.0)
80
87
  concurrent-ruby (~> 1.0)
81
- loofah (2.12.0)
88
+ loofah (2.18.0)
82
89
  crass (~> 1.0.2)
83
90
  nokogiri (>= 1.5.9)
84
91
  mail (2.7.1)
85
92
  mini_mime (>= 0.1.1)
86
- marcel (1.0.1)
93
+ marcel (1.0.2)
87
94
  method_source (1.0.0)
88
- mini_mime (1.1.1)
89
- mini_portile2 (2.6.1)
90
- minitest (5.14.4)
95
+ mini_mime (1.1.2)
96
+ mini_portile2 (2.8.0)
97
+ minitest (5.16.3)
98
+ net-imap (0.2.3)
99
+ digest
100
+ net-protocol
101
+ strscan
102
+ net-pop (0.1.1)
103
+ digest
104
+ net-protocol
105
+ timeout
106
+ net-protocol (0.1.3)
107
+ timeout
108
+ net-smtp (0.3.1)
109
+ digest
110
+ net-protocol
111
+ timeout
91
112
  nio4r (2.5.8)
92
- nokogiri (1.12.4)
93
- mini_portile2 (~> 2.6.1)
113
+ nokogiri (1.13.8)
114
+ mini_portile2 (~> 2.8.0)
94
115
  racc (~> 1.4)
95
- nokogiri (1.12.4-x86_64-linux)
116
+ nokogiri (1.13.8-x86_64-linux)
96
117
  racc (~> 1.4)
97
- parallel (1.20.1)
98
- parser (3.0.0.0)
118
+ parallel (1.22.1)
119
+ parser (3.1.2.1)
99
120
  ast (~> 2.4.1)
100
- racc (1.5.2)
101
- rack (2.2.3)
102
- rack-test (1.1.0)
103
- rack (>= 1.0, < 3)
104
- rails (6.1.4.1)
105
- actioncable (= 6.1.4.1)
106
- actionmailbox (= 6.1.4.1)
107
- actionmailer (= 6.1.4.1)
108
- actionpack (= 6.1.4.1)
109
- actiontext (= 6.1.4.1)
110
- actionview (= 6.1.4.1)
111
- activejob (= 6.1.4.1)
112
- activemodel (= 6.1.4.1)
113
- activerecord (= 6.1.4.1)
114
- activestorage (= 6.1.4.1)
115
- activesupport (= 6.1.4.1)
121
+ racc (1.6.0)
122
+ rack (2.2.4)
123
+ rack-test (2.0.2)
124
+ rack (>= 1.3)
125
+ rails (7.0.3.1)
126
+ actioncable (= 7.0.3.1)
127
+ actionmailbox (= 7.0.3.1)
128
+ actionmailer (= 7.0.3.1)
129
+ actionpack (= 7.0.3.1)
130
+ actiontext (= 7.0.3.1)
131
+ actionview (= 7.0.3.1)
132
+ activejob (= 7.0.3.1)
133
+ activemodel (= 7.0.3.1)
134
+ activerecord (= 7.0.3.1)
135
+ activestorage (= 7.0.3.1)
136
+ activesupport (= 7.0.3.1)
116
137
  bundler (>= 1.15.0)
117
- railties (= 6.1.4.1)
118
- sprockets-rails (>= 2.0.0)
138
+ railties (= 7.0.3.1)
119
139
  rails-dom-testing (2.0.3)
120
140
  activesupport (>= 4.2.0)
121
141
  nokogiri (>= 1.6)
122
- rails-html-sanitizer (1.4.2)
142
+ rails-html-sanitizer (1.4.3)
123
143
  loofah (~> 2.3)
124
- railties (6.1.4.1)
125
- actionpack (= 6.1.4.1)
126
- activesupport (= 6.1.4.1)
144
+ railties (7.0.3.1)
145
+ actionpack (= 7.0.3.1)
146
+ activesupport (= 7.0.3.1)
127
147
  method_source
128
- rake (>= 0.13)
148
+ rake (>= 12.2)
129
149
  thor (~> 1.0)
130
- rainbow (3.0.0)
131
- rake (13.0.3)
132
- regexp_parser (2.1.1)
150
+ zeitwerk (~> 2.5)
151
+ rainbow (3.1.1)
152
+ rake (13.0.6)
153
+ regexp_parser (2.5.0)
133
154
  rexml (3.2.5)
134
- rspec (3.10.0)
135
- rspec-core (~> 3.10.0)
136
- rspec-expectations (~> 3.10.0)
137
- rspec-mocks (~> 3.10.0)
138
- rspec-core (3.10.1)
139
- rspec-support (~> 3.10.0)
140
- rspec-expectations (3.10.1)
155
+ rspec (3.11.0)
156
+ rspec-core (~> 3.11.0)
157
+ rspec-expectations (~> 3.11.0)
158
+ rspec-mocks (~> 3.11.0)
159
+ rspec-core (3.11.0)
160
+ rspec-support (~> 3.11.0)
161
+ rspec-expectations (3.11.0)
141
162
  diff-lcs (>= 1.2.0, < 2.0)
142
- rspec-support (~> 3.10.0)
143
- rspec-mocks (3.10.2)
163
+ rspec-support (~> 3.11.0)
164
+ rspec-mocks (3.11.1)
144
165
  diff-lcs (>= 1.2.0, < 2.0)
145
- rspec-support (~> 3.10.0)
146
- rspec-support (3.10.2)
147
- rubocop (0.92.0)
166
+ rspec-support (~> 3.11.0)
167
+ rspec-support (3.11.0)
168
+ rubocop (1.28.2)
148
169
  parallel (~> 1.10)
149
- parser (>= 2.7.1.5)
170
+ parser (>= 3.1.0.0)
150
171
  rainbow (>= 2.2.2, < 4.0)
151
- regexp_parser (>= 1.7)
172
+ regexp_parser (>= 1.8, < 3.0)
152
173
  rexml
153
- rubocop-ast (>= 0.5.0)
174
+ rubocop-ast (>= 1.17.0, < 2.0)
154
175
  ruby-progressbar (~> 1.7)
155
- unicode-display_width (>= 1.4.0, < 2.0)
156
- rubocop-ast (1.4.1)
157
- parser (>= 2.7.1.5)
176
+ unicode-display_width (>= 1.4.0, < 3.0)
177
+ rubocop-ast (1.21.0)
178
+ parser (>= 3.1.1.0)
158
179
  rubocop-faker (1.1.0)
159
180
  faker (>= 2.12.0)
160
181
  rubocop (>= 0.82.0)
161
- rubocop-rspec (1.44.1)
162
- rubocop (~> 0.87)
163
- rubocop-ast (>= 0.7.1)
182
+ rubocop-rspec (2.11.1)
183
+ rubocop (~> 1.19)
164
184
  ruby-progressbar (1.11.0)
165
- sprockets (4.0.2)
166
- concurrent-ruby (~> 1.0)
167
- rack (> 1, < 3)
168
- sprockets-rails (3.2.2)
169
- actionpack (>= 4.0)
170
- activesupport (>= 4.0)
171
- sprockets (>= 3.0.0)
172
- thor (1.1.0)
173
- tzinfo (2.0.4)
185
+ strscan (3.0.4)
186
+ thor (1.2.1)
187
+ timeout (0.3.0)
188
+ tzinfo (2.0.5)
174
189
  concurrent-ruby (~> 1.0)
175
- unicode-display_width (1.7.0)
190
+ unicode-display_width (2.2.0)
176
191
  websocket-driver (0.7.5)
177
192
  websocket-extensions (>= 0.1.0)
178
193
  websocket-extensions (0.1.5)
179
- zeitwerk (2.4.2)
194
+ zeitwerk (2.6.0)
180
195
 
181
196
  PLATFORMS
182
197
  ruby
@@ -185,10 +200,10 @@ PLATFORMS
185
200
  DEPENDENCIES
186
201
  rake (~> 13.0)
187
202
  rspec (~> 3.7)
188
- rubocop (~> 0.92.0)
203
+ rubocop (~> 1.28.0)
189
204
  rubocop-faker (~> 1.1.0)
190
- rubocop-rspec (~> 1.44.1)
205
+ rubocop-rspec (~> 2.10)
191
206
  voting_schemes-electionguard!
192
207
 
193
208
  BUNDLED WITH
194
- 2.2.27
209
+ 2.3.10
@@ -1 +1 @@
1
- (()=>{"use strict";var e={d:(t,r)=>{for(var o in r)e.o(r,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:r[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{TrusteeWrapperAdapter:()=>o,VoterWrapperAdapter:()=>s});class r{processPythonCodeOnWorker(e,t){return new Promise(((r,o)=>{this.worker.onmessage=e=>{r(e.data.results)},this.worker.onerror=e=>{console.error(e),o(e)},this.worker.postMessage({python:e,...t})}))}}class o extends r{constructor({trusteeId:e,workerUrl:t}){super(),this.trusteeId=e,this.worker=new Worker(t)}setup(){return this.processPythonCodeOnWorker("\n from js import trustee_id\n from bulletin_board.electionguard.trustee import Trustee\n trustee = Trustee(trustee_id)\n ",{trustee_id:this.trusteeId})}async processMessage(e,t){const r=await this.processPythonCodeOnWorker("\n import json\n from js import message_type, decoded_data\n trustee.process_message(message_type, json.loads(decoded_data))\n ",{message_type:e,decoded_data:JSON.stringify(t)});if(r&&r.length>0){const[{message_type:e,content:t}]=r;return{messageType:e,content:t}}}isFresh(){return this.processPythonCodeOnWorker("\n trustee.is_fresh()\n ")}backup(){return this.processPythonCodeOnWorker("\n trustee.backup().hex()\n ")}restore(e){return this.processPythonCodeOnWorker("\n from js import state\n print(state)\n trustee = Trustee.restore(bytes.fromhex(state))\n True\n ",{state:e})}isKeyCeremonyDone(){return this.processPythonCodeOnWorker("\n trustee.is_key_ceremony_done()\n ")}isTallyDone(){return this.processPythonCodeOnWorker("\n trustee.is_tally_done()\n ")}}class s extends r{constructor({voterId:e,workerUrl:t}){super(),this.voterId=e,this.worker=new Worker(t)}setup(){return this.processPythonCodeOnWorker("\n from js import voter_id\n from bulletin_board.electionguard.voter import Voter\n voter = Voter(voter_id)\n ",{voter_id:this.voterId})}async processMessage(e,t){const r=await this.processPythonCodeOnWorker("\n import json\n from js import message_type, decoded_data\n voter.process_message(message_type, json.loads(decoded_data))\n ",{message_type:e,decoded_data:JSON.stringify(t)});if(r&&r[0]){const{message_type:e,content:t}=r[0];return{messageType:e,content:t}}}async encrypt(e,t){const[r,o]=await this.processPythonCodeOnWorker("\n from js import plain_vote, ballot_style\n voter.encrypt(plain_vote, ballot_style)\n ",{plain_vote:e,ballot_style:t});return{auditableData:r,encryptedData:o}}}window.electionGuardVotingScheme=t})();
1
+ (()=>{"use strict";var e={d:(t,r)=>{for(var o in r)e.o(r,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:r[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{TrusteeWrapperAdapter:()=>o,VoterWrapperAdapter:()=>s});class r{processPythonCodeOnWorker(e,t){return new Promise(((r,o)=>{this.worker.onmessage=e=>{r(e.data.results)},this.worker.onerror=e=>{console.error(e),o(e)},this.worker.postMessage({python:e,...t})}))}}class o extends r{constructor({trusteeId:e,workerUrl:t}){super(),this.trusteeId=e,this.worker=new Worker(t)}setup(){return this.processPythonCodeOnWorker("\n from js import trustee_id\n from bulletin_board.electionguard.trustee import Trustee\n trustee = Trustee(trustee_id)\n ",{trustee_id:this.trusteeId})}async processMessage(e,t){const r=await this.processPythonCodeOnWorker("\n import json\n from js import message_type, decoded_data\n trustee.process_message(message_type, json.loads(decoded_data))\n ",{message_type:e,decoded_data:JSON.stringify(t)});if(r&&r.length>0){const[{message_type:e,content:t}]=r;return{messageType:e,content:t}}}isFresh(){return this.processPythonCodeOnWorker("\n trustee.is_fresh()\n ")}backup(){return this.processPythonCodeOnWorker("\n trustee.backup().hex()\n ")}restore(e){return this.processPythonCodeOnWorker("\n from js import state\n\n trustee = Trustee.restore(bytes.fromhex(state))\n True\n ",{state:e})}isKeyCeremonyDone(){return this.processPythonCodeOnWorker("\n trustee.is_key_ceremony_done()\n ")}isTallyDone(){return this.processPythonCodeOnWorker("\n trustee.is_tally_done()\n ")}}class s extends r{constructor({voterId:e,workerUrl:t}){super(),this.voterId=e,this.worker=new Worker(t)}setup(){return this.processPythonCodeOnWorker("\n from js import voter_id\n from bulletin_board.electionguard.voter import Voter\n voter = Voter(voter_id)\n ",{voter_id:this.voterId})}async processMessage(e,t){const r=await this.processPythonCodeOnWorker("\n import json\n from js import message_type, decoded_data\n voter.process_message(message_type, json.loads(decoded_data))\n ",{message_type:e,decoded_data:JSON.stringify(t)});if(r&&r[0]){const{message_type:e,content:t}=r[0];return{messageType:e,content:t}}}async encrypt(e,t){const[r,o]=await this.processPythonCodeOnWorker("\n from js import plain_vote, ballot_style\n voter.encrypt(plain_vote, ballot_style)\n ",{plain_vote:e,ballot_style:t});return{auditableData:r,encryptedData:o}}}window.electionGuardVotingScheme=t})();
@@ -2,6 +2,6 @@
2
2
 
3
3
  module VotingSchemes
4
4
  module Electionguard
5
- VERSION = "0.22.2"
5
+ VERSION = "0.24.0"
6
6
  end
7
7
  end
@@ -1 +1 @@
1
- var Module=typeof pyodide._module!=="undefined"?pyodide._module:{};Module.checkABI(1);if(!Module.expectedDataFileDownloads){Module.expectedDataFileDownloads=0;Module.finishedDataFileDownloads=0}Module.expectedDataFileDownloads++;(function(){var loadPackage=function(metadata){var PACKAGE_PATH;if(typeof window==="object"){PACKAGE_PATH=window["encodeURIComponent"](window.location.pathname.toString().substring(0,window.location.pathname.toString().lastIndexOf("/"))+"/")}else if(typeof location!=="undefined"){PACKAGE_PATH=encodeURIComponent(location.pathname.toString().substring(0,location.pathname.toString().lastIndexOf("/"))+"/")}else{throw"using preloaded data can only be done on a web page or in a web worker"}var PACKAGE_NAME="bulletin_board-electionguard.data";var REMOTE_PACKAGE_BASE="bulletin_board-electionguard.data";if(typeof Module["locateFilePackage"]==="function"&&!Module["locateFile"]){Module["locateFile"]=Module["locateFilePackage"];err("warning: you defined Module.locateFilePackage, that has been renamed to Module.locateFile (using your locateFilePackage for now)")}var REMOTE_PACKAGE_NAME=Module["locateFile"]?Module["locateFile"](REMOTE_PACKAGE_BASE,""):REMOTE_PACKAGE_BASE;var REMOTE_PACKAGE_SIZE=metadata.remote_package_size;var PACKAGE_UUID=metadata.package_uuid;function fetchRemotePackage(packageName,packageSize,callback,errback){var xhr=new XMLHttpRequest;xhr.open("GET",packageName,true);xhr.responseType="arraybuffer";xhr.onprogress=function(event){var url=packageName;var size=packageSize;if(event.total)size=event.total;if(event.loaded){if(!xhr.addedTotal){xhr.addedTotal=true;if(!Module.dataFileDownloads)Module.dataFileDownloads={};Module.dataFileDownloads[url]={loaded:event.loaded,total:size}}else{Module.dataFileDownloads[url].loaded=event.loaded}var total=0;var loaded=0;var num=0;for(var download in Module.dataFileDownloads){var data=Module.dataFileDownloads[download];total+=data.total;loaded+=data.loaded;num++}total=Math.ceil(total*Module.expectedDataFileDownloads/num);if(Module["setStatus"])Module["setStatus"]("Downloading data... ("+loaded+"/"+total+")")}else if(!Module.dataFileDownloads){if(Module["setStatus"])Module["setStatus"]("Downloading data...")}};xhr.onerror=function(event){throw new Error("NetworkError for: "+packageName)};xhr.onload=function(event){if(xhr.status==200||xhr.status==304||xhr.status==206||xhr.status==0&&xhr.response){var packageData=xhr.response;callback(packageData)}else{throw new Error(xhr.statusText+" : "+xhr.responseURL)}};xhr.send(null)}function handleError(error){console.error("package error:",error)}var fetchedCallback=null;var fetched=Module["getPreloadedPackage"]?Module["getPreloadedPackage"](REMOTE_PACKAGE_NAME,REMOTE_PACKAGE_SIZE):null;if(!fetched)fetchRemotePackage(REMOTE_PACKAGE_NAME,REMOTE_PACKAGE_SIZE,function(data){if(fetchedCallback){fetchedCallback(data);fetchedCallback=null}else{fetched=data}},handleError);function runWithFS(){function assert(check,msg){if(!check)throw msg+(new Error).stack}Module["FS_createPath"]("/","lib",true,true);Module["FS_createPath"]("/lib","python3.8",true,true);Module["FS_createPath"]("/lib/python3.8","site-packages",true,true);Module["FS_createPath"]("/lib/python3.8/site-packages","bulletin_board",true,true);Module["FS_createPath"]("/lib/python3.8/site-packages/bulletin_board","electionguard",true,true);Module["FS_createPath"]("/lib/python3.8/site-packages","bulletin_board_electionguard-0.1.1-py3.8.egg-info",true,true);function DataRequest(start,end,audio){this.start=start;this.end=end;this.audio=audio}DataRequest.prototype={requests:{},open:function(mode,name){this.name=name;this.requests[name]=this;Module["addRunDependency"]("fp "+this.name)},send:function(){},onload:function(){var byteArray=this.byteArray.subarray(this.start,this.end);this.finish(byteArray)},finish:function(byteArray){var that=this;Module["FS_createPreloadedFile"](this.name,null,byteArray,true,true,function(){Module["removeRunDependency"]("fp "+that.name)},function(){if(that.audio){Module["removeRunDependency"]("fp "+that.name)}else{err("Preloading file "+that.name+" failed")}},false,true);this.requests[this.name]=null}};function processPackageData(arrayBuffer){Module.finishedDataFileDownloads++;assert(arrayBuffer,"Loading data file failed.");assert(arrayBuffer instanceof ArrayBuffer,"bad input to processPackageData");var byteArray=new Uint8Array(arrayBuffer);var curr;var compressedData={data:null,cachedOffset:26051,cachedIndexes:[-1,-1],cachedChunks:[null,null],offsets:[0,904,1992,2964,4065,5108,6231,7093,7942,8882,9893,10862,11824,12847,13884,14850,15664,16366,17537,18694,19798,20717,21505,22413,23453,24620,25767],sizes:[904,1088,972,1101,1043,1123,862,849,940,1011,969,962,1023,1037,966,814,702,1171,1157,1104,919,788,908,1040,1167,1147,284],successes:[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]};compressedData.data=byteArray;assert(typeof Module.LZ4==="object","LZ4 not present - was your app build with -s LZ4=1 ?");Module.LZ4.loadPackage({metadata:metadata,compressedData:compressedData});Module["removeRunDependency"]("datafile_bulletin_board-electionguard.data")}Module["addRunDependency"]("datafile_bulletin_board-electionguard.data");if(!Module.preloadResults)Module.preloadResults={};Module.preloadResults[PACKAGE_NAME]={fromCache:false};if(fetched){processPackageData(fetched);fetched=null}else{fetchedCallback=processPackageData}}if(Module["calledRun"]){runWithFS()}else{if(!Module["preRun"])Module["preRun"]=[];Module["preRun"].push(runWithFS)}};loadPackage({files:[{filename:"/lib/python3.8/site-packages/bulletin_board/__init__.py",start:0,end:0,audio:0},{filename:"/lib/python3.8/site-packages/bulletin_board/electionguard/voter.py",start:0,end:3852,audio:0},{filename:"/lib/python3.8/site-packages/bulletin_board/electionguard/__init__.py",start:3852,end:3852,audio:0},{filename:"/lib/python3.8/site-packages/bulletin_board/electionguard/election.py",start:3852,end:7949,audio:0},{filename:"/lib/python3.8/site-packages/bulletin_board/electionguard/messages.py",start:7949,end:9662,audio:0},{filename:"/lib/python3.8/site-packages/bulletin_board/electionguard/dummy_scheduler.py",start:9662,end:10033,audio:0},{filename:"/lib/python3.8/site-packages/bulletin_board/electionguard/trustee.py",start:10033,end:26014,audio:0},{filename:"/lib/python3.8/site-packages/bulletin_board/electionguard/tally_decryptor.py",start:26014,end:35098,audio:0},{filename:"/lib/python3.8/site-packages/bulletin_board/electionguard/utils.py",start:35098,end:36331,audio:0},{filename:"/lib/python3.8/site-packages/bulletin_board/electionguard/common.py",start:36331,end:40529,audio:0},{filename:"/lib/python3.8/site-packages/bulletin_board/electionguard/bulletin_board.py",start:40529,end:49928,audio:0},{filename:"/lib/python3.8/site-packages/bulletin_board/electionguard/serializable.py",start:49928,end:52686,audio:0},{filename:"/lib/python3.8/site-packages/bulletin_board_electionguard-0.1.1-py3.8.egg-info/dependency_links.txt",start:52686,end:52844,audio:0},{filename:"/lib/python3.8/site-packages/bulletin_board_electionguard-0.1.1-py3.8.egg-info/PKG-INFO",start:52844,end:53192,audio:0},{filename:"/lib/python3.8/site-packages/bulletin_board_electionguard-0.1.1-py3.8.egg-info/requires.txt",start:53192,end:53224,audio:0},{filename:"/lib/python3.8/site-packages/bulletin_board_electionguard-0.1.1-py3.8.egg-info/SOURCES.txt",start:53224,end:54080,audio:0},{filename:"/lib/python3.8/site-packages/bulletin_board_electionguard-0.1.1-py3.8.egg-info/top_level.txt",start:54080,end:54095,audio:0}],remote_package_size:30147,package_uuid:"e11f810f-ce6c-4500-95d8-8696252f8743"})})();
1
+ var Module=typeof pyodide._module!=="undefined"?pyodide._module:{};Module.checkABI(1);if(!Module.expectedDataFileDownloads){Module.expectedDataFileDownloads=0;Module.finishedDataFileDownloads=0}Module.expectedDataFileDownloads++;(function(){var loadPackage=function(metadata){var PACKAGE_PATH;if(typeof window==="object"){PACKAGE_PATH=window["encodeURIComponent"](window.location.pathname.toString().substring(0,window.location.pathname.toString().lastIndexOf("/"))+"/")}else if(typeof location!=="undefined"){PACKAGE_PATH=encodeURIComponent(location.pathname.toString().substring(0,location.pathname.toString().lastIndexOf("/"))+"/")}else{throw"using preloaded data can only be done on a web page or in a web worker"}var PACKAGE_NAME="bulletin_board-electionguard.data";var REMOTE_PACKAGE_BASE="bulletin_board-electionguard.data";if(typeof Module["locateFilePackage"]==="function"&&!Module["locateFile"]){Module["locateFile"]=Module["locateFilePackage"];err("warning: you defined Module.locateFilePackage, that has been renamed to Module.locateFile (using your locateFilePackage for now)")}var REMOTE_PACKAGE_NAME=Module["locateFile"]?Module["locateFile"](REMOTE_PACKAGE_BASE,""):REMOTE_PACKAGE_BASE;var REMOTE_PACKAGE_SIZE=metadata.remote_package_size;var PACKAGE_UUID=metadata.package_uuid;function fetchRemotePackage(packageName,packageSize,callback,errback){var xhr=new XMLHttpRequest;xhr.open("GET",packageName,true);xhr.responseType="arraybuffer";xhr.onprogress=function(event){var url=packageName;var size=packageSize;if(event.total)size=event.total;if(event.loaded){if(!xhr.addedTotal){xhr.addedTotal=true;if(!Module.dataFileDownloads)Module.dataFileDownloads={};Module.dataFileDownloads[url]={loaded:event.loaded,total:size}}else{Module.dataFileDownloads[url].loaded=event.loaded}var total=0;var loaded=0;var num=0;for(var download in Module.dataFileDownloads){var data=Module.dataFileDownloads[download];total+=data.total;loaded+=data.loaded;num++}total=Math.ceil(total*Module.expectedDataFileDownloads/num);if(Module["setStatus"])Module["setStatus"]("Downloading data... ("+loaded+"/"+total+")")}else if(!Module.dataFileDownloads){if(Module["setStatus"])Module["setStatus"]("Downloading data...")}};xhr.onerror=function(event){throw new Error("NetworkError for: "+packageName)};xhr.onload=function(event){if(xhr.status==200||xhr.status==304||xhr.status==206||xhr.status==0&&xhr.response){var packageData=xhr.response;callback(packageData)}else{throw new Error(xhr.statusText+" : "+xhr.responseURL)}};xhr.send(null)}function handleError(error){console.error("package error:",error)}var fetchedCallback=null;var fetched=Module["getPreloadedPackage"]?Module["getPreloadedPackage"](REMOTE_PACKAGE_NAME,REMOTE_PACKAGE_SIZE):null;if(!fetched)fetchRemotePackage(REMOTE_PACKAGE_NAME,REMOTE_PACKAGE_SIZE,function(data){if(fetchedCallback){fetchedCallback(data);fetchedCallback=null}else{fetched=data}},handleError);function runWithFS(){function assert(check,msg){if(!check)throw msg+(new Error).stack}Module["FS_createPath"]("/","lib",true,true);Module["FS_createPath"]("/lib","python3.8",true,true);Module["FS_createPath"]("/lib/python3.8","site-packages",true,true);Module["FS_createPath"]("/lib/python3.8/site-packages","bulletin_board",true,true);Module["FS_createPath"]("/lib/python3.8/site-packages/bulletin_board","electionguard",true,true);Module["FS_createPath"]("/lib/python3.8/site-packages","bulletin_board_electionguard-0.1.1-py3.8.egg-info",true,true);function DataRequest(start,end,audio){this.start=start;this.end=end;this.audio=audio}DataRequest.prototype={requests:{},open:function(mode,name){this.name=name;this.requests[name]=this;Module["addRunDependency"]("fp "+this.name)},send:function(){},onload:function(){var byteArray=this.byteArray.subarray(this.start,this.end);this.finish(byteArray)},finish:function(byteArray){var that=this;Module["FS_createPreloadedFile"](this.name,null,byteArray,true,true,function(){Module["removeRunDependency"]("fp "+that.name)},function(){if(that.audio){Module["removeRunDependency"]("fp "+that.name)}else{err("Preloading file "+that.name+" failed")}},false,true);this.requests[this.name]=null}};function processPackageData(arrayBuffer){Module.finishedDataFileDownloads++;assert(arrayBuffer,"Loading data file failed.");assert(arrayBuffer instanceof ArrayBuffer,"bad input to processPackageData");var byteArray=new Uint8Array(arrayBuffer);var curr;var compressedData={data:null,cachedOffset:26369,cachedIndexes:[-1,-1],cachedChunks:[null,null],offsets:[0,904,1976,3034,3991,4817,5577,6708,7633,8425,9315,10338,11343,12346,13358,14570,15559,16820,17855,18784,19627,20537,21564,22738,23748,24730,26024],sizes:[904,1072,1058,957,826,760,1131,925,792,890,1023,1005,1003,1012,1212,989,1261,1035,929,843,910,1027,1174,1010,982,1294,345],successes:[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]};compressedData.data=byteArray;assert(typeof Module.LZ4==="object","LZ4 not present - was your app build with -s LZ4=1 ?");Module.LZ4.loadPackage({metadata:metadata,compressedData:compressedData});Module["removeRunDependency"]("datafile_bulletin_board-electionguard.data")}Module["addRunDependency"]("datafile_bulletin_board-electionguard.data");if(!Module.preloadResults)Module.preloadResults={};Module.preloadResults[PACKAGE_NAME]={fromCache:false};if(fetched){processPackageData(fetched);fetched=null}else{fetchedCallback=processPackageData}}if(Module["calledRun"]){runWithFS()}else{if(!Module["preRun"])Module["preRun"]=[];Module["preRun"].push(runWithFS)}};loadPackage({files:[{filename:"/lib/python3.8/site-packages/bulletin_board/__init__.py",start:0,end:0,audio:0},{filename:"/lib/python3.8/site-packages/bulletin_board/electionguard/voter.py",start:0,end:3852,audio:0},{filename:"/lib/python3.8/site-packages/bulletin_board/electionguard/tally_decryptor.py",start:3852,end:12936,audio:0},{filename:"/lib/python3.8/site-packages/bulletin_board/electionguard/trustee.py",start:12936,end:28917,audio:0},{filename:"/lib/python3.8/site-packages/bulletin_board/electionguard/dummy_scheduler.py",start:28917,end:29288,audio:0},{filename:"/lib/python3.8/site-packages/bulletin_board/electionguard/election.py",start:29288,end:33385,audio:0},{filename:"/lib/python3.8/site-packages/bulletin_board/electionguard/serializable.py",start:33385,end:36143,audio:0},{filename:"/lib/python3.8/site-packages/bulletin_board/electionguard/__init__.py",start:36143,end:36143,audio:0},{filename:"/lib/python3.8/site-packages/bulletin_board/electionguard/bulletin_board.py",start:36143,end:45648,audio:0},{filename:"/lib/python3.8/site-packages/bulletin_board/electionguard/common.py",start:45648,end:49846,audio:0},{filename:"/lib/python3.8/site-packages/bulletin_board/electionguard/messages.py",start:49846,end:51559,audio:0},{filename:"/lib/python3.8/site-packages/bulletin_board/electionguard/utils.py",start:51559,end:52792,audio:0},{filename:"/lib/python3.8/site-packages/bulletin_board_electionguard-0.1.1-py3.8.egg-info/PKG-INFO",start:52792,end:53140,audio:0},{filename:"/lib/python3.8/site-packages/bulletin_board_electionguard-0.1.1-py3.8.egg-info/requires.txt",start:53140,end:53172,audio:0},{filename:"/lib/python3.8/site-packages/bulletin_board_electionguard-0.1.1-py3.8.egg-info/top_level.txt",start:53172,end:53187,audio:0},{filename:"/lib/python3.8/site-packages/bulletin_board_electionguard-0.1.1-py3.8.egg-info/SOURCES.txt",start:53187,end:54043,audio:0},{filename:"/lib/python3.8/site-packages/bulletin_board_electionguard-0.1.1-py3.8.egg-info/dependency_links.txt",start:54043,end:54201,audio:0}],remote_package_size:30465,package_uuid:"84c1a074-d54f-4de5-b4d3-a569ee9fec01"})})();
@@ -1 +1 @@
1
- var Module=typeof pyodide._module!=="undefined"?pyodide._module:{};Module.checkABI(1);if(!Module.expectedDataFileDownloads){Module.expectedDataFileDownloads=0;Module.finishedDataFileDownloads=0}Module.expectedDataFileDownloads++;(function(){var loadPackage=function(metadata){var PACKAGE_PATH;if(typeof window==="object"){PACKAGE_PATH=window["encodeURIComponent"](window.location.pathname.toString().substring(0,window.location.pathname.toString().lastIndexOf("/"))+"/")}else if(typeof location!=="undefined"){PACKAGE_PATH=encodeURIComponent(location.pathname.toString().substring(0,location.pathname.toString().lastIndexOf("/"))+"/")}else{throw"using preloaded data can only be done on a web page or in a web worker"}var PACKAGE_NAME="electionguard.data";var REMOTE_PACKAGE_BASE="electionguard.data";if(typeof Module["locateFilePackage"]==="function"&&!Module["locateFile"]){Module["locateFile"]=Module["locateFilePackage"];err("warning: you defined Module.locateFilePackage, that has been renamed to Module.locateFile (using your locateFilePackage for now)")}var REMOTE_PACKAGE_NAME=Module["locateFile"]?Module["locateFile"](REMOTE_PACKAGE_BASE,""):REMOTE_PACKAGE_BASE;var REMOTE_PACKAGE_SIZE=metadata.remote_package_size;var PACKAGE_UUID=metadata.package_uuid;function fetchRemotePackage(packageName,packageSize,callback,errback){var xhr=new XMLHttpRequest;xhr.open("GET",packageName,true);xhr.responseType="arraybuffer";xhr.onprogress=function(event){var url=packageName;var size=packageSize;if(event.total)size=event.total;if(event.loaded){if(!xhr.addedTotal){xhr.addedTotal=true;if(!Module.dataFileDownloads)Module.dataFileDownloads={};Module.dataFileDownloads[url]={loaded:event.loaded,total:size}}else{Module.dataFileDownloads[url].loaded=event.loaded}var total=0;var loaded=0;var num=0;for(var download in Module.dataFileDownloads){var data=Module.dataFileDownloads[download];total+=data.total;loaded+=data.loaded;num++}total=Math.ceil(total*Module.expectedDataFileDownloads/num);if(Module["setStatus"])Module["setStatus"]("Downloading data... ("+loaded+"/"+total+")")}else if(!Module.dataFileDownloads){if(Module["setStatus"])Module["setStatus"]("Downloading data...")}};xhr.onerror=function(event){throw new Error("NetworkError for: "+packageName)};xhr.onload=function(event){if(xhr.status==200||xhr.status==304||xhr.status==206||xhr.status==0&&xhr.response){var packageData=xhr.response;callback(packageData)}else{throw new Error(xhr.statusText+" : "+xhr.responseURL)}};xhr.send(null)}function handleError(error){console.error("package error:",error)}var fetchedCallback=null;var fetched=Module["getPreloadedPackage"]?Module["getPreloadedPackage"](REMOTE_PACKAGE_NAME,REMOTE_PACKAGE_SIZE):null;if(!fetched)fetchRemotePackage(REMOTE_PACKAGE_NAME,REMOTE_PACKAGE_SIZE,function(data){if(fetchedCallback){fetchedCallback(data);fetchedCallback=null}else{fetched=data}},handleError);function runWithFS(){function assert(check,msg){if(!check)throw msg+(new Error).stack}Module["FS_createPath"]("/","lib",true,true);Module["FS_createPath"]("/lib","python3.8",true,true);Module["FS_createPath"]("/lib/python3.8","site-packages",true,true);Module["FS_createPath"]("/lib/python3.8/site-packages","electionguard",true,true);Module["FS_createPath"]("/lib/python3.8/site-packages","electionguard-1.2.1-py3.8.egg-info",true,true);function DataRequest(start,end,audio){this.start=start;this.end=end;this.audio=audio}DataRequest.prototype={requests:{},open:function(mode,name){this.name=name;this.requests[name]=this;Module["addRunDependency"]("fp "+this.name)},send:function(){},onload:function(){var byteArray=this.byteArray.subarray(this.start,this.end);this.finish(byteArray)},finish:function(byteArray){var that=this;Module["FS_createPreloadedFile"](this.name,null,byteArray,true,true,function(){Module["removeRunDependency"]("fp "+that.name)},function(){if(that.audio){Module["removeRunDependency"]("fp "+that.name)}else{err("Preloading file "+that.name+" failed")}},false,true);this.requests[this.name]=null}};function processPackageData(arrayBuffer){Module.finishedDataFileDownloads++;assert(arrayBuffer,"Loading data file failed.");assert(arrayBuffer instanceof ArrayBuffer,"bad input to processPackageData");var byteArray=new Uint8Array(arrayBuffer);var curr;var compressedData={data:null,cachedOffset:182321,cachedIndexes:[-1,-1],cachedChunks:[null,null],offsets:[0,1224,2331,3279,4255,5143,6299,7178,8250,9164,9945,10891,11927,13248,14459,15791,17163,17923,18936,19911,20827,22055,23998,25342,26271,27191,28138,28925,30197,31532,32788,34012,35031,36205,37287,38587,39744,40822,41820,43005,44233,45337,46517,47671,48806,49925,51174,52239,53321,54265,55378,56575,57686,58661,59400,60566,61370,62522,63473,64422,65571,66906,67875,69024,70131,71323,72507,73788,74893,75904,77278,78398,79635,80709,81751,82814,84140,85585,86665,87527,88488,89660,90686,91527,92342,93210,94166,95044,96130,97245,98227,99194,100216,101232,102247,103118,104216,105465,106391,107370,108304,109238,110155,111140,112337,113370,114382,115515,116481,117572,118580,119672,120693,121831,122897,124013,125070,126160,127392,128553,129467,130468,131715,132942,134356,135384,136680,137895,139040,140089,141010,142127,142698,143280,143900,144376,144878,145338,145803,146386,146884,147418,148245,149325,150345,151369,152186,153023,154001,154854,155784,156785,157665,158794,160040,161031,161960,163209,164587,165816,167007,167819,168637,169756,170760,171693,172711,173458,174374,175392,176471,177949,179270,180489,181355,182231],sizes:[1224,1107,948,976,888,1156,879,1072,914,781,946,1036,1321,1211,1332,1372,760,1013,975,916,1228,1943,1344,929,920,947,787,1272,1335,1256,1224,1019,1174,1082,1300,1157,1078,998,1185,1228,1104,1180,1154,1135,1119,1249,1065,1082,944,1113,1197,1111,975,739,1166,804,1152,951,949,1149,1335,969,1149,1107,1192,1184,1281,1105,1011,1374,1120,1237,1074,1042,1063,1326,1445,1080,862,961,1172,1026,841,815,868,956,878,1086,1115,982,967,1022,1016,1015,871,1098,1249,926,979,934,934,917,985,1197,1033,1012,1133,966,1091,1008,1092,1021,1138,1066,1116,1057,1090,1232,1161,914,1001,1247,1227,1414,1028,1296,1215,1145,1049,921,1117,571,582,620,476,502,460,465,583,498,534,827,1080,1020,1024,817,837,978,853,930,1001,880,1129,1246,991,929,1249,1378,1229,1191,812,818,1119,1004,933,1018,747,916,1018,1079,1478,1321,1219,866,876,90],successes:[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]};compressedData.data=byteArray;assert(typeof Module.LZ4==="object","LZ4 not present - was your app build with -s LZ4=1 ?");Module.LZ4.loadPackage({metadata:metadata,compressedData:compressedData});Module["removeRunDependency"]("datafile_electionguard.data")}Module["addRunDependency"]("datafile_electionguard.data");if(!Module.preloadResults)Module.preloadResults={};Module.preloadResults[PACKAGE_NAME]={fromCache:false};if(fetched){processPackageData(fetched);fetched=null}else{fetchedCallback=processPackageData}}if(Module["calledRun"]){runWithFS()}else{if(!Module["preRun"])Module["preRun"]=[];Module["preRun"].push(runWithFS)}};loadPackage({files:[{filename:"/lib/python3.8/site-packages/electionguard/proof.py",start:0,end:653,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/key_ceremony.py",start:653,end:10410,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/election_object_base.py",start:10410,end:10684,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/decryption_mediator.py",start:10684,end:24716,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/scheduler.py",start:24716,end:25172,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/election_polynomial.py",start:25172,end:29994,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/dlog.py",start:29994,end:31809,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/logs.py",start:31809,end:36842,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/__init__.py",start:36842,end:36842,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/ballot_compact.py",start:36842,end:42492,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/group.py",start:42492,end:56378,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/ballot.py",start:56378,end:92472,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/election.py",start:92472,end:96896,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/publish.py",start:96896,end:101129,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/data_store.py",start:101129,end:103880,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/rsa.py",start:103880,end:105775,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/chaum_pedersen.py",start:105775,end:123712,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/election_builder.py",start:123712,end:126335,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/encrypt.py",start:126335,end:146026,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/manifest.py",start:146026,end:179730,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/decryption.py",start:179730,end:204844,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/ballot_validator.py",start:204844,end:209060,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/utils.py",start:209060,end:212259,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/py.typed",start:212259,end:212259,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/tally.py",start:212259,end:226883,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/decrypt_with_secrets.py",start:226883,end:241017,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/auxiliary.py",start:241017,end:242959,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/decrypt_with_shares.py",start:242959,end:249544,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/ballot_code.py",start:249544,end:250485,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/hash.py",start:250485,end:253817,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/ballot_box.py",start:253817,end:256808,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/types.py",start:256808,end:256896,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/schnorr.py",start:256896,end:259156,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/schema.py",start:259156,end:260098,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/serializable.py",start:260098,end:267888,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/election_description_schema.json",start:267888,end:289838,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/guardian.py",start:289838,end:312855,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/scheduler.py.orig",start:312855,end:316713,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/elgamal.py",start:316713,end:321756,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/nonces.py",start:321756,end:324136,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/decryption_share.py",start:324136,end:333216,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/key_ceremony_mediator.py",start:333216,end:345423,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/singleton.py",start:345423,end:345839,audio:0},{filename:"/lib/python3.8/site-packages/electionguard-1.2.1-py3.8.egg-info/dependency_links.txt",start:345839,end:345840,audio:0},{filename:"/lib/python3.8/site-packages/electionguard-1.2.1-py3.8.egg-info/PKG-INFO",start:345840,end:356794,audio:0},{filename:"/lib/python3.8/site-packages/electionguard-1.2.1-py3.8.egg-info/requires.txt",start:356794,end:356882,audio:0},{filename:"/lib/python3.8/site-packages/electionguard-1.2.1-py3.8.egg-info/SOURCES.txt",start:356882,end:358517,audio:0},{filename:"/lib/python3.8/site-packages/electionguard-1.2.1-py3.8.egg-info/top_level.txt",start:358517,end:358531,audio:0}],remote_package_size:186417,package_uuid:"890fa9d3-a2e0-4f96-988c-8c50c3842564"})})();
1
+ var Module=typeof pyodide._module!=="undefined"?pyodide._module:{};Module.checkABI(1);if(!Module.expectedDataFileDownloads){Module.expectedDataFileDownloads=0;Module.finishedDataFileDownloads=0}Module.expectedDataFileDownloads++;(function(){var loadPackage=function(metadata){var PACKAGE_PATH;if(typeof window==="object"){PACKAGE_PATH=window["encodeURIComponent"](window.location.pathname.toString().substring(0,window.location.pathname.toString().lastIndexOf("/"))+"/")}else if(typeof location!=="undefined"){PACKAGE_PATH=encodeURIComponent(location.pathname.toString().substring(0,location.pathname.toString().lastIndexOf("/"))+"/")}else{throw"using preloaded data can only be done on a web page or in a web worker"}var PACKAGE_NAME="electionguard.data";var REMOTE_PACKAGE_BASE="electionguard.data";if(typeof Module["locateFilePackage"]==="function"&&!Module["locateFile"]){Module["locateFile"]=Module["locateFilePackage"];err("warning: you defined Module.locateFilePackage, that has been renamed to Module.locateFile (using your locateFilePackage for now)")}var REMOTE_PACKAGE_NAME=Module["locateFile"]?Module["locateFile"](REMOTE_PACKAGE_BASE,""):REMOTE_PACKAGE_BASE;var REMOTE_PACKAGE_SIZE=metadata.remote_package_size;var PACKAGE_UUID=metadata.package_uuid;function fetchRemotePackage(packageName,packageSize,callback,errback){var xhr=new XMLHttpRequest;xhr.open("GET",packageName,true);xhr.responseType="arraybuffer";xhr.onprogress=function(event){var url=packageName;var size=packageSize;if(event.total)size=event.total;if(event.loaded){if(!xhr.addedTotal){xhr.addedTotal=true;if(!Module.dataFileDownloads)Module.dataFileDownloads={};Module.dataFileDownloads[url]={loaded:event.loaded,total:size}}else{Module.dataFileDownloads[url].loaded=event.loaded}var total=0;var loaded=0;var num=0;for(var download in Module.dataFileDownloads){var data=Module.dataFileDownloads[download];total+=data.total;loaded+=data.loaded;num++}total=Math.ceil(total*Module.expectedDataFileDownloads/num);if(Module["setStatus"])Module["setStatus"]("Downloading data... ("+loaded+"/"+total+")")}else if(!Module.dataFileDownloads){if(Module["setStatus"])Module["setStatus"]("Downloading data...")}};xhr.onerror=function(event){throw new Error("NetworkError for: "+packageName)};xhr.onload=function(event){if(xhr.status==200||xhr.status==304||xhr.status==206||xhr.status==0&&xhr.response){var packageData=xhr.response;callback(packageData)}else{throw new Error(xhr.statusText+" : "+xhr.responseURL)}};xhr.send(null)}function handleError(error){console.error("package error:",error)}var fetchedCallback=null;var fetched=Module["getPreloadedPackage"]?Module["getPreloadedPackage"](REMOTE_PACKAGE_NAME,REMOTE_PACKAGE_SIZE):null;if(!fetched)fetchRemotePackage(REMOTE_PACKAGE_NAME,REMOTE_PACKAGE_SIZE,function(data){if(fetchedCallback){fetchedCallback(data);fetchedCallback=null}else{fetched=data}},handleError);function runWithFS(){function assert(check,msg){if(!check)throw msg+(new Error).stack}Module["FS_createPath"]("/","lib",true,true);Module["FS_createPath"]("/lib","python3.8",true,true);Module["FS_createPath"]("/lib/python3.8","site-packages",true,true);Module["FS_createPath"]("/lib/python3.8/site-packages","electionguard",true,true);Module["FS_createPath"]("/lib/python3.8/site-packages","electionguard-1.2.1-py3.8.egg-info",true,true);function DataRequest(start,end,audio){this.start=start;this.end=end;this.audio=audio}DataRequest.prototype={requests:{},open:function(mode,name){this.name=name;this.requests[name]=this;Module["addRunDependency"]("fp "+this.name)},send:function(){},onload:function(){var byteArray=this.byteArray.subarray(this.start,this.end);this.finish(byteArray)},finish:function(byteArray){var that=this;Module["FS_createPreloadedFile"](this.name,null,byteArray,true,true,function(){Module["removeRunDependency"]("fp "+that.name)},function(){if(that.audio){Module["removeRunDependency"]("fp "+that.name)}else{err("Preloading file "+that.name+" failed")}},false,true);this.requests[this.name]=null}};function processPackageData(arrayBuffer){Module.finishedDataFileDownloads++;assert(arrayBuffer,"Loading data file failed.");assert(arrayBuffer instanceof ArrayBuffer,"bad input to processPackageData");var byteArray=new Uint8Array(arrayBuffer);var curr;var compressedData={data:null,cachedOffset:182431,cachedIndexes:[-1,-1],cachedChunks:[null,null],offsets:[0,1087,2397,3740,4981,6170,7302,8539,9490,10781,11877,12885,13963,15142,16370,17558,18617,19815,20950,22085,23345,24256,25257,26382,27640,29011,30071,30788,31851,33127,34087,34968,35789,36737,37692,38627,39760,40917,41987,43226,44368,45691,46754,47797,49150,50274,51458,52586,53663,54749,55791,56906,57932,59655,61583,62489,63404,64224,64958,65720,66842,67782,68871,70053,70898,71717,72864,74044,75257,76412,77709,78938,80184,81291,82115,82524,83244,83783,84183,84652,85185,85851,86387,86713,87476,88892,90140,91038,91996,93377,94393,95451,96437,97433,98523,99511,100210,101386,102134,103323,104246,105248,106422,107654,108410,109517,110256,111320,112580,113514,114826,115675,116549,117429,118734,119763,120818,121776,122704,123579,124388,125541,126516,127434,128400,129387,130432,131427,132515,133647,134799,135713,136697,137877,139050,140071,141079,142273,143392,144509,145633,146656,147771,148913,149929,150883,151928,152850,153786,154809,155926,156992,157959,159163,160440,161402,162548,163549,164605,165506,166437,167253,168130,169007,170065,170977,171937,172947,174173,175515,176597,178076,179399,180619,181485,182352],sizes:[1087,1310,1343,1241,1189,1132,1237,951,1291,1096,1008,1078,1179,1228,1188,1059,1198,1135,1135,1260,911,1001,1125,1258,1371,1060,717,1063,1276,960,881,821,948,955,935,1133,1157,1070,1239,1142,1323,1063,1043,1353,1124,1184,1128,1077,1086,1042,1115,1026,1723,1928,906,915,820,734,762,1122,940,1089,1182,845,819,1147,1180,1213,1155,1297,1229,1246,1107,824,409,720,539,400,469,533,666,536,326,763,1416,1248,898,958,1381,1016,1058,986,996,1090,988,699,1176,748,1189,923,1002,1174,1232,756,1107,739,1064,1260,934,1312,849,874,880,1305,1029,1055,958,928,875,809,1153,975,918,966,987,1045,995,1088,1132,1152,914,984,1180,1173,1021,1008,1194,1119,1117,1124,1023,1115,1142,1016,954,1045,922,936,1023,1117,1066,967,1204,1277,962,1146,1001,1056,901,931,816,877,877,1058,912,960,1010,1226,1342,1082,1479,1323,1220,866,867,79],successes:[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]};compressedData.data=byteArray;assert(typeof Module.LZ4==="object","LZ4 not present - was your app build with -s LZ4=1 ?");Module.LZ4.loadPackage({metadata:metadata,compressedData:compressedData});Module["removeRunDependency"]("datafile_electionguard.data")}Module["addRunDependency"]("datafile_electionguard.data");if(!Module.preloadResults)Module.preloadResults={};Module.preloadResults[PACKAGE_NAME]={fromCache:false};if(fetched){processPackageData(fetched);fetched=null}else{fetchedCallback=processPackageData}}if(Module["calledRun"]){runWithFS()}else{if(!Module["preRun"])Module["preRun"]=[];Module["preRun"].push(runWithFS)}};loadPackage({files:[{filename:"/lib/python3.8/site-packages/electionguard/election_builder.py",start:0,end:2623,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/types.py",start:2623,end:2711,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/ballot.py",start:2711,end:38805,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/manifest.py",start:38805,end:72509,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/singleton.py",start:72509,end:72925,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/encrypt.py",start:72925,end:92616,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/tally.py",start:92616,end:107240,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/group.py",start:107240,end:121126,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/publish.py",start:121126,end:125359,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/decryption_share.py",start:125359,end:134439,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/ballot_code.py",start:134439,end:135380,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/rsa.py",start:135380,end:137275,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/election_object_base.py",start:137275,end:137549,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/elgamal.py",start:137549,end:142592,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/schnorr.py",start:142592,end:144852,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/election_polynomial.py",start:144852,end:149674,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/election_description_schema.json",start:149674,end:171624,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/hash.py",start:171624,end:174956,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/ballot_compact.py",start:174956,end:180606,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/dlog.py",start:180606,end:182421,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/key_ceremony.py",start:182421,end:192178,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/chaum_pedersen.py",start:192178,end:210115,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/ballot_validator.py",start:210115,end:214331,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/logs.py",start:214331,end:219364,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/proof.py",start:219364,end:220017,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/election.py",start:220017,end:224441,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/serializable.py",start:224441,end:232231,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/scheduler.py",start:232231,end:232687,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/schema.py",start:232687,end:233629,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/key_ceremony_mediator.py",start:233629,end:245836,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/decryption.py",start:245836,end:270950,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/data_store.py",start:270950,end:273701,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/ballot_box.py",start:273701,end:276692,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/auxiliary.py",start:276692,end:278634,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/__init__.py",start:278634,end:278634,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/decrypt_with_secrets.py",start:278634,end:292768,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/decryption_mediator.py",start:292768,end:306800,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/decrypt_with_shares.py",start:306800,end:313385,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/py.typed",start:313385,end:313385,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/scheduler.py.orig",start:313385,end:317243,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/guardian.py",start:317243,end:340260,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/utils.py",start:340260,end:343459,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/nonces.py",start:343459,end:345839,audio:0},{filename:"/lib/python3.8/site-packages/electionguard-1.2.1-py3.8.egg-info/PKG-INFO",start:345839,end:356793,audio:0},{filename:"/lib/python3.8/site-packages/electionguard-1.2.1-py3.8.egg-info/requires.txt",start:356793,end:356881,audio:0},{filename:"/lib/python3.8/site-packages/electionguard-1.2.1-py3.8.egg-info/top_level.txt",start:356881,end:356895,audio:0},{filename:"/lib/python3.8/site-packages/electionguard-1.2.1-py3.8.egg-info/SOURCES.txt",start:356895,end:358530,audio:0},{filename:"/lib/python3.8/site-packages/electionguard-1.2.1-py3.8.egg-info/dependency_links.txt",start:358530,end:358531,audio:0}],remote_package_size:186527,package_uuid:"6413b255-219c-474c-81b8-b7c11d1cd708"})})();
@@ -1 +1 @@
1
- {"dependencies": {"test": [], "micropip": ["distlib"], "bulletin_board-electionguard": ["electionguard"], "electionguard": ["hypothesis", "jsons", "rsa", "gmpy2", "pyasn1"], "rsa": [], "jsons": ["typish"], "hypothesis": ["attrs", "sortedcontainers"], "pyasn1": [], "attrs": [], "distlib": [], "gmpy2": [], "sortedcontainers": [], "typish": []}, "import_name_to_package_name": {"micropip": "micropip", "bulletin_board-electionguard": "bulletin_board-electionguard", "electionguard": "electionguard", "rsa": "rsa", "jsons": "jsons", "hypothesis": "hypothesis", "pyasn1": "pyasn1", "attr": "attrs", "distlib": "distlib", "gmpy2": "gmpy2", "sortedcontainers": "sortedcontainers", "typish": "typish"}}
1
+ {"dependencies": {"test": [], "distlib": [], "micropip": ["distlib"], "electionguard": ["hypothesis", "jsons", "rsa", "gmpy2", "pyasn1"], "rsa": [], "pyasn1": [], "hypothesis": ["attrs", "sortedcontainers"], "jsons": ["typish"], "bulletin_board-electionguard": ["electionguard"], "gmpy2": [], "typish": [], "attrs": [], "sortedcontainers": []}, "import_name_to_package_name": {"distlib": "distlib", "micropip": "micropip", "electionguard": "electionguard", "rsa": "rsa", "pyasn1": "pyasn1", "hypothesis": "hypothesis", "jsons": "jsons", "bulletin_board-electionguard": "bulletin_board-electionguard", "gmpy2": "gmpy2", "typish": "typish", "attr": "attrs", "sortedcontainers": "sortedcontainers"}}
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
12
12
  s.description = ""
13
13
  s.homepage = "https://github.com/decidim/decidim-bulletin-board"
14
14
  s.license = "AGPL-3.0"
15
- s.required_ruby_version = Gem::Requirement.new(">= 2.6.6")
15
+ s.required_ruby_version = Gem::Requirement.new(">= 3.1.1")
16
16
 
17
17
  # Specify which files should be added to the gem when it is released.
18
18
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: voting_schemes-electionguard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.22.2
4
+ version: 0.24.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Morcillo
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: exe
13
13
  cert_chain: []
14
- date: 2021-09-07 00:00:00.000000000 Z
14
+ date: 2022-08-26 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails
@@ -131,14 +131,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
131
131
  requirements:
132
132
  - - ">="
133
133
  - !ruby/object:Gem::Version
134
- version: 2.6.6
134
+ version: 3.1.1
135
135
  required_rubygems_version: !ruby/object:Gem::Requirement
136
136
  requirements:
137
137
  - - ">="
138
138
  - !ruby/object:Gem::Version
139
139
  version: '0'
140
140
  requirements: []
141
- rubygems_version: 3.0.3
141
+ rubygems_version: 3.3.7
142
142
  signing_key:
143
143
  specification_version: 4
144
144
  summary: ''