fix trustee email display in verifier

This commit is contained in:
Ben Adida 2021-02-08 01:46:29 +00:00
parent f334fe0224
commit 2c5d5fbe74
1 changed files with 6 additions and 3 deletions

View File

@ -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));
};
HELIOS.dejsonify_list_of_lists(d.decryption_proofs, ElGamal.Proof.fromJSONObject),
d.email
);
};