Skip to content
Snippets Groups Projects
Commit 2c5d5fbe authored by Ben Adida's avatar Ben Adida
Browse files

fix trustee email display in verifier

parent f334fe02
No related branches found
No related tags found
No related merge requests found
...@@ -609,13 +609,14 @@ HELIOS.dejsonify_list_of_lists = function(lol, item_dejsonifier) { ...@@ -609,13 +609,14 @@ HELIOS.dejsonify_list_of_lists = function(lol, item_dejsonifier) {
} }
HELIOS.Trustee = Class.extend({ HELIOS.Trustee = Class.extend({
init: function(uuid, public_key, public_key_hash, pok, decryption_factors, decryption_proofs) { init: function(uuid, public_key, public_key_hash, pok, decryption_factors, decryption_proofs, email) {
this.uuid = uuid; this.uuid = uuid;
this.public_key = public_key; this.public_key = public_key;
this.public_key_hash = public_key_hash; this.public_key_hash = public_key_hash;
this.pok = pok; this.pok = pok;
this.decryption_factors = decryption_factors; this.decryption_factors = decryption_factors;
this.decryption_proofs = decryption_proofs; this.decryption_proofs = decryption_proofs;
this.email = email;
}, },
toJSONObject: function() { toJSONObject: function() {
...@@ -631,5 +632,7 @@ HELIOS.Trustee.fromJSONObject = function(d) { ...@@ -631,5 +632,7 @@ HELIOS.Trustee.fromJSONObject = function(d) {
return new HELIOS.Trustee(d.uuid, return new HELIOS.Trustee(d.uuid,
ElGamal.PublicKey.fromJSONObject(d.public_key), d.public_key_hash, ElGamal.DLogProof.fromJSONObject(d.pok), ElGamal.PublicKey.fromJSONObject(d.public_key), d.public_key_hash, ElGamal.DLogProof.fromJSONObject(d.pok),
HELIOS.dejsonify_list_of_lists(d.decryption_factors, BigInt.fromJSONObject), HELIOS.dejsonify_list_of_lists(d.decryption_factors, BigInt.fromJSONObject),
HELIOS.dejsonify_list_of_lists(d.decryption_proofs, ElGamal.Proof.fromJSONObject)); HELIOS.dejsonify_list_of_lists(d.decryption_proofs, ElGamal.Proof.fromJSONObject),
}; d.email
\ No newline at end of file );
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment