Some verification working

This commit is contained in:
jude committed 2023-03-24 16:53:02 +00:00
1 parent 07b1080b3d
commit 931b669529
6 files changed
+50 -14

No files matched your search

+5 -1
View File
@@ -53,6 +53,10 @@ class ProofSessionProver {
}
}
get a() {
return mod_exp(this.rp, this.cipherText.pubKey.n, this.cipherText.pubKey.n ** 2n);
}
noise() {
return mod_exp(this.rp, this.cipherText.pubKey.n, this.cipherText.pubKey.n ** 2n);
}
@@ -86,7 +90,7 @@ export class ReadOnlyCyphertext {
this.cyphertext = (this.cyphertext * c.cyphertext) % this.pubKey.n ** 2n;
}
prove(tag, plainText, a) {
prove(plainText, a) {
return new ProofSessionVerifier(this, plainText, a);
}
}