Implemented full end-to-end encryption and decryption of an event using trustee public and secret keys. This required modification of the NodeJS crypto server to receive post data from the crypto_rpc py methods and for combining SKs together. Additionally, the new binary voting encoding scheme has been implemented for encryption and decryption of the event. General UI improvements have been made and as well as some other bug fixes
This commit is contained in:
parent
0c354cd542
commit
e33b91f852
23 changed files with 809 additions and 446 deletions
20
static/js/decrypt_event.js
Normal file
20
static/js/decrypt_event.js
Normal file
|
@ -0,0 +1,20 @@
|
|||
function processFileSKChange(event) {
|
||||
var files = event.target.files;
|
||||
|
||||
if(files !== undefined
|
||||
&& files[0] !== undefined) {
|
||||
var reader = new FileReader();
|
||||
|
||||
reader.onload = function(e) {
|
||||
$('input#secret-key').val(reader.result);
|
||||
};
|
||||
|
||||
reader.readAsText(files[0]);
|
||||
}
|
||||
}
|
||||
|
||||
var filesHandleSK = document.getElementById('files_sk_upload');
|
||||
|
||||
if(filesHandleSK) {
|
||||
filesHandleSK.addEventListener('change', processFileSKChange, false);
|
||||
}
|
Reference in a new issue