Some verification working

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

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);
}
}