diff --git a/heliosverifier/js/jscrypto/helios.js b/heliosverifier/js/jscrypto/helios.js index 93c0ed48c317d21fee609d30a4108157b1fddbfd..f46a31bbb2db866ddf6acd59b120213d770b1fb8 100644 --- a/heliosverifier/js/jscrypto/helios.js +++ b/heliosverifier/js/jscrypto/helios.js @@ -609,13 +609,14 @@ HELIOS.dejsonify_list_of_lists = function(lol, item_dejsonifier) { } 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.public_key = public_key; this.public_key_hash = public_key_hash; this.pok = pok; this.decryption_factors = decryption_factors; this.decryption_proofs = decryption_proofs; + this.email = email; }, toJSONObject: function() { @@ -631,5 +632,7 @@ HELIOS.Trustee.fromJSONObject = function(d) { return new HELIOS.Trustee(d.uuid, 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_proofs, ElGamal.Proof.fromJSONObject)); -}; \ No newline at end of file + HELIOS.dejsonify_list_of_lists(d.decryption_proofs, ElGamal.Proof.fromJSONObject), + d.email + ); +};