voting_schemes-electionguard 0.21.2 → 0.22.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -0
- data/Gemfile.lock +68 -68
- data/app/assets/javascripts/voting_schemes/electionguard/electionguard.js +1 -1
- data/lib/voting_schemes/electionguard/version.rb +1 -1
- data/public/assets/electionguard/bulletin_board-electionguard.data +0 -0
- data/public/assets/electionguard/bulletin_board-electionguard.js +1 -1
- data/public/assets/electionguard/electionguard.data +0 -0
- data/public/assets/electionguard/electionguard.js +1 -1
- data/public/assets/electionguard/packages.json +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b6d9d6e0c8eb46bd4cbd9ebea7ec78e0bac22b359d7cf6fbb467bff5210d2d9
|
4
|
+
data.tar.gz: 5af122f7497a464fd93863b0de67ec43c4cd43555a7e84bdc3df9c0824322554
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58a9f65db5749c1a231867f6a2265d5ae803142399ae370ef0948409841fe789e613743e742fba850fdaa12952e24d5f1c4b0f18ab2f1580b272a01ec83f028b
|
7
|
+
data.tar.gz: c722f2a2f76ab690b5e44bea018aa936b38fbdb1a06ea4c54789b7cc74597aab9a602a7ab5cd3e3d7fa32c75aa513475136d4eb32e51c023e02ccd3aa3665bfd
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.6.6
|
data/Gemfile.lock
CHANGED
@@ -1,66 +1,66 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
voting_schemes-electionguard (0.
|
4
|
+
voting_schemes-electionguard (0.22.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.
|
11
|
-
actionpack (= 6.1.
|
12
|
-
activesupport (= 6.1.
|
10
|
+
actioncable (6.1.4.1)
|
11
|
+
actionpack (= 6.1.4.1)
|
12
|
+
activesupport (= 6.1.4.1)
|
13
13
|
nio4r (~> 2.0)
|
14
14
|
websocket-driver (>= 0.6.1)
|
15
|
-
actionmailbox (6.1.
|
16
|
-
actionpack (= 6.1.
|
17
|
-
activejob (= 6.1.
|
18
|
-
activerecord (= 6.1.
|
19
|
-
activestorage (= 6.1.
|
20
|
-
activesupport (= 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)
|
21
21
|
mail (>= 2.7.1)
|
22
|
-
actionmailer (6.1.
|
23
|
-
actionpack (= 6.1.
|
24
|
-
actionview (= 6.1.
|
25
|
-
activejob (= 6.1.
|
26
|
-
activesupport (= 6.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)
|
27
27
|
mail (~> 2.5, >= 2.5.4)
|
28
28
|
rails-dom-testing (~> 2.0)
|
29
|
-
actionpack (6.1.
|
30
|
-
actionview (= 6.1.
|
31
|
-
activesupport (= 6.1.
|
29
|
+
actionpack (6.1.4.1)
|
30
|
+
actionview (= 6.1.4.1)
|
31
|
+
activesupport (= 6.1.4.1)
|
32
32
|
rack (~> 2.0, >= 2.0.9)
|
33
33
|
rack-test (>= 0.6.3)
|
34
34
|
rails-dom-testing (~> 2.0)
|
35
35
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
36
|
-
actiontext (6.1.
|
37
|
-
actionpack (= 6.1.
|
38
|
-
activerecord (= 6.1.
|
39
|
-
activestorage (= 6.1.
|
40
|
-
activesupport (= 6.1.
|
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)
|
41
41
|
nokogiri (>= 1.8.5)
|
42
|
-
actionview (6.1.
|
43
|
-
activesupport (= 6.1.
|
42
|
+
actionview (6.1.4.1)
|
43
|
+
activesupport (= 6.1.4.1)
|
44
44
|
builder (~> 3.1)
|
45
45
|
erubi (~> 1.4)
|
46
46
|
rails-dom-testing (~> 2.0)
|
47
47
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
48
|
-
activejob (6.1.
|
49
|
-
activesupport (= 6.1.
|
48
|
+
activejob (6.1.4.1)
|
49
|
+
activesupport (= 6.1.4.1)
|
50
50
|
globalid (>= 0.3.6)
|
51
|
-
activemodel (6.1.
|
52
|
-
activesupport (= 6.1.
|
53
|
-
activerecord (6.1.
|
54
|
-
activemodel (= 6.1.
|
55
|
-
activesupport (= 6.1.
|
56
|
-
activestorage (6.1.
|
57
|
-
actionpack (= 6.1.
|
58
|
-
activejob (= 6.1.
|
59
|
-
activerecord (= 6.1.
|
60
|
-
activesupport (= 6.1.
|
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
61
|
marcel (~> 1.0.0)
|
62
|
-
mini_mime (
|
63
|
-
activesupport (6.1.
|
62
|
+
mini_mime (>= 1.1.0)
|
63
|
+
activesupport (6.1.4.1)
|
64
64
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
65
65
|
i18n (>= 1.6, < 2)
|
66
66
|
minitest (>= 5.1)
|
@@ -74,25 +74,25 @@ GEM
|
|
74
74
|
erubi (1.10.0)
|
75
75
|
faker (2.15.1)
|
76
76
|
i18n (>= 1.6, < 2)
|
77
|
-
globalid (0.
|
78
|
-
activesupport (>=
|
77
|
+
globalid (0.5.2)
|
78
|
+
activesupport (>= 5.0)
|
79
79
|
i18n (1.8.10)
|
80
80
|
concurrent-ruby (~> 1.0)
|
81
|
-
loofah (2.
|
81
|
+
loofah (2.12.0)
|
82
82
|
crass (~> 1.0.2)
|
83
83
|
nokogiri (>= 1.5.9)
|
84
84
|
mail (2.7.1)
|
85
85
|
mini_mime (>= 0.1.1)
|
86
86
|
marcel (1.0.1)
|
87
87
|
method_source (1.0.0)
|
88
|
-
mini_mime (1.
|
89
|
-
mini_portile2 (2.
|
88
|
+
mini_mime (1.1.1)
|
89
|
+
mini_portile2 (2.6.1)
|
90
90
|
minitest (5.14.4)
|
91
|
-
nio4r (2.5.
|
92
|
-
nokogiri (1.
|
93
|
-
mini_portile2 (~> 2.
|
91
|
+
nio4r (2.5.8)
|
92
|
+
nokogiri (1.12.4)
|
93
|
+
mini_portile2 (~> 2.6.1)
|
94
94
|
racc (~> 1.4)
|
95
|
-
nokogiri (1.
|
95
|
+
nokogiri (1.12.4-x86_64-linux)
|
96
96
|
racc (~> 1.4)
|
97
97
|
parallel (1.20.1)
|
98
98
|
parser (3.0.0.0)
|
@@ -101,31 +101,31 @@ GEM
|
|
101
101
|
rack (2.2.3)
|
102
102
|
rack-test (1.1.0)
|
103
103
|
rack (>= 1.0, < 3)
|
104
|
-
rails (6.1.
|
105
|
-
actioncable (= 6.1.
|
106
|
-
actionmailbox (= 6.1.
|
107
|
-
actionmailer (= 6.1.
|
108
|
-
actionpack (= 6.1.
|
109
|
-
actiontext (= 6.1.
|
110
|
-
actionview (= 6.1.
|
111
|
-
activejob (= 6.1.
|
112
|
-
activemodel (= 6.1.
|
113
|
-
activerecord (= 6.1.
|
114
|
-
activestorage (= 6.1.
|
115
|
-
activesupport (= 6.1.
|
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)
|
116
116
|
bundler (>= 1.15.0)
|
117
|
-
railties (= 6.1.
|
117
|
+
railties (= 6.1.4.1)
|
118
118
|
sprockets-rails (>= 2.0.0)
|
119
119
|
rails-dom-testing (2.0.3)
|
120
120
|
activesupport (>= 4.2.0)
|
121
121
|
nokogiri (>= 1.6)
|
122
|
-
rails-html-sanitizer (1.
|
122
|
+
rails-html-sanitizer (1.4.2)
|
123
123
|
loofah (~> 2.3)
|
124
|
-
railties (6.1.
|
125
|
-
actionpack (= 6.1.
|
126
|
-
activesupport (= 6.1.
|
124
|
+
railties (6.1.4.1)
|
125
|
+
actionpack (= 6.1.4.1)
|
126
|
+
activesupport (= 6.1.4.1)
|
127
127
|
method_source
|
128
|
-
rake (>= 0.
|
128
|
+
rake (>= 0.13)
|
129
129
|
thor (~> 1.0)
|
130
130
|
rainbow (3.0.0)
|
131
131
|
rake (13.0.3)
|
@@ -173,7 +173,7 @@ GEM
|
|
173
173
|
tzinfo (2.0.4)
|
174
174
|
concurrent-ruby (~> 1.0)
|
175
175
|
unicode-display_width (1.7.0)
|
176
|
-
websocket-driver (0.7.
|
176
|
+
websocket-driver (0.7.5)
|
177
177
|
websocket-extensions (>= 0.1.0)
|
178
178
|
websocket-extensions (0.1.5)
|
179
179
|
zeitwerk (2.4.2)
|
@@ -191,4 +191,4 @@ DEPENDENCIES
|
|
191
191
|
voting_schemes-electionguard!
|
192
192
|
|
193
193
|
BUNDLED WITH
|
194
|
-
2.2.
|
194
|
+
2.2.27
|
@@ -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\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 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})();
|
Binary file
|
@@ -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:
|
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:"620d6ca2-2ac1-4cfc-818a-ffdb5ecf3be3"})})();
|
Binary file
|
@@ -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.0-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:177743,cachedIndexes:[-1,-1],cachedChunks:[null,null],offsets:[0,1224,2331,3279,4255,5143,6295,7169,8242,9152,9952,10905,11948,13227,14452,15803,17120,17867,18895,19888,20795,22087,24046,25335,26268,27140,28059,28822,30086,31435,32711,33913,34986,36177,37223,38492,39679,40741,41736,42934,44171,45316,46421,47560,48649,49789,51020,52099,53135,54076,55159,56403,57499,58463,59318,60298,61266,62312,63233,64151,65265,66523,67622,68731,69810,71027,72260,73469,74511,75745,77048,78205,79429,80471,81410,82703,83947,85120,85916,86860,88048,89085,89928,90742,91620,92574,93455,94539,95658,96642,97611,98637,99655,100673,101550,102649,103899,104827,105819,106749,107666,108590,109582,110925,112036,113131,114269,115280,116372,117386,118575,119563,120661,121723,122720,123816,124963,125976,127180,128108,129250,130439,131866,132995,134271,135519,136756,137711,138691,139759,140565,140990,141705,142243,142648,143126,143663,144326,144862,145194,145928,147090,148156,149144,149917,150773,151658,152557,153416,154486,155434,156466,157539,158753,160095,161444,162612,163332,164174,165177,166178,167157,168146,168936,169894,170772,171886,173293,174559,175838,176717,177538],sizes:[1224,1107,948,976,888,1152,874,1073,910,800,953,1043,1279,1225,1351,1317,747,1028,993,907,1292,1959,1289,933,872,919,763,1264,1349,1276,1202,1073,1191,1046,1269,1187,1062,995,1198,1237,1145,1105,1139,1089,1140,1231,1079,1036,941,1083,1244,1096,964,855,980,968,1046,921,918,1114,1258,1099,1109,1079,1217,1233,1209,1042,1234,1303,1157,1224,1042,939,1293,1244,1173,796,944,1188,1037,843,814,878,954,881,1084,1119,984,969,1026,1018,1018,877,1099,1250,928,992,930,917,924,992,1343,1111,1095,1138,1011,1092,1014,1189,988,1098,1062,997,1096,1147,1013,1204,928,1142,1189,1427,1129,1276,1248,1237,955,980,1068,806,425,715,538,405,478,537,663,536,332,734,1162,1066,988,773,856,885,899,859,1070,948,1032,1073,1214,1342,1349,1168,720,842,1003,1001,979,989,790,958,878,1114,1407,1266,1279,879,821,205],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]};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:24620,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/scheduler.py",start:24620,end:25038,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/election_polynomial.py",start:25038,end:29860,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/dlog.py",start:29860,end:31675,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/logs.py",start:31675,end:36711,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/__init__.py",start:36711,end:36711,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/ballot_compact.py",start:36711,end:42361,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/group.py",start:42361,end:56247,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/ballot.py",start:56247,end:92341,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/election.py",start:92341,end:96587,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/publish.py",start:96587,end:100788,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/data_store.py",start:100788,end:103539,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/rsa.py",start:103539,end:105313,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/chaum_pedersen.py",start:105313,end:123289,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/election_builder.py",start:123289,end:125912,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/encrypt.py",start:125912,end:144988,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/manifest.py",start:144988,end:177662,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/decryption.py",start:177662,end:202776,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/ballot_validator.py",start:202776,end:206992,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/utils.py",start:206992,end:209677,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/py.typed",start:209677,end:209677,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/tally.py",start:209677,end:224301,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/decrypt_with_secrets.py",start:224301,end:237984,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/auxiliary.py",start:237984,end:239926,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/decrypt_with_shares.py",start:239926,end:246199,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/ballot_code.py",start:246199,end:247004,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/hash.py",start:247004,end:250336,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/ballot_box.py",start:250336,end:253229,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/types.py",start:253229,end:253317,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/schnorr.py",start:253317,end:255590,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/schema.py",start:255590,end:256532,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/serializable.py",start:256532,end:264322,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/election_description_schema.json",start:264322,end:286272,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/guardian.py",start:286272,end:309092,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/elgamal.py",start:309092,end:313977,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/nonces.py",start:313977,end:316320,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/decryption_share.py",start:316320,end:325400,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/key_ceremony_mediator.py",start:325400,end:337607,audio:0},{filename:"/lib/python3.8/site-packages/electionguard/singleton.py",start:337607,end:338023,audio:0},{filename:"/lib/python3.8/site-packages/electionguard-1.2.0-py3.8.egg-info/dependency_links.txt",start:338023,end:338024,audio:0},{filename:"/lib/python3.8/site-packages/electionguard-1.2.0-py3.8.egg-info/PKG-INFO",start:338024,end:348978,audio:0},{filename:"/lib/python3.8/site-packages/electionguard-1.2.0-py3.8.egg-info/requires.txt",start:348978,end:349066,audio:0},{filename:"/lib/python3.8/site-packages/electionguard-1.2.0-py3.8.egg-info/SOURCES.txt",start:349066,end:350665,audio:0},{filename:"/lib/python3.8/site-packages/electionguard-1.2.0-py3.8.egg-info/top_level.txt",start:350665,end:350679,audio:0}],remote_package_size:181839,package_uuid:"8b3894b9-adc0-4cf6-8256-dc221fd67875"})})();
|
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:"c97c69a3-4111-4c9a-b465-72e5152e23c8"})})();
|
@@ -1 +1 @@
|
|
1
|
-
{"dependencies": {"test": [], "distlib": [], "electionguard": ["hypothesis", "jsons", "rsa", "gmpy2", "pyasn1"], "
|
1
|
+
{"dependencies": {"test": [], "bulletin_board-electionguard": ["electionguard"], "distlib": [], "micropip": ["distlib"], "electionguard": ["hypothesis", "jsons", "rsa", "gmpy2", "pyasn1"], "hypothesis": ["attrs", "sortedcontainers"], "jsons": ["typish"], "rsa": [], "pyasn1": [], "gmpy2": [], "attrs": [], "sortedcontainers": [], "typish": []}, "import_name_to_package_name": {"bulletin_board-electionguard": "bulletin_board-electionguard", "distlib": "distlib", "micropip": "micropip", "electionguard": "electionguard", "hypothesis": "hypothesis", "jsons": "jsons", "rsa": "rsa", "pyasn1": "pyasn1", "gmpy2": "gmpy2", "attr": "attrs", "sortedcontainers": "sortedcontainers", "typish": "typish"}}
|
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.
|
4
|
+
version: 0.22.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-
|
14
|
+
date: 2021-09-06 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rails
|
@@ -68,6 +68,7 @@ files:
|
|
68
68
|
- ".gitignore"
|
69
69
|
- ".rspec"
|
70
70
|
- ".rubocop.yml"
|
71
|
+
- ".ruby-version"
|
71
72
|
- CHANGELOG.md
|
72
73
|
- Gemfile
|
73
74
|
- Gemfile.lock
|