Some verification working
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user